Waybar: Add keyboard-state for caps

This commit is contained in:
Admin 2025-03-18 13:42:39 +01:00
parent c876804917
commit e894d77ebb
3 changed files with 19 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{
"workbench.colorTheme": "Community Material Theme Darker High Contrast",
"workbench.iconTheme": "eq-material-theme-icons-darker",
"editor.fontFamily": "Source Code Pro",
"editor.fontFamily": "Source Code Pro, FluentSystemIcons-Regular",
"python.languageServer": "Jedi",
"python.devOptions": ["DEBUG_ON_STARTUP"],
"python.analysis.logLevel": "Trace",

View File

@ -20,8 +20,20 @@
"network",
"pulseaudio",
"pulseaudio#microphone",
"custom/powerMenu"
"keyboard-state",
],
"keyboard-state": {
"capslock": true,
"interval": 1,
"format": {
"capslock": "{icon}",
},
"binding-keys": [1, 69, 70],
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"hyprland/window": {
"format": "{}"
},
@ -29,10 +41,6 @@
"icon-size": 14,
"spacing": 8
},
"custom/powerMenu": {
"format": "⏻",
"on-click": "rofi -show p -modi p:rofi-power-menu -theme ~/.config/rofi/themes/power.rasi"
},
"network": {
"format-disconnected": " Net",
"format-wifi": "{icon} {essid}",

View File

@ -68,6 +68,7 @@ tooltip {
#tray,
#network,
#workspaces,
#keyboard-state,
#cpu {
background: #000024;
padding: 2px 12px;
@ -133,3 +134,7 @@ tooltip {
border-left: 0px;
border-right: 0px;
}
#keyboard-state {
color: #89b4fa;
}