This commit is contained in:
Marco Thomas
2021-02-11 11:22:35 +01:00
parent 443624bbdf
commit 969dcc5def
3 changed files with 8 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ inherit = bar/main
background = ${colors.clear}
width = 8%
width = 20%
offset-x = 4px
modules-left = i3

View File

@@ -33,5 +33,5 @@ function get_title () {
[ ! -z "$(playerctl -p spotify status 2>/dev/null)" ] \
&& artist=$(get_artist) \
&& title=$(get_title) \
&& ([ -z "$artist$title" ] && scroll "" "Spotify is not connected on this pc" "" || scroll "%{F#79e6f3}$artist%{F#FFF} [" "$title" "]%{F-}" ) \
&& ([ -z "$artist$title" ] && scroll "" "Spotify is not connected on this pc" "" || scroll "$artist - " "$title" "%{F-}" ) \
|| exit 1