mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02:00
refactor: remove useless tmp variable
This commit is contained in:
7
resources/custom_modules/mediaplayer.sh
Executable file
7
resources/custom_modules/mediaplayer.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
player_status=$(playerctl status 2> /dev/null)
|
||||
if [ "$player_status" = "Playing" ]; then
|
||||
echo "$(playerctl metadata artist) - $(playerctl metadata title)"
|
||||
elif [ "$player_status" = "Paused" ]; then
|
||||
echo " $(playerctl metadata artist) - $(playerctl metadata title)"
|
||||
fi
|
Reference in New Issue
Block a user