davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.27k stars 613 forks source link

[BUG] Cannot change `lines` property of `listview` during runtime in script mode #1917

Closed mageowl closed 11 months ago

mageowl commented 12 months ago

Rofi version (rofi -v)

1.7.5

Configuration

https://gist.github.com/mageowl/a1a5e579d4c18d5ee30723da8b6d18fa

Theme

https://gist.github.com/mageowl/a1a5e579d4c18d5ee30723da8b6d18fa

Timing report

No response

Launch command

rofi -show {script}

Step to reproduce

  1. Create a script stored in ~/.config/rofi/scripts/
    #!/bin/env bash
    # bug_report.bash
    echo "Change number of lines"
    [[ $ROFI_RETV = 1 ]] && echo "\0theme\xf1listview { lines: 1; }"
  2. Run rofi using rofi -show bug_report
  3. Choose the hello there option.

Expected behavior

After choosing the option, the number of displayed lines would be reduced to one.

Actual behavior

Nothing happens.

Additional information

No response

Using wayland display server protocol

I've checked if the issue exists in the latest stable release

mageowl commented 12 months ago

It also does not work to change the children property.

DaveDavenport commented 12 months ago

Yes, this is not supported. The interface is build up once on startup and cannot be modified afterwards (except for some colors).

added clarification in manpage.

github-actions[bot] commented 10 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.