sway: run stuff with --no-startup-id

This commit is contained in:
surtur 2024-04-02 18:13:34 +02:00
parent 00f5db8010
commit afc5ab7724
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -619,7 +619,7 @@ bindsym $mod+Shift+r reload; exec kanshictl reload
set $mode_sys System: (l) lock, (e) logout, (s) suspend, (r) reboot, (S) shutdown, (⏎,␛) return set $mode_sys System: (l) lock, (e) logout, (s) suspend, (r) reboot, (S) shutdown, (⏎,␛) return
mode "$mode_sys" { mode "$mode_sys" {
bindsym { bindsym {
l exec $lock, mode "default" l exec --no-startup-id $lock, mode "default"
e exit e exit
s exec --no-startup-id systemctl suspend -i, mode "default" s exec --no-startup-id systemctl suspend -i, mode "default"
r exec --no-startup-id systemctl reboot, mode "default" r exec --no-startup-id systemctl reboot, mode "default"
@ -657,4 +657,4 @@ bindsym
include /etc/sway/config.d/* include /etc/sway/config.d/*
include ~/.config/sway/config.d/* include ~/.config/sway/config.d/*
# Export environment to systemd and start services. # Export environment to systemd and start services.
exec "systemctl --user import-environment; systemctl --user start sway-session.target" exec --no-startup-id "systemctl --user import-environment; systemctl --user start sway-session.target"