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,
"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": "| <span color='#ef9f33'>{}</span>"
"sway/language": {
"format": "| <span color='#bdbd45'>{short} {variant}</span>",
},
"clock": {
"tooltip": false,