summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h65
1 files changed, 28 insertions, 37 deletions
diff --git a/config.h b/config.h
index c8acded..4213541 100644
--- a/config.h
+++ b/config.h
@@ -140,7 +140,7 @@ static Key keys[] = {
{ MODKEY, XK_a, spawn, SHCMD("st -e alsamixer ; pkill -RTMIN+10 dwmblocks") },
/* { MODKEY|ShiftMask, XK_a, spawn, SHCMD("") }, */
- { MODKEY, XK_s, togglesticky, {0} },
+ { MODKEY, XK_s, togglesticky, {0} },
/* { MODKEY|ShiftMask, XK_s, spawn, SHCMD("") }, */
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_d, togglegaps, {0} },
@@ -149,10 +149,7 @@ static Key keys[] = {
{ MODKEY, XK_g, shiftview, { .i = -1 } },
/* { MODKEY|ShiftMask, XK_g, spawn, SHCMD("") }, */
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
- /* { MODKEY, XK_j, focusstack, {.i = +1 } }, */
- /* { MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } }, */
- /* { MODKEY, XK_k, focusstack, {.i = -1 } }, */
- /* { MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } }, */
+ /* J and K are automatically bound above in STACKEYS */
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_semicolon, shiftview, { .i = 1 } },
/* { MODKEY|ShiftMask, XK_semicolon, shiftview, SHCMD("") }, */
@@ -180,7 +177,6 @@ static Key keys[] = {
{ MODKEY, XK_period, spawn, SHCMD("mpc next") },
{ MODKEY|ShiftMask, XK_period, spawn, SHCMD("mpc repeat") },
-
{ MODKEY, XK_Page_Up, shiftview, { .i = -1 } },
{ MODKEY, XK_Page_Down, shiftview, { .i = 1 } },
{ MODKEY, XK_Insert, spawn, SHCMD("showclip") },
@@ -197,46 +193,41 @@ static Key keys[] = {
{ MODKEY, XK_F10, spawn, SHCMD("dmenuumount") },
/* { MODKEY, XK_F11, spawn, SHCMD("") }, */
{ MODKEY, XK_F12, spawn, SHCMD("st -e sudo nmtui") },
-
- /* { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, */
-
-
{ MODKEY, XK_space, zoom, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
- /* { XK_Print, spawn, SHCMD("maim pic-full-$(date '+%y%m\\%d-%H%M-\\%S').png") }, */
+ { 0, XK_Print, spawn, SHCMD("maim pic-full-$(date '+%y%m%d-%H%M-%S').png") },
{ ShiftMask, XK_Print, spawn, SHCMD("maimpick") },
{ MODKEY, XK_Print, spawn, SHCMD("dmenurecord") },
{ MODKEY|ShiftMask, XK_Print, spawn, SHCMD("dmenurecord kill") },
{ MODKEY, XK_Delete, spawn, SHCMD("dmenurecord kill") },
- { 0, XF86XK_AudioMute, spawn, SHCMD("amixer sset Master toggle ; pkill -RTMIN+10 dwmblocks") },
- { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer sset Master 5%+ ; pkill -RTMIN+10 dwmblocks") },
- { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer sset Master 5%- ; pkill -RTMIN+10 dwmblocks") },
- { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") },
- { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") },
- { 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },
- { 0, XF86XK_AudioPlay, spawn, SHCMD("mpc play") },
- { 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop") },
- { 0, XF86XK_AudioRewind, spawn, SHCMD("mpc seek -10") },
- { 0, XF86XK_AudioForward, spawn, SHCMD("mpc seek +10") },
- { 0, XF86XK_AudioMedia, spawn, SHCMD("st -e ncmpcpp") },
- { 0, XF86XK_PowerOff, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") },
- { 0, XF86XK_Calculator, spawn, SHCMD("st -e bc -l") },
- { 0, XF86XK_Sleep, spawn, SHCMD("prompt \"Hibernate computer?\" \"sudo -A zzz -Z\"") },
- { 0, XF86XK_WWW, spawn, SHCMD("$BROWSER") },
- { 0, XF86XK_DOS, spawn, SHCMD("st") },
- { 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") },
- { 0, XF86XK_TaskPane, spawn, SHCMD("st -e htop") },
- { 0, XF86XK_Mail, spawn, SHCMD("st -e neomutt ; pkill -RTMIN+12 dwmblocks") },
- { 0, XF86XK_MyComputer, spawn, SHCMD("st -e $FILE /") },
- { 0, XF86XK_Battery, spawn, SHCMD("notify-send \"Battery status\" \"$(batstat)\"") },
- { 0, XF86XK_Launch1, spawn, SHCMD("xset dpms force off") },
-
- { 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || synclient TouchpadOff=1") },
- { 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") },
- { 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") },
+ { 0, XF86XK_AudioMute, spawn, SHCMD("amixer sset Master toggle ; pkill -RTMIN+10 dwmblocks") },
+ { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer sset Master 5%+ ; pkill -RTMIN+10 dwmblocks") },
+ { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer sset Master 5%- ; pkill -RTMIN+10 dwmblocks") },
+ { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") },
+ { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") },
+ { 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },
+ { 0, XF86XK_AudioPlay, spawn, SHCMD("mpc play") },
+ { 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop") },
+ { 0, XF86XK_AudioRewind, spawn, SHCMD("mpc seek -10") },
+ { 0, XF86XK_AudioForward, spawn, SHCMD("mpc seek +10") },
+ { 0, XF86XK_AudioMedia, spawn, SHCMD("st -e ncmpcpp") },
+ { 0, XF86XK_PowerOff, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") },
+ { 0, XF86XK_Calculator, spawn, SHCMD("st -e bc -l") },
+ { 0, XF86XK_Sleep, spawn, SHCMD("prompt \"Hibernate computer?\" \"sudo -A zzz -Z\"") },
+ { 0, XF86XK_WWW, spawn, SHCMD("$BROWSER") },
+ { 0, XF86XK_DOS, spawn, SHCMD("st") },
+ { 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") },
+ { 0, XF86XK_TaskPane, spawn, SHCMD("st -e htop") },
+ { 0, XF86XK_Mail, spawn, SHCMD("st -e neomutt ; pkill -RTMIN+12 dwmblocks") },
+ { 0, XF86XK_MyComputer, spawn, SHCMD("st -e $FILE /") },
+ { 0, XF86XK_Battery, spawn, SHCMD("notify-send \"Battery status\" \"$(batstat)\"") },
+ { 0, XF86XK_Launch1, spawn, SHCMD("xset dpms force off") },
+ { 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || synclient TouchpadOff=1") },
+ { 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") },
+ { 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") },
/* { MODKEY, XK_space, setlayout, {0} }, */