dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit bf2cfa6ac3789d3a7a2a77094b028162b483d02d
parent e72e8d984f38d114cb5cb22ff868abbb39fa0722
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 30 Sep 2020 13:29:58 +0200

unicodepick: fix on linux

Diffstat:
M.local/bin/unicodepick | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/.local/bin/unicodepick b/.local/bin/unicodepick @@ -1,14 +1,10 @@ #!/bin/sh set -e -if ! type -v xclip >/dev/null 2>&1; then - exit 1 -fi - symbols="$(grep -v '#' "${HOME}/.local/share/unicode-symbols.txt")" lines=10 -if [ -z "$TERM" ]; then +if [ -z "$TERM" ] || [ "$TERM" = linux ]; then s="$(printf '%s' "$symbols" | dmenu -i -l "$lines" -fn PragmataPro-20)" else s="$(printf '%s' "$symbols" | fzy -l "$lines")"