diff options
Diffstat (limited to 'roles/waybar/templates')
| -rw-r--r-- | roles/waybar/templates/waybar/config.jsonc.j2 | 2 | ||||
| -rw-r--r-- | roles/waybar/templates/waybar/scripts/kb-layout-cycle | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/roles/waybar/templates/waybar/config.jsonc.j2 b/roles/waybar/templates/waybar/config.jsonc.j2 index bf65a09e..4fec10f8 100644 --- a/roles/waybar/templates/waybar/config.jsonc.j2 +++ b/roles/waybar/templates/waybar/config.jsonc.j2 @@ -87,7 +87,7 @@ }, "hyprland/language": { "format": "{shortDescription}", - "on-click": "/etc/xdg/waybar/scripts/kb-layout-cycle" + "on-click": "hyprctl switchxkblayout all next" }, "cpu": { "interval": 5, diff --git a/roles/waybar/templates/waybar/scripts/kb-layout-cycle b/roles/waybar/templates/waybar/scripts/kb-layout-cycle deleted file mode 100644 index 45cb8464..00000000 --- a/roles/waybar/templates/waybar/scripts/kb-layout-cycle +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# This works on laptops but not sure if on desktops it will have the same name -# That's why switching all the keyboards layout instead (which is safer) -# exec hyprctl switchxkblayout at-translated-set-2-keyboard next -exec hyprctl devices -j \ - | jq -r '.keyboards[] | select (.name | endswith("keyboard")).name' \ - | xargs -I {} hyprctl switchxkblayout {} next |
