Skip to content

Conversation

@johnbeard
Copy link
Contributor

Adds a basic bash completion script for the rofi(1) command.
Most parameters are handled to some extent, with some extra
logic for things like modi, windows, X11 displays, key bindings
and arguments with known options.


Some improvments that could be made:

  • Figure out a complete keysym list (for me, scraping xmodmap is missing KP_[0-9]
  • Allow to comma-join modi lists
  • Maybe have a tidier way to get the option lists than scraping rofi --help or hardcoding

Adds a basic bash completion script for the rofi(1) command.
Most parameters are handled to some extent, with some extra
logic for things like modi, windows, X11 displays, key bindings
and arguments with known options.
@DaveDavenport
Copy link
Collaborator

We could add some specific commandline flags to rofi to get a clear list of info for auto completion. What would be needed?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants