Hypridle, searxng
This commit is contained in:
parent
9ff8e28664
commit
d0fc98ca4f
3 changed files with 28 additions and 0 deletions
7
hypridle/.config/hypr/suspend-script.sh
Executable file
7
hypridle/.config/hypr/suspend-script.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# check if any player has status "Playing"
|
||||
playerctl -a status | pkgs.ripgrep Playing -q
|
||||
# only suspend if nothing is playing
|
||||
if [ $? == 1 ]; then
|
||||
bash -c $1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue