aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/lock-color
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-09-10 13:52:44 +0300
committerYaroslav <contact@yaroslavps.com>2020-09-10 13:52:44 +0300
commit647bd4dc91bb627eb3298eb5ccb3fe5a164103eb (patch)
treeb7804f4e467974b3dca219ee59715bc9fb3af70f /dotfiles/.local/bin/lock-color
parent8f413b0058756e852d3012b9ca02b073fe867cff (diff)
parente5a7e88b25b88f9aa55bbce105467c81472a6aba (diff)
downloadswayrice-647bd4dc91bb627eb3298eb5ccb3fe5a164103eb.tar.gz
swayrice-647bd4dc91bb627eb3298eb5ccb3fe5a164103eb.zip
Merge branch 'master' of github.com:Yaroslav-95/swayrice into master
Diffstat (limited to 'dotfiles/.local/bin/lock-color')
-rwxr-xr-xdotfiles/.local/bin/lock-color5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/lock-color b/dotfiles/.local/bin/lock-color
index 0026842..2d30e0b 100755
--- a/dotfiles/.local/bin/lock-color
+++ b/dotfiles/.local/bin/lock-color
@@ -4,7 +4,10 @@ swaymsg input type:keyboard xkb_switch_layout 0
gpg-connect-agent --no-autostart reloadagent /bye
-swayidle timeout 30 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
+if [ "$1" != "screenon" ]; then
+ swayidle timeout 30 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
+fi
+
swaylock
pkill -n swayidle