diff options
| author | Blista Kanjo | 2024-06-26 15:36:00 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2024-06-26 15:36:00 -0400 |
| commit | cb7483ffd762d1dffd26e2b1d12677d54eb1fb59 (patch) | |
| tree | 54a31433f453e78b373f4e6ff327740bfe069a1b /.local/bin/playerctl_systray | |
| parent | a679bffb6805dbe2ed30a5a0467a2ea8cfb96750 (diff) | |
refactor: revert to `c80ee4f`
Diffstat (limited to '.local/bin/playerctl_systray')
| -rwxr-xr-x | .local/bin/playerctl_systray | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/.local/bin/playerctl_systray b/.local/bin/playerctl_systray index 559b483..5f4fcca 100755 --- a/.local/bin/playerctl_systray +++ b/.local/bin/playerctl_systray @@ -2,8 +2,6 @@ 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." @@ -11,12 +9,8 @@ if ! command -v playerctl >/dev/null 2>&1; then exit 1 fi -if [ -f "$BIN_XAYMUP_PATH" ]; then - $BIN_XAYMUP_PATH -elif [ -f "$BIN_PATH" ]; then +if [ -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 |
