feat: add custom module to allow execution of external script

This commit is contained in:
Alexis
2018-08-10 16:26:46 +02:00
parent e5fcbe8017
commit e16cce646b
9 changed files with 88 additions and 7 deletions

View File

@ -1,5 +1,5 @@
{
"modules-left": ["workspaces"],
"modules-left": ["workspaces", "custom/spotify"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "clock"],
"cpu": {
"format": "{}% "
@ -17,5 +17,9 @@
"pulseaudio": {
"format": "{}% ",
"format-muted": ""
},
"custom/spotify": {
"format": " {}",
"exec": "$HOME/.bin/mediaplayer.sh"
}
}

View File

@ -23,7 +23,7 @@ window {
border-bottom: 3px solid white;
}
.clock, .battery, .cpu, .memory, .network, .pulseaudio {
.clock, .battery, .cpu, .memory, .network, .pulseaudio, .custom-spotify {
padding: 0 10px;
margin: 0 5px;
}
@ -64,3 +64,8 @@ window {
background: #90b1b1;
color: #2a5c45;
}
.custom-spotify {
background: #66cc99;
color: #2a5c45;
}