mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-07 16:54:21 +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"
|
||||
;;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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" } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue