commit 0cea7bdce447bacb7b68fb1abf34a1062ab93732
Author: Matteo Bini <[email protected]>
Date:   Wed Feb 2 10:36:15 2022 +0100

    [dwm][patch][rebootcmd] Update to 6.3

diff --git 
a/dwm.suckless.org/patches/rebootcmd/dwm-rebootcmd-20220202-d39e2f3.diff 
b/dwm.suckless.org/patches/rebootcmd/dwm-rebootcmd-20220202-d39e2f3.diff
new file mode 100644
index 00000000..91a4aa82
--- /dev/null
+++ b/dwm.suckless.org/patches/rebootcmd/dwm-rebootcmd-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 *rebootcmd[]  = { "sudo", "shutdown", "-r", "+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_Delete, spawn,          {.v = 
rebootcmd} },
+ };
+ 
+ /* 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\-Delete
++Reboot (sudo shutdown -r +0).
+ .SS Mouse commands
+ .TP
+ .B Mod1\-Button1
diff --git a/dwm.suckless.org/patches/rebootcmd/index.md 
b/dwm.suckless.org/patches/rebootcmd/index.md
index 3cd130ee..c4282123 100644
--- a/dwm.suckless.org/patches/rebootcmd/index.md
+++ b/dwm.suckless.org/patches/rebootcmd/index.md
@@ -10,6 +10,7 @@ enable to execute `sudo shutdown` without password.
 Download
 --------
 * [dwm-rebootcmd-20211013-5ed9c48.diff](dwm-rebootcmd-20211013-5ed9c48.diff)
+* [dwm-rebootcmd-20220202-d39e2f3.diff](dwm-rebootcmd-20220202-d39e2f3.diff)
 
 Authors
 -------


Reply via email to