mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +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 = 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
|
||||||
|
|
|
@ -7,4 +7,4 @@ ExecStart=/usr/bin/swayidle
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[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
|
# 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]
|
||||||
|
|
|
@ -9,4 +9,4 @@ Restart=always
|
||||||
RestartSec=3s
|
RestartSec=3s
|
||||||
|
|
||||||
[Install]
|
[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]
|
[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
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue