Comments (0)

Files changed (2)

File selfrestart Added

View file
  • Ignore whitespace
  • Hide word diff
+# HG changeset patch
+# Parent 1c633c83b0342ccafcfd00effba1449cd8789faf
+
+diff -r 1c633c83b034 config.def.h
+--- a/config.def.h	Fri Nov 16 14:02:52 2012 +0200
++++ b/config.def.h	Fri Nov 16 14:11:36 2012 +0200
+@@ -89,6 +89,7 @@
+ 	TAGKEYS(                        XK_7,                      6)
+ 	TAGKEYS(                        XK_8,                      7)
+ 	TAGKEYS(                        XK_9,                      8)
++    { MODKEY|ShiftMask,             XK_F10,    self_restart,   {0} },
+ 	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
+ };
+ 
+@@ -109,3 +110,14 @@
+ 	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
+ };
+ 
++/**
++ * self-restart
++ *
++ * Credits to: Yu-Jie Lin
++ * https://sites.google.com/site/yjlnotes/notes/dwm *
++ */
++void
++self_restart(const Arg *arg) {
++    const char *p = "/usr/bin/dwm";
++    execv(p, (char *const[]) {p, NULL});
++}

File series Modified

View file
  • Ignore whitespace
  • Hide word diff
 dmenu
 resizehints
 tagnames
+selfrestart