diff options
| author | tslil clingman <tslil@posteo.net> | 2022-05-08 20:03:16 -0500 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.net> | 2022-05-08 20:04:28 -0500 |
| commit | bffd96138125454c39dfce391c2ec7f36946de8a (patch) | |
| tree | 4c0a8c91996c5c00ab89a6885aaa9bf2d6934d80 /sway/sway_autolock | |
| parent | 945a07e76640f050876dff3568c93954d1181f9f (diff) | |
Tweaks
Diffstat (limited to 'sway/sway_autolock')
| -rwxr-xr-x | sway/sway_autolock | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sway/sway_autolock b/sway/sway_autolock index 9168249..307bc0d 100755 --- a/sway/sway_autolock +++ b/sway/sway_autolock @@ -2,11 +2,9 @@ pid="$(pgrep swayidle)" if [ -z "$pid" ]; then - swayidle -w timeout 300 'swaylock -f -c 000000' \ - timeout 300 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' & - notify-send --app-name "Autolock" "Enabled" + swayidle -w timeout 300 lock & + notify-send -t 3000 --app-name "Autolock" "Enabled" else kill -9 "$pid" - notify-send --app-name "Autolock" "DISABLED" + notify-send -t 3000 --app-name "Autolock" "DISABLED" fi |
