mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Make services specific to wayland use their own sysd target
This commit is contained in:
parent
02b99b30cb
commit
bc3a65ba93
|
@ -13,7 +13,7 @@ monitor = , preferred, auto, 1
|
|||
|
||||
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 = 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 = udiskie -A -T
|
||||
|
|
|
@ -7,4 +7,4 @@ ExecStart=/usr/bin/swayidle
|
|||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=wm-ready.target
|
||||
WantedBy=wayland-session.target
|
||||
|
|
|
@ -12,6 +12,7 @@ After=lock.target
|
|||
# which swaylock will only do after it has locked the screen
|
||||
Type=forking
|
||||
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
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -9,4 +9,4 @@ Restart=always
|
|||
RestartSec=3s
|
||||
|
||||
[Install]
|
||||
WantedBy=wm-ready.target
|
||||
WantedBy=wayland-session.target
|
||||
|
|
6
home/.config/systemd/user/wayland-session.target
Normal file
6
home/.config/systemd/user/wayland-session.target
Normal 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
|
|
@ -1,10 +1,10 @@
|
|||
[Unit]
|
||||
Description="Redshift and brightness control for Wayland"
|
||||
BindsTo=graphical-session.target
|
||||
BindsTo=wayland-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/wl-gammarelay-rs run
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=wm-ready.target
|
||||
WantedBy=wayland-session.target
|
||||
|
|
|
@ -3,8 +3,5 @@ Description=Window Manager loaded and ready
|
|||
BindsTo=graphical-session.target
|
||||
Wants=wireplumber.service
|
||||
Wants=pipewire-pulse.socket
|
||||
Wants=systemd-lock-handler.service
|
||||
Wants=usbguard-notifier.service
|
||||
Wants=gnome-keyring-daemon.service
|
||||
Wants=xdg-desktop-portal.service
|
||||
Wants=xdg-desktop-portal-hyprland.service
|
||||
|
|
Loading…
Reference in a new issue