add scripts

This commit is contained in:
Frost-Phoenix 2023-11-11 22:54:58 +01:00
parent 86dc2906a1
commit 36a6471eca

View file

@ -59,7 +59,9 @@
'';
music = pkgs.writeShellScriptBin "music" ''
if [[ $# == 0 ]]; then
runbg audacious -t
hyprctl dispatch exec "[workspace 8 silent] audacious -t"
audtool playlist-repeat-status |grep "on" || audtool playlist-repeat-toggle
audtool playlist-shuffle-status|grep "on" || audtool playlist-shuffle-toggle
elif [[ $1 == -s ]]; then
pkill audacious
else