If you wanna have a rofi-like interface (with it showing rows of results) you could use -l [lines] to show dmenu in vertical rows rather than in one row with many entries.
Just a PSA; your use case is very well suited to rofi and if I had that workflow I'd have a hard time translating that to dmenu.
[0]: https://www.youtube.com/watch?v=8E8sUNHdzG8
[1]: https://github.com/devenblake/dotfiles/blob/main/src/dmenu/c...
> - scratchpad [1]: Little known i3 feature. Let's you put individual windows in a scratch workspace and then pull them up quickly over your regular workspaces. Really useful docs and things like that, I keep my time tracker in a scratch workspace.
Ah, this is nice. I used to use a similar feature with ion before I switched to i3 but I didn't realize that i3 had the same functionality built in.
Note, this is totally doable in dmenu. I have a script that combines output from wmctrl and dmenu_path. This is bound to M-space for me.
If you have a script or binary that outputs a list of newline-separated strings, you can easily combine these, and dmenu will happily return the selected thing.
Here's what that looks like:
present-options () {
windows # Function to list open windows
dmenu_path # dmenu script listing binaries
}Workflow:
1. Arrange your windows how you like
2. Save the layout
3. Open the windows
4. Load the layout
Repeat 3 and 4.
Nicely done with rofi/dmenu.
If you're an i3 user here are a couple cool things to check out:
- scratchpad [1]: Little known i3 feature. Let's you put individual windows in a scratch workspace and then pull them up quickly over your regular workspaces. Really useful docs and things like that, I keep my time tracker in a scratch workspace.
- rofi [2]: This is a dmenu replacement with a nicer interface that lets you combine lists of commands in a single search window. I have it configured so I can search through my open windows by title or run any program from the same interface.
[1]: https://i3wm.org/docs/userguide.html#_scratchpad
[2]: https://github.com/davatorium/rofi