prompt script now unnecessary
This commit is contained in:
parent
6e374b2465
commit
535d682d1c
1 changed files with 6 additions and 6 deletions
12
config.h
12
config.h
|
@ -88,7 +88,7 @@ static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
STACKKEYS(MODKEY, focus)
|
STACKKEYS(MODKEY, focus)
|
||||||
STACKKEYS(MODKEY|ShiftMask, push)
|
STACKKEYS(MODKEY|ShiftMask, push)
|
||||||
{ MODKEY|ShiftMask, XK_Escape, spawn, SHCMD("prompt \"Leave Xorg?\" \"killall Xorg\"") },
|
{ MODKEY|ShiftMask, XK_Escape, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Close Xorg?\")\" = Yes ] && killall Xorg") },
|
||||||
{ MODKEY, XK_grave, spawn, SHCMD("dmenuunicode") },
|
{ MODKEY, XK_grave, spawn, SHCMD("dmenuunicode") },
|
||||||
/* { MODKEY|ShiftMask, XK_grave, togglescratch, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_grave, togglescratch, SHCMD("") }, */
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
|
@ -107,7 +107,7 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_equal, spawn, SHCMD("amixer sset Master 5%+ ; pkill -RTMIN+10 dwmblocks") },
|
{ MODKEY, XK_equal, spawn, SHCMD("amixer sset Master 5%+ ; pkill -RTMIN+10 dwmblocks") },
|
||||||
{ MODKEY|ShiftMask, XK_equal, spawn, SHCMD("amixer sset Master 15%+ ; pkill -RTMIN+10 dwmblocks") },
|
{ MODKEY|ShiftMask, XK_equal, spawn, SHCMD("amixer sset Master 15%+ ; pkill -RTMIN+10 dwmblocks") },
|
||||||
/* { MODKEY, XK_BackSpace, spawn, SHCMD("") }, */
|
/* { MODKEY, XK_BackSpace, spawn, SHCMD("") }, */
|
||||||
{ MODKEY|ShiftMask, XK_BackSpace, spawn, SHCMD("prompt \"Reboot computer?\" \"sudo -A reboot\"") },
|
{ MODKEY|ShiftMask, XK_BackSpace, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Reboot computer?\")\" = Yes ] && sudo -A reboot") },
|
||||||
|
|
||||||
{ MODKEY, XK_Tab, view, {0} },
|
{ MODKEY, XK_Tab, view, {0} },
|
||||||
/* { MODKEY|ShiftMask, XK_Tab, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_Tab, spawn, SHCMD("") }, */
|
||||||
|
@ -161,7 +161,7 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_z, incrgaps, {.i = +1 } },
|
{ MODKEY, XK_z, incrgaps, {.i = +1 } },
|
||||||
{ MODKEY|ShiftMask, XK_z, incrgaps, {.i = -1 } },
|
{ MODKEY|ShiftMask, XK_z, incrgaps, {.i = -1 } },
|
||||||
{ MODKEY, XK_x, spawn, SHCMD("slock & xset dpms force off; mpc pause ; pauseallmpv") },
|
{ MODKEY, XK_x, spawn, SHCMD("slock & xset dpms force off; mpc pause ; pauseallmpv") },
|
||||||
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") },
|
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Shutdown computer?\")\" = Yes ] && sudo -A shutdown -h now") },
|
||||||
/* { MODKEY, XK_c, spawn, SHCMD("") }, */
|
/* { MODKEY, XK_c, spawn, SHCMD("") }, */
|
||||||
{ MODKEY|ShiftMask, XK_c, spawn, SHCMD("mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title=mpvfloat /dev/video0") },
|
{ MODKEY|ShiftMask, XK_c, spawn, SHCMD("mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title=mpvfloat /dev/video0") },
|
||||||
{ MODKEY, XK_v, spawn, SHCMD("st -e $EDITOR -c \"VimwikiIndex\"") },
|
{ MODKEY, XK_v, spawn, SHCMD("st -e $EDITOR -c \"VimwikiIndex\"") },
|
||||||
|
@ -184,7 +184,7 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_F1, spawn, SHCMD("groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -") },
|
{ MODKEY, XK_F1, spawn, SHCMD("groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -") },
|
||||||
{ MODKEY, XK_F2, quit, {0} },
|
{ MODKEY, XK_F2, quit, {0} },
|
||||||
{ MODKEY, XK_F3, spawn, SHCMD("displayselect") },
|
{ MODKEY, XK_F3, spawn, SHCMD("displayselect") },
|
||||||
{ MODKEY, XK_F4, spawn, SHCMD("prompt \"Hibernate computer?\" \"sudo -A zzz -Z\"") },
|
{ MODKEY, XK_F4, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Hibernate computer?\")\" = Yes ] && sudo -A zzz") },
|
||||||
{ MODKEY, XK_F5, xrdb, {.v = NULL } },
|
{ MODKEY, XK_F5, xrdb, {.v = NULL } },
|
||||||
{ MODKEY, XK_F6, spawn, SHCMD("torwrap") },
|
{ MODKEY, XK_F6, spawn, SHCMD("torwrap") },
|
||||||
{ MODKEY, XK_F7, spawn, SHCMD("td-toggle") },
|
{ MODKEY, XK_F7, spawn, SHCMD("td-toggle") },
|
||||||
|
@ -214,9 +214,9 @@ static Key keys[] = {
|
||||||
{ 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("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Shutdown computer?\")\" = Yes ] && 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("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Hibernate computer?\")\" = Yes ] && sudo -A zzz") },
|
||||||
{ 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") },
|
||||||
|
|
Loading…
Reference in a new issue