(scripts) BLARGH!

This commit is contained in:
scbj
2025-06-24 14:53:10 +02:00
parent 38074e039e
commit a0b2e362b1

View File

@@ -20,6 +20,10 @@ function switch_kb_layout {
number=${#layouts[@]}
fi
# # select current layout NOTE: if index would work...
# current_layout="$(swaymsg -t get_inputs | grep -iP "active_layout_index" | grep -ioP "(?<=: ).*(?=,)" -m 1)"
# selection="$(printf "%s\n" "${layouts[@]}" | fuzzel --lines ${number} --dmenu --select-index ${current_layout})"
selection="$(printf "%s\n" "${layouts[@]}" | fuzzel --lines ${number} --dmenu)"
if [[ -z "${selection}" ]]; then