From 88f5811ca1bddedeb6a081c5c11574a7b787b0ea Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Fri, 6 Nov 2020 23:45:06 -0600 Subject: [PATCH] [sway] add swayidle for idle management - Lock screen after 5 minutes --- .config/sway/config | 3 +++ .pkglist.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index dc4f91e..86dd6a5 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -37,6 +37,9 @@ bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYS bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob +# Idle +exec swayidle timeout 300 'exec $lock' + # Screenshot bindsym Mod4+Shift+Return exec grim -g "$(slurp)" $(xdg-user-dir PICTURES)/screenshots/$(date +%Y%m%dT%H%M%SZ --utc).png # Record video diff --git a/.pkglist.txt b/.pkglist.txt index 38a9ea3..cdb8436 100644 --- a/.pkglist.txt +++ b/.pkglist.txt @@ -263,6 +263,7 @@ sudo sushi swappy sway +swayidle swaylock sysfsutils systemd-fsck-silent -- 2.51.2