mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 15:15:39 +01:00
change scripts
This commit is contained in:
parent
be42d058cb
commit
27e0c22bae
10 changed files with 86 additions and 72 deletions
12
modules/home/scripts/scripts/music.sh
Normal file
12
modules/home/scripts/scripts/music.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [[ $# == 0 ]]; then
|
||||
hyprctl dispatch exec "[workspace 8 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
|
||||
elif [[ $1 == -s ]]; then
|
||||
pkill audacious
|
||||
else
|
||||
echo "[ERROR] => Wrong argument..."
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue