From cfda342e4618d4b7acfd53bdd91d88aee5b163d5 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 13 Mar 2019 17:22:41 -0400 Subject: [PATCH] cabl truncates --- .scripts/i3cmds/cabl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/i3cmds/cabl b/.scripts/i3cmds/cabl index 3ca6556..b5b1b3f 100755 --- a/.scripts/i3cmds/cabl +++ b/.scripts/i3cmds/cabl @@ -21,6 +21,6 @@ echo "$prim" | grep "^.*@.*\.[A-Za-z]\+$" >/dev/null && email() { xdg-email "$@" command -v qrencode >/dev/null && qrcode() { qrencode "$@" -s 10 -o /tmp/qr.png && xdg-open /tmp/qr.png ;} man -k "^$prim$" >/dev/null && manual() { man -Tpdf "$prim" | zathura - ;} -func="$(declare -F | awk '{print $3}' | dmenu -p "Plumb $prim to?" -i -l 15)" +func="$(declare -F | awk '{print $3}' | dmenu -p "Plumb \"$(echo "$prim" | cut -c -30)\" to?" -i -l 15)" [ -z "$func" ] || "$func" "$prim"