From 9c3514cad69ef2604ac322e11ecfc4348214eace Mon Sep 17 00:00:00 2001 From: Logan G Date: Sat, 16 Nov 2024 23:58:37 -0700 Subject: [PATCH] Added keyboard layout config to Hyprland bar --- .config/waybar/hyprland | 2 +- .config/waybar/modules | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/waybar/hyprland b/.config/waybar/hyprland index 1e7330a..c438e17 100644 --- a/.config/waybar/hyprland +++ b/.config/waybar/hyprland @@ -6,7 +6,7 @@ "modules-left": ["hyprland/workspaces"], "modules-center": ["hyprland/window"], //"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", } diff --git a/.config/waybar/modules b/.config/waybar/modules index ea680aa..686fd86 100644 --- a/.config/waybar/modules +++ b/.config/waybar/modules @@ -21,6 +21,14 @@ "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": { "max-length": 80, "tooltip": false