Fancy dynamic menu for X11 and Wayland, compatible with dmenu! https://spmenu.speedie.site
Go to file
2023-03-24 03:17:53 +01:00
docs allow adjusting max image size 2023-03-21 21:52:14 +01:00
libs some changes to the general codebase. also add spmenu:about which 2023-03-24 03:14:24 +01:00
scripts some improvements to the script 2023-03-21 11:45:25 +01:00
.gitignore fix issues with previous commit 2023-03-07 20:50:13 +01:00
host.mk move optimization level to a separate variable 2023-03-09 15:13:46 +01:00
keybinds.h remove duplicate keybindings 2023-03-24 03:17:53 +01:00
LICENSE add very wip image support 2023-02-25 03:46:26 +01:00
Makefile some changes to the general codebase. also add spmenu:about which 2023-03-24 03:14:24 +01:00
options.h some changes to the general codebase. also add spmenu:about which 2023-03-24 03:14:24 +01:00
options.mk version bump: 0.3.1 2023-03-18 16:04:57 +01:00
PKGBUILD some pkgbuild cleanup and version bump: 0.3 2023-03-17 15:44:46 +01:00
README.md add keybind for navigating items quickly 2023-03-20 16:33:23 +01:00
spmenu.1 allow adjusting max image size 2023-03-21 21:52:14 +01:00
spmenu.c some changes to the general codebase. also add spmenu:about which 2023-03-24 03:14:24 +01:00
TODO this is actually fixed with last commit 2023-03-19 14:29:26 +01:00
toggle.mk fix even more small issues such as duplicate lines and broken makefile 2023-03-09 15:09:04 +01:00

spmenu

image

What is spmenu?

spmenu is an X11 menu application based on dmenu which takes standard input, parses it, and lets the user choose an option and sends the selected option to standard output.

It is designed to integrate well with my dwm fork, speedwm.

Special features

This build of spmenu has some features written for this build. Of course if you want, this is free software so you can use it in your own build.

  • dwm-like keybind array (See keybinds.h)
  • Vim-like modes, including indicator.
  • The ability to move around items with keybinds.
  • Customizable line/column size.
  • Web browser like keybindings.
  • 256 color support through SGR codes.
  • Image support (from this repository)
  • Option to block typing.
  • Rewritten arguments, old arguments still work though.
  • Hiding each part of the menu.

..and more!

Other features

Note: This is an incomplete list, it's just here to give you an idea of what this build has to offer.

  • Pango markup support
  • Alpha transparency
  • Pywal/.Xresources support
  • Grid
  • Colored Emoji/Font support
  • Highlighting
  • Right-to-left language support
  • Case-insensitive by default
  • Padding; useful with patched dwm with barpadding or speedwm.
  • Fuzzy-finding
  • Preselect support
  • Line-height
  • History support
  • Customizable bar height

Dependencies

  • libX11
  • libXrender
  • freetype
  • imlib2
    • Used for image support, can be disabled if you don't want this by editing toggle.mk.
  • libXinerama
    • Can be disabled if you don't want/need multi-monitor support, edit toggle.mk
  • tcc compiler (you can swap it out for GCC by passing CC="gcc" to the make command if you want)
  • OpenSSL
    • To calculate MD5
  • Pango (for drawing fonts)
    • If you do not want to use pango, edit toggle.mk

Installation (most GNU/Linux distributions)

emerge dev-vcs/git # Install dev-vcs/git using your favorite package manager

git clone https://git.speedie.gq/spmenu

cd spmenu/

make clean install # Run as root.

Installation (Gentoo)

If you are on Gentoo GNU/Linux, you can add my overlay which includes x11-misc/spmenu as well as other useful packages.

Installation (Arch)

If you are on Arch GNU/Linux, you can add my repository which includes spmenu as well as other useful packages.

There's also a PKGBUILD. To use it, simply makepkg -Si.

Images

To use an image, pipe IMG:/path/to/image to spmenu. If you want you can specify arguments.

printf "IMG:$HOME/Wallpapers/Art/2.png\tThis is a cool image.\n" | spmenu

.Xresources values

This build allows you to define .Xresources values to load on startup. See docs/example.Xresources for a list of default values.

Scripts

This build of spmenu should work with all spmenu/dmenu scripts. Here are a few I've written/use.