summaryrefslogblamecommitdiff
path: root/.config/wayland/winit
blob: 4f21db2a18c5de00483f9a3b0766e0c9a094a6ab (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

         











                                                                   
            

                                                                    



                     




                                                        
             
                
#!/bin/sh

# audio and xdp
if command -v systemctl > /dev/null; then
	# https://git.sinanmohd.com/nixos/tree/features/wayland.nix
	dbus-xdp-enviroment &
else
	xdg-desktop-portal &
	xdg-desktop-portal-wlr &
	pipewire &
	pipewire-pulse &
	sleep 1 && wireplumber &
fi

# background
swaybg -m fill -i "${XDG_DATA_HOME:-$HOME/.local/share}/wallpaper" &
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 &