Added music plugin on Waybar
This commit is contained in:
@@ -2,13 +2,10 @@
|
|||||||
"layer": "top", // Waybar at top layer
|
"layer": "top", // Waybar at top layer
|
||||||
"position": "top", // Waybar position (top|bottom|left|right)
|
"position": "top", // Waybar position (top|bottom|left|right)
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
// "custom/launcher",
|
|
||||||
"sway/workspaces"
|
"sway/workspaces"
|
||||||
// "idle_inhibitor"
|
|
||||||
// "mpd",
|
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"mpd"
|
"custom/music"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"temperature",
|
"temperature",
|
||||||
@@ -158,5 +155,10 @@
|
|||||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
||||||
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
|
||||||
"on-click": "blueman-manager &"
|
"on-click": "blueman-manager &"
|
||||||
|
},
|
||||||
|
"custom/music": {
|
||||||
|
"format": "{}",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "waybar-module-music",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ tooltip label {
|
|||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
color: @mauve;
|
color: @mauve;
|
||||||
}
|
}
|
||||||
#mode, #clock, #memory, #temperature, #cpu, #mpd, #idle_inhibitor, #temperature, #backlight, #pulseaudio, #network, #battery, #custom-powermenu, #bluetooth {
|
#mode, #clock, #memory, #temperature, #cpu, #mpd, #idle_inhibitor, #temperature, #backlight, #pulseaudio, #network, #battery, #custom-powermenu, #bluetooth, #custom-music {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
@@ -134,3 +134,12 @@ tooltip label {
|
|||||||
#custom-launcher {
|
#custom-launcher {
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
#custom-music.playing {
|
||||||
|
color: @green;
|
||||||
|
}
|
||||||
|
#custom-music.paused {
|
||||||
|
color: @maroon;
|
||||||
|
}
|
||||||
|
#custom-music.stopped {
|
||||||
|
color: @peach;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user