dotfiles/config/i3/lock

18 lines
366 B
Plaintext
Raw Normal View History

2018-08-19 09:29:59 +00:00
#!/usr/bin/env bash
# Remove SSH and GPG keys from keystores
ssh-add -D
echo RELOADAGENT | gpg-connect-agent
2015-09-26 19:32:00 +00:00
dm-tool lock
if [ $? -ne 0 ]; then
2016-11-23 19:13:26 +00:00
revert() {
xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM
xset dpms 5 5 5
2017-01-15 10:33:31 +00:00
i3lock --nofork --color 648901 --image=$HOME/.config/i3/lock.png --tiling --ignore-empty-password
2016-11-23 19:13:26 +00:00
revert
2015-09-26 19:32:00 +00:00
fi