aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-06-21 22:20:09 +0200
committerMateja <mail@matejamaric.com>2021-06-21 22:20:09 +0200
commit5102e175cd1071206dcd9e2bad857aa14e77fb55 (patch)
treef693043509de71184883ff0719a0b4eb4cc84022
parent969488c85639b52cbe43b158362ed4f5628a756a (diff)
downloaddwm-main.tar.gz
dwm-main.zip
Keybindings for layout, volume and USB.HEADmain
-rw-r--r--config.def.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 9f80ee4..8563c71 100644
--- a/config.def.h
+++ b/config.def.h
@@ -65,6 +65,13 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "st", "-e", "tmux", NULL };
static const char *roficmd[] = { "rofi", "-show", "run", NULL };
+static const char *scrotcmd[] = { "scrot", "-ze", "mv $f ~/stuff/pictures/screenshots/", NULL };
+static const char *volinc[] = { "bash", "-c", "~/.local/bin/sb_set.sh -i", NULL };
+static const char *voldec[] = { "bash", "-c", "~/.local/bin/sb_set.sh -d", NULL };
+static const char *voltoggle[] = { "bash", "-c", "~/.local/bin/sb_set.sh -t", NULL };
+static const char *nextlayout[] = { "bash", "-c", "~/.local/bin/sb_set.sh -n", NULL };
+static const char *unmountcmd[] = { "bash", "-c", "~/.local/bin/unmount_usb.sh", NULL };
+
/*
* Xresources preferences to load at startup
@@ -125,7 +132,14 @@ static Key keys[] = {
{ MODKEY, XK_2, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_3, setlayout, {.v = &layouts[2]} },
- { MODKEY|ShiftMask, XK_q, quit, {0} },
+ { MODKEY|ControlMask, XK_q, quit, {0} },
+
+ { MODKEY|ControlMask, XK_c, spawn, { .v = scrotcmd } },
+ { MODKEY, XK_h, spawn, { .v = volinc } },
+ { MODKEY, XK_n, spawn, { .v = voldec } },
+ { MODKEY, XK_m, spawn, { .v = voltoggle } },
+ { MODKEY, XK_space, spawn, { .v = nextlayout } },
+ { MODKEY, XK_e, spawn, { .v = unmountcmd } },
};
/* button definitions */