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"