sway: Restart kanshi on reload

This commit is contained in:
Peter Cai 2023-01-04 15:54:55 -05:00
parent 68e7eac999
commit 4b0e5c04ee
1 changed files with 4 additions and 0 deletions

View File

@ -271,3 +271,7 @@ for_window [app_id="pavucontrol"] floating enable
# Start the systemd-user target for sway and import environment
# Makes service management a bit cleaner
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
# Restart kanshi if it is running
# This restores monitor configuration on reload
exec_always "systemctl --user is-active kanshi && systemctl --user restart kanshi"