From ddaf4dbfeb8e73aa34c4ae43d9e375796d19ca5e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 19 Jun 2021 19:36:29 +0300 Subject: Improved lock script dunst pausing and tint2 relaunching --- .i3lock/lock.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.i3lock') diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh index 4dc5357..52323d9 100755 --- a/.i3lock/lock.sh +++ b/.i3lock/lock.sh @@ -4,7 +4,7 @@ if [ $(grep -r "RUNNING" /proc/asound | wc -l) -eq 0 ] || [[ $# -ne 0 ]]; then # Disables dunst, my notification daemon, so I don't see notification on lock screen # https://github.com/dunst-project/dunst/issues/697 # https://wiki.archlinux.org/title/Dunst#Disable_dunst_temporarily - killall -SIGUSR1 dunst + dunstctl set-paused true if [[ "$1" == "suspend" ]]; then # Usually suspending should be done with "systemctl suspend", but I've had issues with that so I directly tell the kernel to sleep the system @@ -25,8 +25,9 @@ if [ $(grep -r "RUNNING" /proc/asound | wc -l) -eq 0 ] || [[ $# -ne 0 ]]; then i3lock -f -c d49408 -i /home/kamen/.i3lock/lockscreen.png -n - killall -SIGUSR2 dunst # Enables my notification daemon + dunstctl set-paused false # Enables my notification daemon killall lwa-hot-corners; lwa-hot-corners ~/.lwarc & - killall tint2; tint2 & + killall tint2; nohup tint2 2>&1 & + disown picom --experimental-backends & # Sometimes my compositor crashes or smth, so I try to launch it, just in case it stopped working fi -- cgit v1.2.3