Skip to content

Exit ronema with Mouse or other keybind: kb-cancel #31

Description

@SleakStick

This is not an issue, rather something i wanted to prevent other people taking time to do.

I use ronema with waybar for a networking menu, i wanted ronema to exit when i clicked somewhere that isnt a button, so after some tinkering i found that adding kb-cancel 'MousePrimary' to line 54 of the actual ronema script as follows:

rofi -dmenu -i -location "$LOCATION" -kb-cancel 'MousePrimary' y-yoffset "$Y_AXIS" -xoffset "$X_AXIS" $3 -theme "$RASI_DIR" -theme-str 'window{width: '"$WIDTH"'em;}textbox-prompt-colon{str:"'"$PROMPT"':";}'"$4"''

closes ronema upon clicking on something that isnt a button in the menu. Any key can be added as kb-cancel, i suggest taking a look at
the rofi manpage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions