diff options
| author | Blista Kanjo | 2024-06-26 09:53:08 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2024-06-26 09:53:08 -0400 |
| commit | a852ddd96f8826f9eb95f5b0f92ce116cd9b0e85 (patch) | |
| tree | 968a647408b70bf7a55187c364a96c7401a82daf /.local | |
| parent | 4348329ecc26e8e741aaa9d6b42f643da361cc2f (diff) | |
feat: add Xaymup's `media-control-indicator`²
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/playerctl_systray | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.local/bin/playerctl_systray b/.local/bin/playerctl_systray index 5f4fcca..559b483 100755 --- a/.local/bin/playerctl_systray +++ b/.local/bin/playerctl_systray @@ -2,6 +2,8 @@ BIN_PATH=~/.local/share/python-playerctl_systray/playerctl_systray SCRIPT_PATH=~/.local/share/python-playerctl_systray/playerctl_systray.py +BIN_XAYMUP_PATH=~/.local/share/python-playerctl_systray/playerctl_systray_Xaymup +SCRIPT_XAYMUP_PATH=~/.local/share/python-playerctl_systray/playerctl_systray_Xaymup.py if ! command -v playerctl >/dev/null 2>&1; then echo "playerctl is not installed but is required." @@ -9,8 +11,12 @@ if ! command -v playerctl >/dev/null 2>&1; then exit 1 fi -if [ -f "$BIN_PATH" ]; then +if [ -f "$BIN_XAYMUP_PATH" ]; then + $BIN_XAYMUP_PATH +elif [ -f "$BIN_PATH" ]; then $BIN_PATH +elif [ -f "$SCRIPT_XAYMUP_PATH" ]; then + python3 $SCRIPT_XAYMUP_PATH elif [ -f "$SCRIPT_PATH" ]; then python3 $SCRIPT_PATH else |
