1 dynamicoptions - Dynamic options for dmenu 2 Source: https://tools.suckless.org/dmenu/patches/dynamicoptions/dmenu-dynamicoptions-20200526-01e2dfc7.diff 3 Original Author: ttmx - email@example.com 4 5 Description from source: 6 """ 7 This patch adds a flag (-dy) which makes dmenu run the command given to it whenever input is changed with the 8 current input as the last argument and update the option list according to the output of that command. 9 10 By default dmenu does not let you change the option list after starting it, this patch adds support for that. 11 It is best used with the -l flag. 12 13 (ie. usage: dmenu -dy ls runs ls on whatever directory/file you are currently typing in dmenu and lets you 14 select it) 15 """ 16 17 == YOU MUST == 18 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/ 19 (2). Add the following line to your savedconfig file: 20 21 static const char *dynamic = NULL; 22 23 This variable represents the dynamic command to run on input change. 24 (3). Run 'emerge dmenu' 25 26 == YOU PROBABLY SHOULD == 27 (1). Run dmenu with the '-dy X' option, where 'X' is some command to run whenever dmenu's input is changed. 28 29 == PATCH MODIFICATIONS == 30 (1). Removed lines relating to 'config.def.h' 31 (2). Added a 'nodoc' patch version which strips out added documentation 32 33 == INCOMPATIBILITIES == 34 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES! 35 If you encounter such conflicts, try emerging with the 'dynamicoptions-nodoc.patch' file instead. It is the 36 same as the 'dynamicoptions.patch' file except it makes no changes to the documentation.