summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2025-10-29 15:33:11 +0000
committerBlake Romero <blake@developercraft.com>2025-10-29 17:36:02 +0000
commitee54cbf618ca9b01ad62669485f694a38c37518d (patch)
treefcd0405db8b0434e5bed88eac599b64229bfbf19
parenta7c032c2c0f21faee0911dc3dbd6f820d4eea513 (diff)
Ensure OpenRC services are set to runHEADmain
-rw-r--r--config2
-rwxr-xr-xservices15
2 files changed, 15 insertions, 2 deletions
diff --git a/config b/config
index 057fab0..239bf86 100644
--- a/config
+++ b/config
@@ -3,7 +3,7 @@
#
# Requirements
-# swaybg wmenu foot waybar
+# foot swaybg wmenu waybar firefox thunar
# Environment Fixes
#exec export SWAYSOCK="$(ls /run/user/1000/sway-ipc.* | head -n 1)"
diff --git a/services b/services
index ce1866a..3bdc2ba 100755
--- a/services
+++ b/services
@@ -1,5 +1,13 @@
#!/bin/sh
-distro="$(sed '/NAME/q' /etc/os-release | cut -d'"' -f2)"
+
+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
@@ -12,4 +20,9 @@ else
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
+