Added keyboard layout config to Hyprland bar

This commit is contained in:
Logan G 2024-11-16 23:58:37 -07:00
parent 7c8337b8bc
commit 9c3514cad6
Signed by untrusted user: logan
GPG key ID: E328528C921E7A7A
2 changed files with 9 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-center": ["hyprland/window"], "modules-center": ["hyprland/window"],
//"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"], //"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
"modules-right": ["pulseaudio#hyprland", "backlight", "idle_inhibitor", "network#hyprland", "battery", "clock", "tray"], "modules-right": ["hyprland/language", "pulseaudio#hyprland", "backlight", "idle_inhibitor", "network#hyprland", "battery", "clock", "tray"],
"include": "~/.config/waybar/modules", "include": "~/.config/waybar/modules",
} }

View file

@ -21,6 +21,14 @@
"tooltip": true "tooltip": true
}, },
"hyprland/language": {
"format": "[{short}-{shortDescription}{variant}]",
"tooltip-format": "{long}",
//"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
"max-length": 15,
"tooltip": true
},
"hyprland/window": { "hyprland/window": {
"max-length": 80, "max-length": 80,
"tooltip": false "tooltip": false