aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/lock-color
blob: 2d30e0b44b1dd7df93a52f802ce803337fc63648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

swaymsg input type:keyboard xkb_switch_layout 0

gpg-connect-agent --no-autostart reloadagent /bye

if [ "$1" != "screenon" ]; then
  swayidle timeout 30 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
fi

swaylock

pkill -n swayidle