summaryrefslogtreecommitdiff
path: root/.config/wayland/winit
blob: ef933d39310eed0bbba67d87f4686fa33d63a140 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 &