mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-07-29 05:17:45 +02:00
xorg: restart dwm on changes otherwise logout
This commit is contained in:
parent
248f13df8f
commit
82b789920b
15
.xinitrc
15
.xinitrc
@ -9,6 +9,17 @@ xrandr --auto
|
|||||||
|
|
||||||
setbg
|
setbg
|
||||||
|
|
||||||
while true; do
|
csum=""
|
||||||
dwm || exit
|
new_csum=$(sha1sum $(which dwm))
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
if [ "$csum" != "$new_csum" ]
|
||||||
|
then
|
||||||
|
csum=$new_csum
|
||||||
|
dwm
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
new_csum=$(sha1sum $(which dwm))
|
||||||
|
sleep 0.5
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user