1
0
Fork 0
dotfiles/files/.local/bin/lock

18 lines
283 B
Plaintext
Raw Normal View History

2018-03-10 04:04:29 +00:00
#!/bin/bash
2018-07-16 19:58:37 +00:00
unset LD_PRELOAD
2018-03-10 04:04:29 +00:00
query_color() {
2018-10-31 13:08:42 +00:00
xrdb -query | grep -m 1 "lock.color.$1" | sed -E 's/^.+:\s*#?//g'
2018-03-10 04:04:29 +00:00
}
query_prop() {
xrdb -query | grep -m 1 "lock.$1" | sed -E 's/^.+:\s*//g'
}
# flush gpg-agent cache
echo RELOADAGENT | gpg-connect-agent
2019-04-04 23:33:17 +00:00
# lock
exec swaylock