Introduction
Introduction Statistics Contact Development Disclaimer Help
Add dwmstatus-restart script as an example. - dwmstatus - A simple dwm status a…
git clone git://git.suckless.org/dwmstatus
Log
Files
Refs
LICENSE
---
commit a30f9f5bd1c9c3fcd96b32e3919206df0e9306bf
parent f2dea576d5051a860a6708c6bd170d35be18700d
Author: Christoph Lohmann <[email protected]>
Date: Wed, 28 Dec 2022 19:09:24 +0100
Add dwmstatus-restart script as an example.
Diffstat:
A dwmstatus-restart | 16 ++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/dwmstatus-restart b/dwmstatus-restart
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if pgrep -x dwmstatus 2>&1 >/dev/null;
+then
+ printf "Killing old dwmstatus instances ... "
+ pkill -KILL -x dwmstatus
+ printf "done.\n"
+fi
+
+if [ -e $HOME/.xinitrc ];
+then
+ cat $HOME/.xinitrc | grep dwmstatus | sh
+else
+ dwmstatus &
+fi
+
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.