[wiki] [sites] [dwm][patch][shutdowncmd] Update to 6.3 || Matteo Bini

From: <git_AT_suckless.org>
Date: Wed, 02 Feb 2022 10:42:18 +0100

commit e6bceb0d968f3b2d9dd110f4c8ab92fb9aaeac17
Author: Matteo Bini <matteobin_AT_protonmail.com>
Date: Wed Feb 2 10:41:56 2022 +0100

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

diff --git a/dwm.suckless.org/patches/shutdowncmd/dwm-shutdowncmd-20220202-d39e2f3.diff b/dwm.suckless.org/patches/shutdowncmd/dwm-shutdowncmd-20220202-d39e2f3.diff
new file mode 100644
index 00000000..a696e3ff
--- /dev/null
+++ b/dwm.suckless.org/patches/shutdowncmd/dwm-shutdowncmd-20220202-d39e2f3.diff
_AT_@ -0,0 +1,30 @@
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -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[] = {
+_AT_@ -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
+_AT_@ -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
index 2cfdd71b..37f2482e 100644
--- a/dwm.suckless.org/patches/shutdowncmd/index.md
+++ b/dwm.suckless.org/patches/shutdowncmd/index.md
_AT_@ -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
 -------
Received on Wed Feb 02 2022 - 10:42:18 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 02 2022 - 10:48:43 CET