refactor(hypr): migrate swww systemd service to hyprland launcher
This commit is contained in:
parent
cc00e11a8d
commit
61ec5c6ef0
@ -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
|
||||
|
@ -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"
|
1
dots/.config/systemd/user/.gitignore
vendored
1
dots/.config/systemd/user/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.wants
|
@ -1,4 +0,0 @@
|
||||
[Unit]
|
||||
Description=Compositor target for WM to be launched manually
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user