summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.i3lock/lock.sh7
1 files changed, 4 insertions, 3 deletions
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