From 739900bf551a9145f84b50fb3167b4e13229ea09 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Thu, 19 Aug 2021 10:26:05 -0400 Subject: [PATCH] Replace Multilockscreen with Betterlockscreen - Add betterlockscreen config - Remove multilockscreen config - Replace multilockscreen with betterlockscreen in xss-lock and session script --- .config/betterlockscreenrc | 41 +++++++++++++++++++++++++++++++++ .config/multilock/config | 25 --------------------- .scripts/startup.sh | 2 +- README.org | 46 +++++++++++++++++++++++++++++--------- 4 files changed, 77 insertions(+), 37 deletions(-) create mode 100644 .config/betterlockscreenrc delete mode 100644 .config/multilock/config diff --git a/.config/betterlockscreenrc b/.config/betterlockscreenrc new file mode 100644 index 0000000..67a8031 --- /dev/null +++ b/.config/betterlockscreenrc @@ -0,0 +1,41 @@ +display_on=0 +span_image=false +lock_timeout=300 +fx_list=(dim blur dimblur pixel dimpixel color) +dim_level=40 +blur_level=1 +pixel_scale=10,1000 +solid_color=333333 +wallpaper_cmd="feh --bg-fill" +# i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color + +loginbox=282a36ff +loginshadow=282a36ff +locktext="Sravan Balaji's Laptop" +font="sans-serif" +ringcolor=44475aff +insidecolor=00000000 +separatorcolor=00000000 +ringvercolor=50fa7bff +insidevercolor=50fa7bff +ringwrongcolor=ff5555ff +insidewrongcolor=ff5555ff +timecolor=f8f8f2ff +time_format="%X" +greetercolor=f8f8f2ff +layoutcolor=f8f8f2ff +keyhlcolor=bd93f9ff +bshlcolor=8be9fdff +verifcolor=50fa7bff +wrongcolor=ff5555ff +modifcolor=ff5555ff +bgcolor=282a36ff + +prelock() { + /home/sravan/.scripts/deadd.sh --pause +} + +# custom postlock +postlock() { + /home/sravan/.scripts/deadd.sh --unpause +} diff --git a/.config/multilock/config b/.config/multilock/config deleted file mode 100644 index 8c09de8..0000000 --- a/.config/multilock/config +++ /dev/null @@ -1,25 +0,0 @@ -display_on=0 -span_image=false -lock_timeout=0 -fx_list=(dim blur dimblur pixel dimpixel color) -dim_level=40 -blur_level=1 -pixel_scale=10,1000 -solid_color=333333 - -loginbox=282a36ff -loginshadow=44475aff -locktext="Type password to unlock..." -font="sans-serif" -ringcolor=44475aff -insidecolor=00000000 -separatorcolor=00000000 -ringvercolor=44475aff -insidevercolor=00000000 -ringwrongcolor=ff5555ff -insidewrongcolor=ff5555ff -keyhlcolor=bd93f9ff -bshlcolor=8be9fdff -verifcolor=50fa7bff -timecolor=f8f8f2ff -datecolor=f8f8f2ff diff --git a/.scripts/startup.sh b/.scripts/startup.sh index 24dbe1b..2ec5f34 100755 --- a/.scripts/startup.sh +++ b/.scripts/startup.sh @@ -5,7 +5,7 @@ declare -a startup_array=(\ "bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor "/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent - "/usr/bin/xss-lock -l -- multilockscreen --lock" \ # Session Lock Utility + "/usr/bin/xss-lock -l -- betterlockscreen --lock" \ # Session Lock Utility "/usr/lib/kdeconnectd --replace" \ # KDE Connect Daemon "/usr/bin/redshift -x" \ # Redshift Blue Light Filter ) diff --git a/README.org b/README.org index 18fad4a..fbbe1b6 100644 --- a/README.org +++ b/README.org @@ -2772,40 +2772,64 @@ See [[https://github.com/phillipberndt/autorandr#hook-scripts][autorandr hook sc #+end_src * Lock Screen -** Multilockscreen +** Betterlockscreen *** Default Options -#+begin_src conf :tangle .config/multilock/config +#+begin_src conf :tangle .config/betterlockscreenrc display_on=0 span_image=false - lock_timeout=0 + lock_timeout=300 fx_list=(dim blur dimblur pixel dimpixel color) dim_level=40 blur_level=1 pixel_scale=10,1000 solid_color=333333 + wallpaper_cmd="feh --bg-fill" + # i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color #+end_src *** Theme Options -#+begin_src conf :tangle .config/multilock/config +#+begin_src conf :tangle .config/betterlockscreenrc loginbox=282a36ff - loginshadow=44475aff - locktext="Type password to unlock..." + loginshadow=282a36ff + locktext="Sravan Balaji's Laptop" font="sans-serif" ringcolor=44475aff insidecolor=00000000 separatorcolor=00000000 - ringvercolor=44475aff - insidevercolor=00000000 + ringvercolor=50fa7bff + insidevercolor=50fa7bff ringwrongcolor=ff5555ff insidewrongcolor=ff5555ff + timecolor=f8f8f2ff + time_format="%X" + greetercolor=f8f8f2ff + layoutcolor=f8f8f2ff keyhlcolor=bd93f9ff bshlcolor=8be9fdff verifcolor=50fa7bff - timecolor=f8f8f2ff - datecolor=f8f8f2ff + wrongcolor=ff5555ff + modifcolor=ff5555ff + bgcolor=282a36ff +#+end_src + +*** Pre-Lock + +#+begin_src conf :tangle .config/betterlockscreenrc + prelock() { + /home/sravan/.scripts/deadd.sh --pause + } +#+end_src + +*** Post-Lock + +#+begin_src conf :tangle .config/betterlockscreenrc + # custom postlock + postlock() { + /home/sravan/.scripts/deadd.sh --unpause + } #+end_src * Terminal & Shell @@ -7511,7 +7535,7 @@ Configuration for Alacritty, the GPU enhanced terminal emulator. "bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor "/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent - "/usr/bin/xss-lock -l -- multilockscreen --lock" \ # Session Lock Utility + "/usr/bin/xss-lock -l -- betterlockscreen --lock" \ # Session Lock Utility "/usr/lib/kdeconnectd --replace" \ # KDE Connect Daemon "/usr/bin/redshift -x" \ # Redshift Blue Light Filter )