Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash completion: add a rofi bash-completion script #1125

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

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