aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-10-20 14:54:30 +0800
committerGuangxiong Lin <[email protected]>2021-10-20 14:54:54 +0800
commitdd319bbce71fa643ea95fa9422b4c9a99661869f (patch)
treee44f567f254f73a3ea6b1c8627e6905f72c6708b /bin
parent935e3857808edea0b5ff3589f2462b400304f4f3 (diff)
downloaddotfiles-dd319bbce71fa643ea95fa9422b4c9a99661869f.tar.gz
dotfiles-dd319bbce71fa643ea95fa9422b4c9a99661869f.tar.bz2
dotfiles-dd319bbce71fa643ea95fa9422b4c9a99661869f.zip
Add config of i3wm and dwm
Diffstat (limited to 'bin')
-rwxr-xr-xbin/startdwm17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/startdwm b/bin/startdwm
new file mode 100755
index 0000000..bafb57e
--- /dev/null
+++ b/bin/startdwm
@@ -0,0 +1,17 @@
+while true; do
+ xsetroot -name "$( date +"%F %R" )"
+ sleep 1m
+done &
+
+csum=""
+new_csum=$(sha1sum $(which dwm))
+while true; do
+ if [ "$csum" != "$new_csum" ]; then
+ csum=$new_csum
+ dwm 2> ~/.dwm.log
+ else
+ exit 0
+ fi
+ new_csum=$(sha1sum $(which dwm))
+ sleep 0.5
+done