mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-14 20:29:44 +00:00
check if dunst is running
This commit is contained in:
parent
265fa106fc
commit
864d00eec3
1 changed files with 6 additions and 2 deletions
|
@ -37,7 +37,9 @@ init_filenames() {
|
|||
init_filenames $res
|
||||
|
||||
prelock() {
|
||||
pkill -u "$USER" -USR1 dunst
|
||||
if [ ! -z "$(pidof dunst)" ] ; then
|
||||
pkill -u "$USER" -USR1 dunst
|
||||
fi
|
||||
}
|
||||
|
||||
lock() {
|
||||
|
@ -63,7 +65,9 @@ lock() {
|
|||
}
|
||||
|
||||
postlock() {
|
||||
pkill -u "$USER" -USR2 dunst
|
||||
if [ ! -z "$(pidof dunst)" ] ; then
|
||||
pkill -u "$USER" -USR2 dunst
|
||||
fi
|
||||
}
|
||||
|
||||
rec_get_random() {
|
||||
|
|
Loading…
Reference in a new issue