feat(custom): make spotify module generic

Set class via json attribute
Choose icon via alt attribute
This commit is contained in:
Sibren Vasse
2019-03-31 16:12:38 +02:00
parent 618fe80670
commit 0f689b733d
3 changed files with 33 additions and 14 deletions

View File

@ -30,7 +30,7 @@ window#waybar {
border-bottom: 3px solid #ffffff;
}
#clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-spotify, #tray, #mode, #idle_inhibitor {
#clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor {
padding: 0 10px;
margin: 0 5px;
}
@ -97,11 +97,19 @@ window#waybar {
color: #2a5c45;
}
#custom-spotify {
#custom-media {
background: #66cc99;
color: #2a5c45;
}
.custom-spotify {
background: #66cc99;
}
.custom-vlc {
background: #ffa000;
}
#temperature {
background: #f0932b;
}