Make services specific to wayland use their own sysd target

This commit is contained in:
ItsDrike 2023-03-26 13:03:56 +02:00
parent 02b99b30cb
commit bc3a65ba93
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
10 changed files with 12 additions and 8 deletions

View file

@ -13,7 +13,7 @@ monitor = , preferred, auto, 1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
exec-once = sleep 1 && systemctl --user start wm-ready.target # Hyprland socket sometimes isn't yet loaded, sleep for sec exec-once = sleep 1 && systemctl --user start wayland-session.target # Hyprland socket sometimes isn't yet loaded, sleep for sec
# exec-once = aa-notify -p # exec-once = aa-notify -p
# exec-once = udiskie -A -T # exec-once = udiskie -A -T

View file

@ -7,4 +7,4 @@ ExecStart=/usr/bin/swayidle
Restart=on-failure Restart=on-failure
[Install] [Install]
WantedBy=wm-ready.target WantedBy=wayland-session.target

View file

@ -12,6 +12,7 @@ After=lock.target
# which swaylock will only do after it has locked the screen # which swaylock will only do after it has locked the screen
Type=forking Type=forking
ExecStart=/usr/bin/swaylock -fF ExecStart=/usr/bin/swaylock -fF
#ExecStart=/usr/bin/swaylock -fF --image /home/itsdrike/Pictures/Wallpapers/Categories/Extra/CommieGNULinux.png --indicator-x-position 300 --indicator-y-position 300
Restart=on-failure Restart=on-failure
[Install] [Install]

View file

@ -9,4 +9,4 @@ Restart=always
RestartSec=3s RestartSec=3s
[Install] [Install]
WantedBy=wm-ready.target WantedBy=wayland-session.target

View file

@ -0,0 +1,6 @@
[Unit]
Description=Waylnad compositor loaded and ready
BindsTo=wm-ready.target
Wants=xdg-desktop-portal.service
Wants=xdg-desktop-portal-hyprland.service
Wants=systemd-lock-handler.service

View file

@ -1,10 +1,10 @@
[Unit] [Unit]
Description="Redshift and brightness control for Wayland" Description="Redshift and brightness control for Wayland"
BindsTo=graphical-session.target BindsTo=wayland-session.target
[Service] [Service]
ExecStart=/usr/bin/wl-gammarelay-rs run ExecStart=/usr/bin/wl-gammarelay-rs run
Restart=on-failure Restart=on-failure
[Install] [Install]
WantedBy=wm-ready.target WantedBy=wayland-session.target

View file

@ -3,8 +3,5 @@ Description=Window Manager loaded and ready
BindsTo=graphical-session.target BindsTo=graphical-session.target
Wants=wireplumber.service Wants=wireplumber.service
Wants=pipewire-pulse.socket Wants=pipewire-pulse.socket
Wants=systemd-lock-handler.service
Wants=usbguard-notifier.service Wants=usbguard-notifier.service
Wants=gnome-keyring-daemon.service Wants=gnome-keyring-daemon.service
Wants=xdg-desktop-portal.service
Wants=xdg-desktop-portal-hyprland.service