diff --git a/dotfiles/sway.conf b/dotfiles/sway.conf index 4bccf6f..1669790 100644 --- a/dotfiles/sway.conf +++ b/dotfiles/sway.conf @@ -327,7 +327,7 @@ exec fusuma # exec sh -c 'pkill fusuma; fusuma' # Blue light filter - exec redshift + exec pidof redshift || redshift # exec_always sh -c 'pkill redshift;redshift' # kde connect exec /usr/lib/kdeconnectd @@ -335,18 +335,17 @@ # Telegram exec telegram-desktop-bin || telegram-desktop # Music Player Daemon - exec pgrep mpd || mpd - exec pgrep -f mpDris2|| mpDris2 + exec pidof mpd || mpd + exec pidof -f mpDris2|| mpDris2 # lock screen after a period of inactivity execp for fullscreen for_window [class=.*] inhibit_idle fullscreen - set $slock swaylock -f --image $wallPath exec swayidle -w \ - before-sleep "$slock" \ + before-sleep "swaylock" \ after-resume 'sleep 5s; displayd' \ - lock "$slock" \ - timeout 1800 "$slock" \ + lock "swaylock" \ + timeout 1800 "swaylock" \ timeout 1800 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on;displayd"' \