(scripts) fixed number of lines shown by rofi in scripts
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
configuration {
|
configuration {
|
||||||
modes: "combi,window,run";
|
modes: "combi,window,run";
|
||||||
combi-modes: "drun,run";
|
combi-modes: "drun,run";
|
||||||
drun-match-fields: "filename,name,generic,keywords";
|
drun-match-fields: "name,generic,keywords";
|
||||||
matching: "fuzzy";
|
matching: "fuzzy";
|
||||||
monitor: -1;
|
monitor: -1;
|
||||||
terminal: "ghostty";
|
terminal: "ghostty";
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ select_audio_sink() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if $(which rofi &>/dev/null); then
|
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
|
elif $(which fuzzel &>/dev/null); then
|
||||||
selection="$(printf "%s\n" "${names[@]//\"/}" | fuzzel --lines ${lines} --dmenu --select-index ${number})"
|
selection="$(printf "%s\n" "${names[@]//\"/}" | fuzzel --lines ${lines} --dmenu --select-index ${number})"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function switch_kb_layout {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if $(which rofi &>/dev/null); then
|
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
|
else
|
||||||
notify-send "layout-switcher" "requires [rofi]"
|
notify-send "layout-switcher" "requires [rofi]"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user