refactor(hypr): migrate swww systemd service to hyprland launcher

This commit is contained in:
Price Hiller 2023-12-01 02:24:41 -06:00
parent cc00e11a8d
commit 61ec5c6ef0
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
6 changed files with 2 additions and 38 deletions

View File

@ -6,6 +6,7 @@ source = ~/.config/hypr/wm/monitors.conf
source = ~/.config/hypr/wm/window-rules.conf
exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash
exec-once = ~/.config/hypr/scripts/launchers/launch-waybar.bash
exec-once = ~/.config/hypr/scripts/launchers/launch-swww.bash
exec-once = mako --history 1
exec-once = udiskie --tray
exec-once = blueman-applet

View File

@ -49,7 +49,7 @@ set-wallpapers() {
}
main() {
until systemctl --user is-active swww --quiet; do
until swww init; do
sleep .1
done
log "swww daemon running, setting wallpapers"

View File

@ -1 +0,0 @@
*.wants

View File

@ -1,4 +0,0 @@
[Unit]
Description=Compositor target for WM to be launched manually
Requires=graphical-session.target
After=graphical-session.target

View File

@ -1,14 +0,0 @@
[Unit]
Description=Wayland Wallpaper Service
PartOf=swww.service
After=swww.service
[Service]
ExecStart=bash %h/.config/systemd/user/scripts/init-wallpapers.bash
ExecStop=kill -SIGTERM $MAINPID
TimeoutSec=5sec
Restart=on-failure
RestartSec=3
[Install]
WantedBy=swww.service

View File

@ -1,18 +0,0 @@
[Unit]
Description=Wayland Wallpaper Service
PartOf=compositor.target
After=compositor.target
ConditionEnvironment=WAYLAND_DISPLAY
ConditionEnvironment=HOME
ConditionEnvironment=XDG_RUNTIME_DIR
[Service]
ExecStart=swww-daemon
# ExecStartPost=sh -c 'bash %h/.config/systemd/user/scripts/init-wallpapers.bash || true'
ExecStop=kill -SIGTERM $MAINPID
TimeoutSec=5sec
Restart=on-failure
RestartSec=3
[Install]
WantedBy=compositor.target