aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/lock-color
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2024-11-03 17:34:30 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2024-11-03 17:36:31 +0300
commitcdef3ff80cbddb77bfebc2d0b2fb732459ae7af3 (patch)
treed308a19363ce3a3a1159d2b6a5b626ace1122caf /dotfiles/.local/bin/lock-color
parentbdc1b29dd8094b641d4ed86b0ee8f348695dd191 (diff)
downloadswayrice-cdef3ff80cbddb77bfebc2d0b2fb732459ae7af3.tar.gz
swayrice-cdef3ff80cbddb77bfebc2d0b2fb732459ae7af3.zip
niri: hotkeys, window rules, lock screen timeout
Diffstat (limited to 'dotfiles/.local/bin/lock-color')
-rwxr-xr-xdotfiles/.local/bin/lock-color6
1 files changed, 3 insertions, 3 deletions
diff --git a/dotfiles/.local/bin/lock-color b/dotfiles/.local/bin/lock-color
index fbf678f..23efb78 100755
--- a/dotfiles/.local/bin/lock-color
+++ b/dotfiles/.local/bin/lock-color
@@ -5,12 +5,12 @@ if [ -n "$SWAYSOCK" ]; then
if [ "$1" != "screenon" ]; then
echo idling
- swayidle timeout 30 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
+ swayidle timeout 15 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
fi
elif [ -n "$NIRI_SOCKET" ]; then
if [ "$1" != "screenon" ]; then
- echo idling
- swayidle timeout 3 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' &
+ echo idling
+ swayidle timeout 15 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' &
fi
fi