Waybar: Add keyboard-state module to show capslock state

This commit is contained in:
Evie Litherland-Smith 2024-11-21 11:24:39 +00:00
parent a65f7fb68e
commit fd25a6ed83

View file

@ -26,6 +26,7 @@
"bluetooth" "bluetooth"
"clock#calendar" "clock#calendar"
"clock" "clock"
"keyboard-state"
"backlight" "backlight"
"battery" "battery"
"custom/weather" "custom/weather"
@ -203,6 +204,14 @@
}; };
}; };
clock.format = "󰥔 {:%R}"; clock.format = "󰥔 {:%R}";
"keyboard-state" = {
capslock = true;
format.capslock = "󰪛 :{icon}";
format-icons = {
locked = "󰌾 ";
unlocked = "󰌿 ";
};
};
backlight = { backlight = {
format = "{icon}"; format = "{icon}";
tooltip-format = "{percent}%"; tooltip-format = "{percent}%";
@ -323,13 +332,14 @@
#workspaces, #workspaces,
#window, #window,
#mpris, #mpris,
#custom-notification,
#pulseaudio, #pulseaudio,
#network, #network,
#bluetooth, #bluetooth,
#clock,
#keyboard-state,
#backlight, #backlight,
#battery, #battery,
#clock,
#custom-notification,
#custom-weather, #custom-weather,
#tray { #tray {
margin: 0px; margin: 0px;
@ -383,6 +393,9 @@
#clock { #clock {
color: ${scheme.base0D}; color: ${scheme.base0D};
} }
#keyboard-state {
color: ${scheme.base0E};
}
#battery.warning { #battery.warning {
color: ${scheme.base09}; color: ${scheme.base09};