Skip to content
Dynamic menu (like dmenu) for Windows
C Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
src
.gitignore
LICENSE
README.md
make.bat
test_input.txt
wlines.sublime-project

README.md

wlines

Dynamic menu for Windows - inspired by the suckless dmenu.

Download

A compiled binary for the latest commit can always be found on AppVeyor.

Usage

Menu entries are passed to wlines through stdin. After the user has made a choice, the result is sent out through stdout.

Running (echo hello & echo world & echo !) | wlines would for example bring up a menu like this:

Showing a menu of three items

The user can filter by writing in the textbox:

A user filter said menu

The menu style and behavior can be customized through command-line arguments. Run wlines -h for a list of these.

wlines by itself doesn't do much. The power comes through using scripts that talk to it. suckless has a list of examples of scripts that can be used with dmenu.

Dave Davenport's rofi (an alternative to dmenu) also has such a list.

System requirements

wlines has been tested and works on unmodified Windows XP (32-bit) and Windows 10 (64-bit). As such, it should work on anything in-between as well.

Build steps

  1. Download the Tiny C Compiler and add the WinApi headers.
  2. Patch tcc/lib/gdi32.def to also include SetDCPenColor and SetDCBrushColor.
  3. Make sure tcc.exe is in your PATH.
  4. Clone this repo (git clone https://github.com/JerwuQu/wlines.git)
  5. Run make.bat

Credits

Contributing

All issues and PRs related to fixing bugs or other strange behavior are welcome.

License

This project is licensed under the GNU General Public License v3.0. See LICENSE for more details.

You can’t perform that action at this time.