(deflisten keyboard-layout :initial "en" "./lib/get-kb-layout.sh")

(defwidget kbd-layout-tray-item []
  (box
    :orientation "h"
    :space-evenly false
    :halign "center"
    :class "interactive kbd-layout-tray-item"
    (eventbox :cursor "pointer" :class "interactive"
      (button
        :class "kbd-layout"
        :onclick "hyprctl switchxkblayout usb-hid-keyboard next"
        keyboard-layout
      )
    )
  )
)
