mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-03 09:44:28 +02:00
xss-lock: use xscreensaver barcode
This commit is contained in:
parent
a4c82b5b90
commit
84a6752c11
3 changed files with 5 additions and 12 deletions
12
bin/xss-lock
12
bin/xss-lock
|
@ -22,17 +22,7 @@ case "$1" in
|
|||
echo "notify: start"
|
||||
trap 'echo notify: user activity; kill %% 2> /dev/null; exit 0' HUP # user activity
|
||||
trap 'echo notify: locker started; kill %% 2> /dev/null; exit 0' TERM # locker started
|
||||
for i in $(seq 1.0 -0.1 0.1); do
|
||||
awesome-client <<EOF
|
||||
for _, c in ipairs(client.get()) do
|
||||
if c:isvisible() then
|
||||
c.opacity=$i
|
||||
end
|
||||
end
|
||||
EOF
|
||||
sleep 0.2
|
||||
done
|
||||
sleep infinity &
|
||||
/usr/lib/xscreensaver/barcode -clock24 &
|
||||
wait
|
||||
echo "notify: end"
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue