sway: fix keyboard language display

This commit is contained in:
Vladan Popovic 2024-10-07 01:16:41 +02:00
parent f1a244178f
commit c0245c9d1c

View file

@ -4,7 +4,7 @@
"height": 30, "height": 30,
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [], "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 // Module config
"sway/mode": { "sway/mode": {
"tooltip": true, "tooltip": true,
@ -73,10 +73,8 @@
"memory": { "memory": {
"format": " {}%" "format": " {}%"
}, },
"custom/layout": { "sway/language": {
"exec": "~/.config/waybar/keyboard-layout.py", "format": "| <span color='#bdbd45'>{short} {variant}</span>",
"return-type": "json",
"format": "| <span color='#ef9f33'>{}</span>"
}, },
"clock": { "clock": {
"tooltip": false, "tooltip": false,