summaryrefslogblamecommitdiff
path: root/.config/wayland/winit
blob: ef933d39310eed0bbba67d87f4686fa33d63a140 (plain) (tree)
1
2
3
4
5
6
7
8
9

         

                                           




                                
            
                                                                            
                                                            



                     




                                                        
             
                
#!/bin/sh

# audio
if ! command -v systemctl > /dev/null; then
	pipewire &
	pipewire-pulse &
	sleep 1 && wireplumber &
fi

# background
swaybg -m fill -i "${XDG_DATA_HOME:-$HOME/.local/share}/wallpaper/desktop" &
echo $! > "${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/swaybg.pid" &

# notification deamon
mako &

# wob
wobpipe="${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/wobpipe" &&
mkfifo "$wobpipe" &&
tail -f "$wobpipe" | wob &

# screen lock
caffeine -st 1 &