Adjust nwg-bar for Qtile, add swayidle and swaylock configs
This commit is contained in:
parent
640db1a146
commit
9480f7f4bf
4 changed files with 43 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"label": "Lock",
|
"label": "Lock",
|
||||||
"exec": "swaymsg exec ~/.config/swaylock/lock.sh",
|
"exec": "~/.config/swaylock/lock.sh",
|
||||||
"icon": "system-lock-screen"
|
"icon": "system-lock-screen"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Logout",
|
"label": "Logout",
|
||||||
"exec": "swaymsg exit",
|
"exec": "qtile cmd-obj -o cmd -f shutdown",
|
||||||
"icon": "system-log-out"
|
"icon": "system-log-out"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
6
etc/skel/.config/swayidle/config
Normal file
6
etc/skel/.config/swayidle/config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)'
|
||||||
|
timeout 300 ~/.config/swaylock/lock.sh
|
||||||
|
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
|
||||||
|
before-sleep 'playerctl pause'
|
||||||
|
before-sleep ~/.config/swaylock/lock.sh
|
||||||
|
lock ~/.config/swaylock/lock.sh
|
18
etc/skel/.config/swaylock/config
Normal file
18
etc/skel/.config/swaylock/config
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
indicator-caps-lock
|
||||||
|
indicator-idle-visible
|
||||||
|
ignore-empty-password
|
||||||
|
show-failed-attempts
|
||||||
|
show-keyboard-layout
|
||||||
|
font=Noto Sans
|
||||||
|
color=24273a
|
||||||
|
inside-color=363a4f
|
||||||
|
inside-ver-color=8bd5ca
|
||||||
|
inside-clear-color=cad3f5
|
||||||
|
inside-wrong-color=ed8796
|
||||||
|
inside-caps-lock-color=181926
|
||||||
|
key-hl-color=a6da95
|
||||||
|
ring-color=c6a0f6
|
||||||
|
ring-ver-color=7dc4e4
|
||||||
|
ring-wrong-color=ee99a0
|
||||||
|
ring-clear-color=8aadf4
|
||||||
|
ring-caps-lock-color=f5a97f
|
17
etc/skel/.config/swaylock/lock.sh
Executable file
17
etc/skel/.config/swaylock/lock.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script takes a screenshot of current output and adds a blur and vignette to it
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
grim screen.png
|
||||||
|
|
||||||
|
# Delete existing image
|
||||||
|
rm screen-out.png
|
||||||
|
|
||||||
|
#Adds a blur and vignette
|
||||||
|
ffmpeg -i screen.png -vf "gblur=sigma=10, vignette=PI/5" -c:a copy screen-out.png
|
||||||
|
|
||||||
|
#Uses output image with Swaylock
|
||||||
|
swaylock \
|
||||||
|
--image screen-out.png \
|
||||||
|
--daemonize
|
Loading…
Add table
Reference in a new issue