Adjust systemd services to work better with UWSM

This commit is contained in:
ItsDrike 2025-02-24 23:05:50 +01:00
parent 1abeb1e9ab
commit fbc693674d
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
8 changed files with 9 additions and 7 deletions

View file

@ -1,7 +1,6 @@
[Unit]
Description=Show a notification when the battery is low
Requires=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=oneshot

View file

@ -2,7 +2,6 @@
Description=Clipman clipboard manager
After=graphical-session.target
Requires=graphical-session.target
PartOf=graphical-session.target
[Service]
ExecStart=/usr/bin/wl-paste -t text --watch /usr/bin/clipman store --no-persist

View file

@ -1,6 +1,8 @@
[Unit]
Description=Open %I eww window
After=graphical-session.target
After=eww.service
PartOf=eww.service
[Service]
Type=oneshot
@ -10,6 +12,7 @@ ExecStop=/usr/bin/eww close %i
RemainAfterExit=true
Restart=on-failure
RestartSec=3s
Slice=background-graphical.slice
[Install]
WantedBy=graphical-session.target

View file

@ -1,6 +1,9 @@
[Unit]
Description=Eww daemon
PartOf=graphical-session.target
After=graphical-session.target
After=pipewire.service
Requires=graphical-session.target
Requires=pipewire.service
[Service]
ExecStart=/usr/bin/eww daemon --no-daemonize

View file

@ -1,7 +1,6 @@
[Unit]
Description=Show unread GitHub notifications
Requires=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=oneshot

View file

@ -1,8 +1,9 @@
[Unit]
Description=Daemon watching for Hyprland monitor updates
After=wayland-session@hyprland.desktop.target
After=eww.service
Requires=eww.service
Requires=wayland-session@hyprland.desktop.target
PartOf=wayland-session@hyprland.desktop.target
[Service]
ExecStart=%h/.local/bin/scripts/gui/hyprland/hyprland-monitord

View file

@ -2,7 +2,6 @@
Description="PolicyKit authentication agent"
After=graphical-session.target
Requires=graphical-session.target
PartOf=graphical-session.target
[Service]
ExecStart=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

View file

@ -2,7 +2,6 @@
Description=Redshift and brightness control for Wayland
After=graphical-session.target
Requires=graphical-session.target
PartOf=graphical-session.target
[Service]
ExecStart=/usr/bin/wl-gammarelay-rs run