sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit e6bceb0d968f3b2d9dd110f4c8ab92fb9aaeac17
parent 0cea7bdce447bacb7b68fb1abf34a1062ab93732
Author: Matteo Bini <matteobin@protonmail.com>
Date:   Wed,  2 Feb 2022 10:41:56 +0100

[dwm][patch][shutdowncmd] Update to 6.3

Diffstat:
Adwm.suckless.org/patches/shutdowncmd/dwm-shutdowncmd-20220202-d39e2f3.diff | 30++++++++++++++++++++++++++++++
Mdwm.suckless.org/patches/shutdowncmd/index.md | 1+
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/shutdowncmd/dwm-shutdowncmd-20220202-d39e2f3.diff b/dwm.suckless.org/patches/shutdowncmd/dwm-shutdowncmd-20220202-d39e2f3.diff @@ -0,0 +1,30 @@ +--- a/config.def.h ++++ b/config.def.h +@@ -58,6 +58,7 @@ static const Layout layouts[] = { + /* commands */ + static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ + static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; ++static const char *shutdowncmd[] = { "sudo", "shutdown", "+0", NULL }; + static const char *termcmd[] = { "st", NULL }; + + static Key keys[] = { +@@ -95,6 +95,7 @@ static Key keys[] = { + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) + { MODKEY|ShiftMask, XK_q, quit, {0} }, ++ { MODKEY|ShiftMask, XK_Escape, spawn, {.v = shutdowncmd} }, + }; + + /* button definitions */ +--- a/dwm.1 ++++ b/dwm.1 +@@ -142,6 +142,9 @@ Add/remove all windows with nth tag to/from the view. + .TP + .B Mod1\-Shift\-q + Quit dwm. ++.TP ++.B Mod1\-Shift\-Esc ++Shutdown (sudo shutdown +0). + .SS Mouse commands + .TP + .B Mod1\-Button1 diff --git a/dwm.suckless.org/patches/shutdowncmd/index.md b/dwm.suckless.org/patches/shutdowncmd/index.md @@ -10,6 +10,7 @@ enable to execute `sudo shutdown` without password. Download -------- * [dwm-shutdowncmd-20211013-5ed9c48.diff](dwm-shutdowncmd-20211013-5ed9c48.diff) +* [dwm-shutdowncmd-20220202-d39e2f3.diff](dwm-shutdowncmd-20220202-d39e2f3.diff) Authors -------