cleanup
This commit is contained in:
parent
e2e154ad3f
commit
419b42c258
1 changed files with 28 additions and 37 deletions
65
config.h
65
config.h
|
@ -140,7 +140,7 @@ static Key keys[] = {
|
||||||
|
|
||||||
{ MODKEY, XK_a, spawn, SHCMD("st -e alsamixer ; pkill -RTMIN+10 dwmblocks") },
|
{ MODKEY, XK_a, spawn, SHCMD("st -e alsamixer ; pkill -RTMIN+10 dwmblocks") },
|
||||||
/* { MODKEY|ShiftMask, XK_a, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_a, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_s, togglesticky, {0} },
|
{ MODKEY, XK_s, togglesticky, {0} },
|
||||||
/* { MODKEY|ShiftMask, XK_s, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_s, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY|ShiftMask, XK_d, togglegaps, {0} },
|
{ MODKEY|ShiftMask, XK_d, togglegaps, {0} },
|
||||||
|
@ -149,10 +149,7 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_g, shiftview, { .i = -1 } },
|
{ MODKEY, XK_g, shiftview, { .i = -1 } },
|
||||||
/* { MODKEY|ShiftMask, XK_g, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_g, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||||
/* { MODKEY, XK_j, focusstack, {.i = +1 } }, */
|
/* J and K are automatically bound above in STACKEYS */
|
||||||
/* { MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } }, */
|
|
||||||
/* { MODKEY, XK_k, focusstack, {.i = -1 } }, */
|
|
||||||
/* { MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } }, */
|
|
||||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||||
{ MODKEY, XK_semicolon, shiftview, { .i = 1 } },
|
{ MODKEY, XK_semicolon, shiftview, { .i = 1 } },
|
||||||
/* { MODKEY|ShiftMask, XK_semicolon, shiftview, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_semicolon, shiftview, SHCMD("") }, */
|
||||||
|
@ -180,7 +177,6 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_period, spawn, SHCMD("mpc next") },
|
{ MODKEY, XK_period, spawn, SHCMD("mpc next") },
|
||||||
{ MODKEY|ShiftMask, XK_period, spawn, SHCMD("mpc repeat") },
|
{ MODKEY|ShiftMask, XK_period, spawn, SHCMD("mpc repeat") },
|
||||||
|
|
||||||
|
|
||||||
{ MODKEY, XK_Page_Up, shiftview, { .i = -1 } },
|
{ MODKEY, XK_Page_Up, shiftview, { .i = -1 } },
|
||||||
{ MODKEY, XK_Page_Down, shiftview, { .i = 1 } },
|
{ MODKEY, XK_Page_Down, shiftview, { .i = 1 } },
|
||||||
{ MODKEY, XK_Insert, spawn, SHCMD("showclip") },
|
{ MODKEY, XK_Insert, spawn, SHCMD("showclip") },
|
||||||
|
@ -197,46 +193,41 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_F10, spawn, SHCMD("dmenuumount") },
|
{ MODKEY, XK_F10, spawn, SHCMD("dmenuumount") },
|
||||||
/* { MODKEY, XK_F11, spawn, SHCMD("") }, */
|
/* { MODKEY, XK_F11, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_F12, spawn, SHCMD("st -e sudo nmtui") },
|
{ MODKEY, XK_F12, spawn, SHCMD("st -e sudo nmtui") },
|
||||||
|
|
||||||
/* { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, */
|
|
||||||
|
|
||||||
|
|
||||||
{ MODKEY, XK_space, zoom, {0} },
|
{ MODKEY, XK_space, zoom, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {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") },
|
{ ShiftMask, XK_Print, spawn, SHCMD("maimpick") },
|
||||||
{ MODKEY, XK_Print, spawn, SHCMD("dmenurecord") },
|
{ MODKEY, XK_Print, spawn, SHCMD("dmenurecord") },
|
||||||
{ MODKEY|ShiftMask, XK_Print, spawn, SHCMD("dmenurecord kill") },
|
{ MODKEY|ShiftMask, XK_Print, spawn, SHCMD("dmenurecord kill") },
|
||||||
{ MODKEY, XK_Delete, 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_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_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_AudioLowerVolume, spawn, SHCMD("amixer sset Master 5%- ; pkill -RTMIN+10 dwmblocks") },
|
||||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") },
|
{ 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") },
|
||||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") },
|
{ 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") },
|
||||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },
|
{ 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },
|
||||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("mpc play") },
|
{ 0, XF86XK_AudioPlay, spawn, SHCMD("mpc play") },
|
||||||
{ 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop") },
|
{ 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop") },
|
||||||
{ 0, XF86XK_AudioRewind, spawn, SHCMD("mpc seek -10") },
|
{ 0, XF86XK_AudioRewind, spawn, SHCMD("mpc seek -10") },
|
||||||
{ 0, XF86XK_AudioForward, spawn, SHCMD("mpc seek +10") },
|
{ 0, XF86XK_AudioForward, spawn, SHCMD("mpc seek +10") },
|
||||||
{ 0, XF86XK_AudioMedia, spawn, SHCMD("st -e ncmpcpp") },
|
{ 0, XF86XK_AudioMedia, spawn, SHCMD("st -e ncmpcpp") },
|
||||||
{ 0, XF86XK_PowerOff, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") },
|
{ 0, XF86XK_PowerOff, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") },
|
||||||
{ 0, XF86XK_Calculator, spawn, SHCMD("st -e bc -l") },
|
{ 0, XF86XK_Calculator, spawn, SHCMD("st -e bc -l") },
|
||||||
{ 0, XF86XK_Sleep, spawn, SHCMD("prompt \"Hibernate computer?\" \"sudo -A zzz -Z\"") },
|
{ 0, XF86XK_Sleep, spawn, SHCMD("prompt \"Hibernate computer?\" \"sudo -A zzz -Z\"") },
|
||||||
{ 0, XF86XK_WWW, spawn, SHCMD("$BROWSER") },
|
{ 0, XF86XK_WWW, spawn, SHCMD("$BROWSER") },
|
||||||
{ 0, XF86XK_DOS, spawn, SHCMD("st") },
|
{ 0, XF86XK_DOS, spawn, SHCMD("st") },
|
||||||
{ 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") },
|
{ 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") },
|
||||||
{ 0, XF86XK_TaskPane, spawn, SHCMD("st -e htop") },
|
{ 0, XF86XK_TaskPane, spawn, SHCMD("st -e htop") },
|
||||||
{ 0, XF86XK_Mail, spawn, SHCMD("st -e neomutt ; pkill -RTMIN+12 dwmblocks") },
|
{ 0, XF86XK_Mail, spawn, SHCMD("st -e neomutt ; pkill -RTMIN+12 dwmblocks") },
|
||||||
{ 0, XF86XK_MyComputer, spawn, SHCMD("st -e $FILE /") },
|
{ 0, XF86XK_MyComputer, spawn, SHCMD("st -e $FILE /") },
|
||||||
{ 0, XF86XK_Battery, spawn, SHCMD("notify-send \"Battery status\" \"$(batstat)\"") },
|
{ 0, XF86XK_Battery, spawn, SHCMD("notify-send \"Battery status\" \"$(batstat)\"") },
|
||||||
{ 0, XF86XK_Launch1, spawn, SHCMD("xset dpms force off") },
|
{ 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_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || synclient TouchpadOff=1") },
|
{ 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") },
|
||||||
{ 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") },
|
{ 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") },
|
||||||
{ 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") },
|
|
||||||
|
|
||||||
/* { MODKEY, XK_space, setlayout, {0} }, */
|
/* { MODKEY, XK_space, setlayout, {0} }, */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue