Migrated to ansible
This commit is contained in:
10
roles/hypr/files/scripts/lock.sh
Executable file
10
roles/hypr/files/scripts/lock.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
dnd=$(swaync-client -D)
|
||||
|
||||
swaync-client -dn
|
||||
swaylock -C ~/.config/swaylock/swaylock.conf
|
||||
|
||||
if [ "$dnd" == "false" ]; then
|
||||
swaync-client -df
|
||||
fi
|
||||
Reference in New Issue
Block a user