Waybar: Add backlight indicator
This commit is contained in:
parent
ed48f86160
commit
a46e1445a0
|
@ -6,7 +6,7 @@
|
||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["idle_inhibitor", "sway/workspaces", "sway/mode"],
|
"modules-left": ["idle_inhibitor", "sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": ["custom/ivpn", "network", "pulseaudio", "cpu", "memory", "battery", "tray"],
|
"modules-right": ["custom/ivpn", "network", "pulseaudio", "backlight", "cpu", "memory", "battery", "tray"],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
|
@ -103,6 +103,10 @@
|
||||||
},
|
},
|
||||||
"on-click": "/usr/bin/pavucontrol"
|
"on-click": "/usr/bin/pavucontrol"
|
||||||
},
|
},
|
||||||
|
"backlight": {
|
||||||
|
"format": "{icon} {percent}%",
|
||||||
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||||
|
},
|
||||||
"custom/ivpn": { // Custom status module for IVPN
|
"custom/ivpn": { // Custom status module for IVPN
|
||||||
"format": "{} IVPN",
|
"format": "{} IVPN",
|
||||||
"exec": "$HOME/.config/waybar/ivpn-status.sh",
|
"exec": "$HOME/.config/waybar/ivpn-status.sh",
|
||||||
|
|
|
@ -102,6 +102,11 @@ window#waybar.hidden {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
color: @cyan;
|
||||||
|
box-shadow: inset 0 3px @cyan;
|
||||||
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
box-shadow: inset 0 3px @white;
|
box-shadow: inset 0 3px @white;
|
||||||
}
|
}
|
||||||
|
@ -170,7 +175,7 @@ label:focus {
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
box-shadow: inset 0 3px @blue;
|
box-shadow: inset 0 3px @cyan;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray > .passive {
|
#tray > .passive {
|
||||||
|
|
Loading…
Reference in a new issue