Seirdy / term-dmenu

Replace dmenu with a floating terminal and FZF! Comes with helper scripts for program/app launching, window switching, etc.
https://gitlab.com/Seirdy/term-dmenu
Other
49 stars 1 forks source link
application-launcher dmenu dmenu-replacement fzf i3wm launcher menu rofi sway swaywm term-dmenu terminal window-switcher

term-dmenu

sourcehut GitLab
mirror GitHub
mirror

A replacement for Rofi, dmenu, and other launchers that uses FZF and a plain-old terminal emulator.

I recommend altering these scripts to suit your preferences.

What's inside

The main script is term-dmenu and its dependency floating-terminal. term-dmenu is a dmenu replacement that turns stdin into an interactive menu and sends output back to stdout. In other words, if you don't use any of dmenu's CLI options, you can probably just alias dmenu=term-dmenu and you'll be just fine.

Helper scripts work with term-dmenu. If you set the environment variable $DMENU_PROGRAM to something else (e.g. dmenu or rofi -dmenu), the helper scripts will use those programs instead.

Dependencies

Configuration

If you don't want to use term-dmenu but would like to use some of the helper scripts

Differences from similar implementations

Other projects attempting to replace dmenu/rofi with terminal emulators exist, most notably sway-launcher-desktop. I created my own project instead of contributing upstream because I had different goals:

Acknowledgements

dmenu-runner code is based on this script by FlyingWombat (Wayback Machine, archive.today), with inspiration from dmenu_run_history.

Many bits of code were borrowed from the discussion in issue 1367 of Sway's GitHub issue tracker.