Remove now playing from polybar
This commit is contained in:
parent
0bbb340167
commit
a8026fece7
2 changed files with 1 additions and 22 deletions
|
@ -55,7 +55,7 @@ font-2 = unicode:fontformat=truetype:size=8:antialias=false;0
|
|||
font-3 = SymbolsNerdFont:size=15;3
|
||||
|
||||
|
||||
modules-left = my-text-label xworkspaces nowplaying
|
||||
modules-left = my-text-label xworkspaces
|
||||
;modules-center =
|
||||
modules-right = filesystem memory cpu battery temperature backlight pulseaudio bluetooth wlan wakatime date time
|
||||
|
||||
|
@ -278,16 +278,6 @@ format-prefix-foreground = ${colors.primary}
|
|||
format-underline = ${colors.primary}
|
||||
label-padding = 1
|
||||
|
||||
[module/nowplaying]
|
||||
type = custom/script
|
||||
exec = ~/dotfiles/polybar/polybar_scripts/now_playing.sh
|
||||
interval = 3
|
||||
click-left = playerctl play-pause &
|
||||
format-prefix = ""
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label-padding = 1
|
||||
format-underline = ${colors.primary}
|
||||
|
||||
|
||||
[module/wakatime]
|
||||
type = custom/script
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
player_status=$(playerctl status 2> /dev/null)
|
||||
|
||||
if [ "$player_status" = "Playing" ]; then
|
||||
echo " $(playerctl metadata artist) | $(playerctl metadata title) | $(playerctl metadata album)"
|
||||
elif [ "$player_status" = "Paused" ]; then
|
||||
echo " $(playerctl metadata artist) | $(playerctl metadata title) | $(playerctl metadata album)"
|
||||
else
|
||||
echo "$(playerctl status)"
|
||||
fi
|
Loading…
Add table
Reference in a new issue