reconfigured dwm

This commit is contained in:
Gerg-L 2023-03-21 15:26:31 -04:00
parent 213d40d8ee
commit 81f24d95b3
3 changed files with 15 additions and 47 deletions

View file

@ -22,6 +22,7 @@ in {
sessionCommands = ''
${pkgs.feh}/bin/feh --bg-center ${self + /misc/recursion.png}
${pkgs.numlockx}/bin/numlockx
${pkgs.picom}/bin/picom &
'';
defaultSession = "none+dwm";
};
@ -30,7 +31,20 @@ in {
{
name = "dwm";
start = ''
dwm &
update_time () {
while :
do
sleep 1
xsetroot -name "$(date +"%I:%M %p")"
done
}
dont_stop() {
while type dwm >/dev/null ; do dwm && continue || break ; done
}
update_time &
dont_stop &
waitPID=$!
'';
};