-
Notifications
You must be signed in to change notification settings - Fork 29
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
how about adding some dmenu like functions to this? #73
Comments
Hi thanks for your issue. Can you please summarize again what it is you intend to add/change? I couldn't quite tell that from the script you posted. |
sorry, i am sometimes a little cryptic, specially since that was late yesternight. what i mean is that sway launcher is already so much of a dmenu replacement, at least on the "basic" use case of dmenu, a launcher for programs, however not so much on the other use case of being an interactive filter for arbitrary newline separated data (unless i missed something, granted i have not throughly read the script tho), which is what the script i posted tries to do, altho in a less than ideal way (it has issues like allowing empty stdin, the terminal lingering when fzf exits, the program itself not terminating) so i want to see if you would be up for creating a more comprehensive dmenu replacement exploiting the capabilities of fzf |
(Edited: Replaced a tmp file for preview text with a variable) (Edited again: Replaced some temp files with variables. Haven't found a way of avoiding the OUT_FILE, but that might be a kitty specific issue, since I didn't find a way to make it pass the stdout of the launcer on to a variable) I think the description of this issue is more or less the same as what was asked for in #64 ? I wanted something along these lines, and managed to adjust the script from that issue into something that takes "anythng" separated by newlines and spits out your selected item to stdout. I'm not an expert in bash stuff, so this might be doable in a simpler way, and maybe you could even consider working it into the main script with a separate flag for reading from stdin? Still consists of two parts, the first is a wrapper script (sway-dmenu-launcher):
Second is the config file (stdin.conf):
Using this, I've been able to replace some scripts I earlier used rofi/wofi for, for instance this one changing focus to a window:
Or sending an application to a workspace:
|
term-dmenu is as good as abandoned, and there is some space for dmenu-like software other than rofi and it's clones, not to mention that term-dmenu forces abduco as a dependency
personally i cobbled this "improvement" ove the original gist rather quickly so quite some edge cases and unexpected stuff appeared on the long run https://gist.github.com/MahouShoujoMivutilde/b1fa83bc234b68dd164cb6e843965d75?permalink_comment_id=4331478#gistcomment-4331478
so, what do you say would you like to collab on adding a refined iteration of the script from the gist into this project?
The text was updated successfully, but these errors were encountered: