Waybar : Toggle lang on click.

This commit is contained in:
Dmitry Voronin 2024-05-07 04:12:11 +03:00
parent 6b5d6a81db
commit 1504157215
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -31,6 +31,10 @@
"custom/powersave", "custom/powersave",
"tray" "tray"
], ],
"sway/language": {
"tooltip": false,
"on-click": "swaymsg 'input * xkb_switch_layout next'"
},
"sway/scratchpad": { "sway/scratchpad": {
"format": "{icon} {count}", "format": "{icon} {count}",
"show-empty": false, "show-empty": false,
@ -103,11 +107,9 @@
"on-click-right": "powersave toggle" "on-click-right": "powersave toggle"
}, },
"temperature": { "temperature": {
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"format": "{temperatureC}°C", "format": "{temperatureC}°C",
"on-click": "foot -e bash -c btop", "on-click": "foot -e bash -c btop",
"on-click-right": "powersave toggle", "on-click-right": "powersave toggle"
"interval": 1
}, },
"custom/powersave": { "custom/powersave": {
"exec": "powersave waybar", "exec": "powersave waybar",