I want
rofi
to automatically resize menu's height to the number of available options. There is an option -lines
but with it I could only pass constant number. So for each call I'm forced to execute command twice - to calculate number of lines and to display menu:
#!/usr/bin/sh
lines=$(my_command | wc -l)
my_command | rofi -dmenu -lines "$lines"
Is it possible to tell rofi
to shrink its menu to the number of available options?
Asked by anlar
(4357 rep)
May 30, 2023, 07:12 PM
Last activity: May 31, 2023, 05:05 AM
Last activity: May 31, 2023, 05:05 AM