Skip to content

Commit ccfb684

Browse files
authored
Update MX-Audacious
1 parent 8c452c5 commit ccfb684

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

themes/MX-Audacious/aud-artist.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ artist=`audtool --current-song-tuple-data artist`
88
if [ "${playback_status}" == "playing" ];
99
then
1010
echo ${artist}
11+
#else
12+
# echo "Audacious"
1113
fi
1214

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
playback_status=`audtool --playback-status`
4+
5+
if [ "${playback_status}" == "playing" ];
6+
then
7+
echo "show_bg"
8+
fi
9+

themes/MX-Audacious/aud-song.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ song=`audtool --current-song-tuple-data title`
88
if [ "${playback_status}" == "playing" ];
99
then
1010
echo ${song}
11+
#else
12+
# echo "Not Playing"
1113
fi
1214

themes/MX-Audacious/discrete_background_dark.conky

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ if os.execute('pidof -q fluxbox') and not os.execute('pidof -q picom') then
6666
conky.config.own_window_argb_visual = false
6767
end
6868

69-
70-
conky.text = [[${voffset 5}${color0}${font DejaVu Sans:bold:size=12} ${exec ./aud-artist.sh}${font}\
69+
conky.text = [[${voffset 5}${color0}${font DejaVu Sans:bold:size=12} ${exec ./aud-artist.sh}${font}\
7170
${color1}${alignr} ${exec ./aud-album.sh} ${font}
72-
${voffset 5}${color2}${font DejaVu Sans:size=11} ${exec ./aud-song.sh}${font}
73-
${image ./bg-dark.png -p 0,0 -s 400x50}
71+
${voffset 5}${color2}${font DejaVu Sans:size=11} ${exec ./aud-song.sh}${font}
72+
${if_match "${exec ./aud-background.sh}" == "show_bg"}${image ./bg-dark.png -p 0,0 -s 900x50}${endif}
7473
]];

themes/MX-Audacious/discrete_background_light.conky

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ if os.execute('pidof -q fluxbox') and not os.execute('pidof -q picom') then
6767
end
6868

6969

70-
conky.text = [[${voffset 5}${color0}${font DejaVu Sans:bold:size=12} ${exec ./aud-artist.sh}${font}\
70+
conky.text = [[${voffset 5}${color0}${font DejaVu Sans:bold:size=12} ${exec ./aud-artist.sh}${font}\
7171
${color1}${alignr} ${exec ./aud-album.sh} ${font}
72-
${voffset 5}${color2}${font DejaVu Sans:size=11} ${exec ./aud-song.sh}${font}
73-
${image ./bg-light.png -p 0,0 -s 400x50}
72+
${voffset 5}${color2}${font DejaVu Sans:size=11} ${exec ./aud-song.sh}${font}
73+
${if_match "${exec ./aud-background.sh}" == "show_bg"}${image ./bg-light.png -p 0,0 -s 900x50}${endif}
7474
]];

themes/MX-Audacious/discrete_transparent.conky

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if os.execute('pidof -q fluxbox') and not os.execute('pidof -q picom') then
6767
end
6868

6969

70-
conky.text = [[${voffset 5}${color0}${font DejaVu Sans:bold:size=12} ${exec ./aud-artist.sh}${font}\
70+
conky.text = [[${voffset 5}${color0}${font DejaVu Sans:bold:size=12} ${exec ./aud-artist.sh}${font}\
7171
${color1}${alignr} ${exec ./aud-album.sh}${font}
72-
${voffset 5}${color2}${font DejaVu Sans:size=11} ${exec ./aud-song.sh}${font}
72+
${voffset 5}${color2}${font DejaVu Sans:size=11} ${exec ./aud-song.sh}${font}
7373
]];

0 commit comments

Comments
 (0)