xss-lock: use xscreensaver barcode

This commit is contained in:
Vincent Bernat 2020-01-24 22:44:16 +01:00
parent a4c82b5b90
commit 84a6752c11
3 changed files with 5 additions and 12 deletions

View file

@ -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"
;;

View file

@ -13,6 +13,9 @@ awful.rules.rules = {
-- i3lock
{ rule = { name = "i3lock" },
properties = { ontop = true } },
-- Apple2
{ rule = { class = "Barcode" },
properties = { fullscreen = true, ontop = true, floating = true, sticky = true, opacity = 0.8 } },
-- Browser stuff
{ rule = { role = "browser" },
callback = function(c)

View file

@ -64,7 +64,7 @@ shifty.config.apps = {
intrusive = true, -- Display even on exclusive tags
},
{
match = { class = { "Key[-]mon" },
match = { class = { "Key[-]mon", "Barcode" },
role = { "pop[-]up" },
name = { "Firebug" },
instance = { "plugin[-]container", "exe" } },