summaryrefslogtreecommitdiff
path: root/dmenuunicode
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-07-15 17:56:01 -0500
committerzachir <zachir@librem.one>2025-07-15 17:56:01 -0500
commit02446ea71c3a37dca44316ed42b00e22692e34b9 (patch)
tree7f1f4c1d24f1a5d41801b84c0bc0e826c9262515 /dmenuunicode
parentc9d939e8e9d7845233820952276178c24a5914cf (diff)
Replace all menus with dmenu
Diffstat (limited to 'dmenuunicode')
-rwxr-xr-xdmenuunicode6
1 files changed, 1 insertions, 5 deletions
diff --git a/dmenuunicode b/dmenuunicode
index 1769cb6..c843353 100755
--- a/dmenuunicode
+++ b/dmenuunicode
@@ -12,12 +12,8 @@ while getopts "hd:" o; do case "${o}" in
esac done
if [ -n "$WAYLAND_DISPLAY" ]; then
- DMENU="tofi"
- DEFARGS="-c $HOME/.config/tofi/themes/dmenu_vertical"
CLIP="wl-copy"
elif [ -n "$DISPLAY" ]; then
- DMENU="dmenu "
- DEFARGS="-l 10"
CLIP="xclip -selection clipboard"
else
print "Can't tell if Wayland or X; what gives?\n"
@@ -25,7 +21,7 @@ else
fi
# Get user selection via dmenu -i -l 30 from emoji file.
-chosen=$(cut -d ';' -f1 ~/.local/share/larbs/chars/* | $DMENU $DEFARGS $ARGS | sed "s/ .*//")
+chosen=$(cut -d ';' -f1 ~/.local/share/larbs/chars/* | dmenu -l 15 $ARGS | sed "s/ .*//")
# Exit if none chosen.
[ -z "$chosen" ] && exit