config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 9922c6096f632c3df3a7c1960f3ae7c36a95537c
parent aa62ca7f40903a063f018253ec1abcd101bb115e
Author: Jacob R. Edwards <n/a>
Date:   Tue,  6 Dec 2022 20:33:59 -0600

Do not automatically use selected history item in xinput

Dmenu returns the selected item instead of the entered text by
default, while you can inhibit this behavior by pressing shift, I
believe it's more appropriate for this application to use what's
been written by default (especially as you can simply press tab to
load the selected item into the buffer). This behavior is achieved
by passing the -e flag (which was added in a patch for dmenu I
wrote, and which is applied to the dmenu in forks)

Diffstat:
Mlocal/bin/bin/xinput | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/local/bin/bin/xinput b/local/bin/bin/xinput @@ -10,7 +10,7 @@ xgetroot() { } dmenu() { - command dmenu ${name:+-p "$name"} \ + command dmenu -e ${name:+-p "$name"} \ -w $(xdotool getactivewindow 2>/dev/null || xgetroot) "$@" }