diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 104 |
1 files changed, 54 insertions, 50 deletions
@@ -127,59 +127,64 @@ ResourcePref resources[] = { }; #include "shiftview.c" +#include <X11/XF86keysym.h> static const Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_space, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_space, spawn, {.v = passmenucmd } }, - { MODKEY, XK_t, spawn, {.v = termcmd } }, - { MODKEY|ShiftMask, XK_b, togglebar, {0} }, - STACKKEYS(MODKEY, focus) - STACKKEYS(MODKEY|ShiftMask, push) - { MODKEY, XK_o, incnmaster, {.i = +1 } }, - { MODKEY|ShiftMask, XK_o, incnmaster, {.i = -1 } }, - { MODKEY, XK_l, setmfact, {.f = -0.05} }, - { MODKEY, XK_h, setmfact, {.f = +0.05} }, - { MODKEY, XK_Return, zoom, {0} }, - { MODKEY|ShiftMask, XK_a, defaultgaps, {0} }, - { MODKEY, XK_a, togglegaps, {0} }, - { MODKEY, XK_x, incrgaps, {.i = +3} }, - { MODKEY|ShiftMask, XK_x, incrgaps, {.i = -3} }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_Tab, shiftview, {.i = -1}}, - { MODKEY, XK_q, killclient, {0} }, - { MODKEY|ShiftMask, XK_l, setlayout, {.v = &layouts[0]} }, - { MODKEY|ShiftMask, XK_u, setlayout, {.v = &layouts[1]} }, - { MODKEY|ShiftMask, XK_y, setlayout, {.v = &layouts[6]} }, - { MODKEY, XK_s, togglesticky, {0} }, - { MODKEY, XK_f, togglefullscr, {0} }, - { MODKEY, XK_z, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_z, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { MODKEY, XK_BackSpace, spawn, SHCMD("sysact") }, - { MODKEY, XK_m, spawn, SHCMD("mailsync") }, - { MODKEY|ShiftMask, XK_m, spawn, SHCMD("remaps") }, - { MODKEY, XK_p, spawn, SHCMD("scrot -s -q 100 screenshot.png") }, - { MODKEY|ShiftMask, XK_s, spawn, SHCMD("slock") }, - { MODKEY, XK_w, spawn, SHCMD("$BROWSER") }, - { MODKEY, XK_r, spawn, SHCMD(TERMINAL " -e lf") }, - { MODKEY|ShiftMask, XK_r, spawn, SHCMD(TERMINAL " -e btm") }, - { MODKEY, XK_n, spawn, SHCMD(TERMINAL " -e newsboat; pkill -RTMIN+6 dwmblocks") }, - { MODKEY, XK_e, spawn, SHCMD(TERMINAL " -e neomutt ; pkill -RTMIN+12 dwmblocks; rmdir ~/.abook") }, - { MODKEY, XK_i, spawn, SHCMD(TERMINAL " -e abook -C ~/.config/abook/abookrc --datafile ~/.config/abook/addressbook") }, - { MODKEY|ControlMask, XK_l, spawn, SHCMD("layouthandler") }, + /* modifier key function argument */ + { MODKEY, XK_space, spawn, {.v = dmenucmd } }, + { MODKEY|ShiftMask, XK_space, spawn, {.v = passmenucmd } }, + { MODKEY, XK_t, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_b, togglebar, {0} }, + STACKKEYS(MODKEY, focus) + STACKKEYS(MODKEY|ShiftMask, push) + { MODKEY, XK_o, incnmaster, {.i = +1 } }, + { MODKEY|ShiftMask, XK_o, incnmaster, {.i = -1 } }, + { MODKEY, XK_l, setmfact, {.f = -0.05} }, + { MODKEY, XK_h, setmfact, {.f = +0.05} }, + { MODKEY, XK_Return, zoom, {0} }, + { MODKEY|ShiftMask, XK_a, defaultgaps, {0} }, + { MODKEY, XK_a, togglegaps, {0} }, + { MODKEY, XK_x, incrgaps, {.i = +3} }, + { MODKEY|ShiftMask, XK_x, incrgaps, {.i = -3} }, + { MODKEY, XK_Tab, view, {0} }, + { MODKEY|ShiftMask, XK_Tab, shiftview, {.i = -1}}, + { MODKEY, XK_q, killclient, {0} }, + { MODKEY|ShiftMask, XK_l, setlayout, {.v = &layouts[0]} }, + { MODKEY|ShiftMask, XK_u, setlayout, {.v = &layouts[1]} }, + { MODKEY|ShiftMask, XK_y, setlayout, {.v = &layouts[6]} }, + { MODKEY, XK_s, togglesticky, {0} }, + { MODKEY, XK_f, togglefullscr, {0} }, + { MODKEY, XK_z, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_z, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { MODKEY, XK_BackSpace, spawn, SHCMD("sysact") }, + { MODKEY, XK_m, spawn, SHCMD("mailsync") }, + { MODKEY|ShiftMask, XK_m, spawn, SHCMD("remaps") }, + { MODKEY, XK_p, spawn, SHCMD("scrot -s -q 100 screenshot.png") }, + { MODKEY|ShiftMask, XK_s, spawn, SHCMD("slock") }, + { MODKEY, XK_w, spawn, SHCMD("$BROWSER") }, + { MODKEY, XK_r, spawn, SHCMD(TERMINAL " -e lf") }, + { MODKEY|ShiftMask, XK_r, spawn, SHCMD(TERMINAL " -e btm") }, + { MODKEY, XK_n, spawn, SHCMD(TERMINAL " -e newsboat; pkill -RTMIN+6 dwmblocks") }, + { MODKEY, XK_e, spawn, SHCMD(TERMINAL " -e neomutt ; pkill -RTMIN+12 dwmblocks; rmdir ~/.abook") }, + { MODKEY, XK_i, spawn, SHCMD(TERMINAL " -e abook -C ~/.config/abook/abookrc --datafile ~/.config/abook/addressbook") }, + { MODKEY|ControlMask, XK_l, spawn, SHCMD("layouthandler") }, /* Bookmarks */ - { MODKEY, XK_b, spawn, SHCMD("bookmarkthis")}, - { MODKEY|XK_space, XK_space, spawn, SHCMD("xdotool type $(grep -v '^#' ~/.local/share/snippets | dmenu -i -l 50 | cut -d' ' -f1)")}, + { MODKEY, XK_b, spawn, SHCMD("bookmarkthis")}, + { MODKEY|XK_space, XK_space, spawn, SHCMD("xdotool type $(grep -v '^#' ~/.local/share/snippets | dmenu -i -l 50 | cut -d' ' -f1)")}, /* Audio */ - { MODKEY|ShiftMask, XK_t, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)")}, - { MODKEY, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 5; kill -44 $(pidof dwmblocks)") }, - { MODKEY|ShiftMask, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 15; kill -44 $(pidof dwmblocks)") }, - { MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") }, - { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") }, + { MODKEY|ShiftMask, XK_t, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)")}, + { MODKEY, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 5; kill -44 $(pidof dwmblocks)") }, + { MODKEY|ShiftMask, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 15; kill -44 $(pidof dwmblocks)") }, + { MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") }, + { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") }, + { 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)")}, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 3; kill -44 $(pidof dwmblocks)")}, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 3; kill -44 $(pidof dwmblocks)")}, + TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) @@ -207,4 +212,3 @@ static const Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; - |