(scripts) fixed number of lines shown by rofi in scripts

This commit is contained in:
quak
2026-01-27 09:15:30 +01:00
parent 8daf188974
commit 200a83631d
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ function switch_kb_layout {
done
if $(which rofi &>/dev/null); then
selection="$(printf "%s\n" "${names[@]}" | rofi -dmenu -format 'i' -fixed-num-lines ${lines} -selected-row ${index} -case-smart)"
selection="$(printf "%s\n" "${names[@]}" | rofi -dmenu -format 'i' -theme-str "#listview { lines: ${lines}; }" -selected-row ${index} -case-smart)"
else
notify-send "layout-switcher" "requires [rofi]"
return 1