diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-05-25 08:30:21 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-05-25 08:30:21 +0100 |
commit | 63290bab015bf411e45894889bd7edbf0dca588a (patch) | |
tree | 9f2e34d72f78906657aebaae3d8d6bd1f2065acb /.config | |
parent | 91058138b46c4b3cad8f4a3c4294840625534ce9 (diff) |
Fixed issue where wallpaper wasn't found and added new notification rules
Diffstat (limited to '.config')
-rwxr-xr-x | .config/yambar/scripts/idleinhibit.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.config/yambar/scripts/idleinhibit.sh b/.config/yambar/scripts/idleinhibit.sh index f7af764..a9d874e 100755 --- a/.config/yambar/scripts/idleinhibit.sh +++ b/.config/yambar/scripts/idleinhibit.sh @@ -1,5 +1,8 @@ #!/bin/bash +read -r wallpaper<~/.cache/wallpaper +export wallpaper=$( echo $wallpaper) + # River swayidle toggle function toggle { if pgrep "swayidle" > /dev/null @@ -8,8 +11,8 @@ then notify-send -u normal " Swayidle Inactive" --hint=string:x-canonical-private-synchronous:idleinhibit else swayidle -w \ - timeout 300 'swaylock -f -i ~/.cache/wallpaper' \ - timeout 600 'wlopm --off \*;swaylock -F -i ~/.cache/wallpaper' resume 'wlopm --on \*' \ + timeout 300 'swaylock -f -i $wallpaper' \ + timeout 600 'wlopm --off \*;swaylock -F -i $wallpaper' resume 'wlopm --on \*' \ before-sleep 'swaylock -f -i $wallpaper' & notify-send -u normal " Swayidle Active" --hint=string:x-canonical-private-synchronous:idleinhibit fi |