[wiki] [sites] added the selfrestart patch to dwm || Barbu Paul - Gheorghe

From: <hg_AT_suckless.org>
Date: Sun, 25 Nov 2012 13:03:02 +0100 (CET)

changeset: 1014:7dd645a7849b
tag: tip
user: Barbu Paul - Gheorghe <barbu.paul.gheorghe_AT_gmail.com>
date: Sun Nov 25 14:02:58 2012 +0200
files: dwm.suckless.org/patches/dwm-r1615-selfrestart.diff dwm.suckless.org/patches/selfrestart.md
description:
added the selfrestart patch to dwm


diff -r a1da1c0ebc1a -r 7dd645a7849b dwm.suckless.org/patches/dwm-r1615-selfrestart.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-r1615-selfrestart.diff Sun Nov 25 14:02:58 2012 +0200
_AT_@ -0,0 +1,35 @@
+# HG changeset patch
+# User Barbu Paul - Gheorghe <barbu.paul.gheorghe_AT_gmail.com>
+# Date 1353844130 -7200
+# Node ID 6a057e59c31e7b831766d5abe84bdb0db868db92
+# Parent 9cace08dcb7e57f76a2206bada6fc3b9557c63dc
+Added the possibility to selfrestart dwm without external script
+
+diff -r 9cace08dcb7e -r 6a057e59c31e config.def.h
+--- a/config.def.h Sun Nov 18 17:52:42 2012 +0100
++++ b/config.def.h Sun Nov 25 13:48:50 2012 +0200
+_AT_@ -1,5 +1,17 @@
+ /* See LICENSE file for copyright and license details. */
+
++/**
++ * self-restart
++ *
++ * Inspired by: Yu-Jie Lin
++ * https://sites.google.com/site/yjlnotes/notes/dwm
++ */
++#define DWM_PATH "/usr/local/bin/dwm"
++void self_restart(const Arg *arg) {
++ char *const argv[] = {DWM_PATH, NULL};
++ execv(argv[0], argv);
++}
++
+ /* appearance */
+ static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
+ static const char normbordercolor[] = "#444444";
+_AT_@ -87,6 +99,7 @@
+ TAGKEYS( XK_7, 6)
+ TAGKEYS( XK_8, 7)
+ TAGKEYS( XK_9, 8)
++ { MODKEY|ShiftMask, XK_r, self_restart, {0} },
+ { MODKEY|ShiftMask, XK_q, quit, {0} },
+ };
diff -r a1da1c0ebc1a -r 7dd645a7849b dwm.suckless.org/patches/selfrestart.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/selfrestart.md Sun Nov 25 14:02:58 2012 +0200
_AT_@ -0,0 +1,15 @@
+selfrestart
+===========
+
+Description
+-----------
+Restart dwm without the unnecessary dependency of an external script.
+
+Download
+--------
+ * [dwm-r1615-selfrestart.diff](dwm-r1615-selfrestart.diff)
+
+Implementation & idea
+---------------------
+ * Idea belongs to: [Yu-Jie Lin](https://sites.google.com/site/yjlnotes/notes/dwm)
+ * The simplified implementation: Barbu Paul - Gheorghe <barbu.paul.gheorghe_AT_gmail.com>
Received on Sun Nov 25 2012 - 13:03:02 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 25 2012 - 13:12:06 CET