Waybar: Add backlight indicator

This commit is contained in:
theanonymousexyz 2022-04-08 01:01:05 +02:00
parent ed48f86160
commit a46e1445a0
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB
2 changed files with 11 additions and 2 deletions

View file

@ -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",

View file

@ -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 {