diff options
author | bd <bdunahu@colostate.edu> | 2024-03-16 20:46:28 -0600 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-03-16 20:46:28 -0600 |
commit | 95768de2346d15638423f3f86a2d5c69d27da81e (patch) | |
tree | 7ca698de913be9ec9b809f61bfd5c8785d25a167 /.config/guix/modules/dwm | |
parent | e690e6058dda399f1051f039440c875d28e92fcc (diff) |
Auto code completions, more dwm keybinding, minor modeline icon fix
Diffstat (limited to '.config/guix/modules/dwm')
-rw-r--r-- | .config/guix/modules/dwm/config.def.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h index 214ed2b..4588f0c 100644 --- a/.config/guix/modules/dwm/config.def.h +++ b/.config/guix/modules/dwm/config.def.h @@ -73,16 +73,23 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ /* tools */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "st", NULL }; -static const char *slockcmd[] = { "slock", NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "st", NULL }; +static const char *slockcmd[] = { "slock", NULL }; +/* sound control */ +static const char *togmute[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; +static const char *lowervol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-4%", NULL}; +static const char *uppervol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+4%", NULL}; +static const char *mpcprev[] = { "mpc", "prev", NULL }; +static const char *togmpc[] = { "mpc", "toggle", NULL }; +static const char *mpcnext[] = { "mpc", "next", NULL }; /* screenshot control */ -static const char *flameselect[] = { "flameshot", "launcher", NULL }; -static const char *flameall[] = { "flameshot", "full", NULL }; +static const char *flameselect[] = { "flameshot", "launcher", NULL }; +static const char *flameall[] = { "flameshot", "full", NULL }; /* other applications */ -static const char *icecatcmd[] = { "icecat", NULL }; +static const char *icecatcmd[] = { "icecat", NULL }; static const char *chromiumcmd[] = { "chromium", "--incognito", NULL }; -static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; +static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; static const Key keys[] = { @@ -94,6 +101,12 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_c, spawn, {.v = chromiumcmd } }, { MODKEY|ShiftMask, XK_o, spawn, SHCMD("xdotool type $(grep -v '^#' /home/bdunahu/Personal/scripts/bookmarks.txt | dmenu -i -l 4 | awk '{print $NF}')") }, { MODKEY|ShiftMask, XK_p, spawn, SHCMD("passmenu --type") }, + { 0, XK_F6, spawn, {.v = togmute } }, + { 0, XK_F7, spawn, {.v = lowervol } }, + { 0, XK_F8, spawn, {.v = uppervol } }, + { 0, XK_F9, spawn, {.v = mpcprev } }, + { 0, XK_F10, spawn, {.v = togmpc } }, + { 0, XK_F11, spawn, {.v = mpcnext } }, { 0, XK_Print, spawn, {.v = flameselect } }, { 0|ShiftMask, XK_Print, spawn, {.v = flameall } }, { MODKEY, XK_l, togglebar, {0} }, |