summaryrefslogtreecommitdiff
path: root/.i3lock
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-06-19 19:36:29 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-06-19 19:36:29 +0300
commitddaf4dbfeb8e73aa34c4ae43d9e375796d19ca5e (patch)
tree22e091df4f0f6ede8e46d15afb3a8e69db6b7bff /.i3lock
parent603c825e7294d12544f88b8be3da448d591c795a (diff)
downloaddotfiles-ddaf4dbfeb8e73aa34c4ae43d9e375796d19ca5e.tar
dotfiles-ddaf4dbfeb8e73aa34c4ae43d9e375796d19ca5e.tar.gz
dotfiles-ddaf4dbfeb8e73aa34c4ae43d9e375796d19ca5e.zip
Improved lock script dunst pausing and tint2 relaunching
Diffstat (limited to '.i3lock')
-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