Since I already have dmenu, I use
dmenu_path to list everything in
(with the added benefit of some cache magic). You can use any other method you
selection=$(dmenu_path | fzf) nohup "$selection" > /dev/null 2>&1 &
Here we redirect
stdout so we can dump it all to
we don’t do this, nohup will write to
$PWD/nohup.out, which is no fun.
There’s more than one way to do it.
With i3wm you can do this:
selection=$(dmenu_path | fzf) i3-msg exec "$selection"
selection=$(dmenu_path | fzf) setsid "$selection" >/dev/null 2>&1 < /dev/null &
If you enjoy stuff like this, you should check out other terminal user interface
zenity. These tools let you choose from
glorius full screen dialog boxes, lists, input boxes, calendars and more.
- Using FZF instead of DMENU
- fzf-dmenu - App Launcher - Linux TUI
- Uniting Interfaces: dmenu and fzf
- Why use “nohup &” rather than “exec &"
- Run bash script as daemon