summaryrefslogtreecommitdiff
path: root/services
blob: 3bdc2ba984a10a9416b94d3b738b0899534bf277 (plain)
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

if [ "$1" == "setup" ]; then
	echo setting up user services...
	rc-update -U add pipewire-pulse gui
	rc-update -U add mako gui
	rc-update -U add wlsunset gui
	rc-update -U add waybar gui
	rc-update -U add swayidle gui
fi

if command -v rc-service >/dev/null 2>&1; then
	# run openrc user services
	openrc -U gui
else
	# run user services manually
	pipewire&
	pipewire-pulse&
	wireplumber&
	mako&
	wlsunset -l 51.5 -L -0.1 -t 2800 -T 6000&
	waybar&
	swayidle -w timeout 300 'swaylock -fi ~/.cache/lockwallpaper' \
		timeout 330 'swaymsg "output * power off"' \
		resume 'swaymsg "output * power on"' \
		before-sleep 'swaylock -fi ~/.cache/lockwallpaper'&
fi