10 lines
346 B
Bash
Executable file
10 lines
346 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if (ps aux | grep audacious | grep -v grep > /dev/null) then
|
|
pkill audacious
|
|
else
|
|
hyprctl dispatch exec "[workspace 5 silent] audacious -t"
|
|
sleep 0.5
|
|
audtool playlist-repeat-status |grep "on" || audtool playlist-repeat-toggle
|
|
audtool playlist-shuffle-status|grep "on" || audtool playlist-shuffle-toggle
|
|
fi |