mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: add custom module to allow execution of external script
This commit is contained in:
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user