summaryrefslogtreecommitdiff
path: root/.config/wayland/winit
blob: 4f21db2a18c5de00483f9a3b0766e0c9a094a6ab (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
24
25
26
27
28
#!/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 &