From c0245c9d1c8f5dc318fd8be3c9c85d962b104648 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 7 Oct 2024 01:16:41 +0200 Subject: [PATCH] sway: fix keyboard language display --- dotfiles/.config/waybar/config | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config index 4312297..207aefd 100644 --- a/dotfiles/.config/waybar/config +++ b/dotfiles/.config/waybar/config @@ -4,7 +4,7 @@ "height": 30, "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-center": [], - "modules-right": ["temperature", "network", "battery", "pulseaudio", "backlight", "cpu", "memory", "custom/layout", "clock", "tray"], + "modules-right": ["temperature", "network", "battery", "pulseaudio", "backlight", "cpu", "memory", "clock", "sway/language", "tray"], // Module config "sway/mode": { "tooltip": true, @@ -73,10 +73,8 @@ "memory": { "format": " {}%" }, - "custom/layout": { - "exec": "~/.config/waybar/keyboard-layout.py", - "return-type": "json", - "format": "| {}" + "sway/language": { + "format": "| {short} {variant}", }, "clock": { "tooltip": false,