From 200a83631da7153b6603ca8a31152ce8648d79d4 Mon Sep 17 00:00:00 2001 From: quak Date: Tue, 27 Jan 2026 09:15:30 +0100 Subject: [PATCH] (scripts) fixed number of lines shown by rofi in scripts --- rofi/.config/rofi/config.rasi | 2 +- scripts/audio-sink-switcher.sh | 2 +- scripts/i3-kb-layout-switcher.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi index 54bd80f..2ac6977 100644 --- a/rofi/.config/rofi/config.rasi +++ b/rofi/.config/rofi/config.rasi @@ -4,7 +4,7 @@ configuration { modes: "combi,window,run"; combi-modes: "drun,run"; - drun-match-fields: "filename,name,generic,keywords"; + drun-match-fields: "name,generic,keywords"; matching: "fuzzy"; monitor: -1; terminal: "ghostty"; diff --git a/scripts/audio-sink-switcher.sh b/scripts/audio-sink-switcher.sh index 0b2d2de..bd2c000 100755 --- a/scripts/audio-sink-switcher.sh +++ b/scripts/audio-sink-switcher.sh @@ -32,7 +32,7 @@ select_audio_sink() { fi if $(which rofi &>/dev/null); then - selection="$(printf "%s\n" "${names[@]//\"/}" | rofi -dmenu -fixed-num-lines ${lines} -selected-row ${number} -case-smart)" + selection="$(printf "%s\n" "${names[@]//\"/}" | rofi -dmenu -theme-str "#listview { lines: ${lines}; }" -selected-row ${number} -case-smart)" elif $(which fuzzel &>/dev/null); then selection="$(printf "%s\n" "${names[@]//\"/}" | fuzzel --lines ${lines} --dmenu --select-index ${number})" else diff --git a/scripts/i3-kb-layout-switcher.sh b/scripts/i3-kb-layout-switcher.sh index 5ab0611..63d102c 100755 --- a/scripts/i3-kb-layout-switcher.sh +++ b/scripts/i3-kb-layout-switcher.sh @@ -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