Commits

Paul Barbu - Gheorghe  committed 306ed72

Added powerkeys and updated selfrestart

  • Participants
  • Parent commits f8c8230

Comments (0)

Files changed (3)

+# HG changeset patch
+# Parent 40f31091b918cef85c6c1cb3dc3a23da66794543
+Added bindings for suspend, reboot and poweroff
+
+diff -r 40f31091b918 config.def.h
+--- a/config.def.h	Sat Nov 17 14:02:14 2012 +0200
++++ b/config.def.h	Sat Nov 17 14:07:49 2012 +0200
+@@ -119,6 +119,9 @@
+ static const char *termcmd[]  = { "urxvt", NULL };
+ static const char *filemancmd[]  = { "thunar", NULL };
+ static const char *printcmd[]  = { "scrot", NULL };
++static const char *suspendcmd[]  = { "systemctl", "suspend", NULL };
++static const char *rebootcmd[]  = { "systemctl", "reboot", NULL };
++static const char *poweroffcmd[]  = { "systemctl", "poweroff", NULL };
+ 
+ static Key keys[] = {
+ 	/* modifier                     key        function        argument */
+@@ -162,6 +165,9 @@
+ 	TAGKEYS(                        XK_9,                      8)
+     { MODKEY|ShiftMask,             XK_r,      self_restart,   {0} },
+ 	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
++	{ MODKEY|ShiftMask|ControlMask, XK_F10,    spawn,          {.v = suspendcmd } },
++	{ MODKEY|ShiftMask|ControlMask, XK_F11,    spawn,          {.v = rebootcmd } },
++	{ MODKEY|ShiftMask|ControlMask, XK_F12,    spawn,          {.v = poweroffcmd } },
+ };
+ 
+ /* button definitions */
 # HG changeset patch
-# Parent b9e057051bf2467498652bcf4e75a76964617fd6
-Eliminated redundancy from the self restart function
+# Parent 08ea68610d87a57363104c64c081539d4c5647db
+Dwm can now be restarted using MODKEY+Shift+r
 
-diff -r b9e057051bf2 config.def.h
---- a/config.def.h	Fri Nov 16 18:45:21 2012 +0200
-+++ b/config.def.h	Sat Nov 17 00:24:28 2012 +0200
+diff -r 08ea68610d87 config.def.h
+--- a/config.def.h	Sat Nov 17 13:58:57 2012 +0200
++++ b/config.def.h	Sat Nov 17 14:01:55 2012 +0200
 @@ -1,5 +1,17 @@
  /* See LICENSE file for copyright and license details. */
  
  	TAGKEYS(                        XK_7,                      6)
  	TAGKEYS(                        XK_8,                      7)
  	TAGKEYS(                        XK_9,                      8)
-+    { MODKEY|ShiftMask,             XK_F10,    self_restart,   {0} },
++    { MODKEY|ShiftMask,             XK_r,      self_restart,   {0} },
  	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
  };
  
 bstack
 layoutcycle
 shiftview
+powerkeys