mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
reconfigured dwm
This commit is contained in:
parent
213d40d8ee
commit
81f24d95b3
3 changed files with 15 additions and 47 deletions
|
|
@ -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=$!
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue