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 df2f84abe6de1ce1a6b784bc9005318f77b60aa2
parent 4bfea44c16e0d358da3944e16ba03e2141d63e36
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 18 Nov 2019 19:57:44 +0100

Limit url length in dmenu prompt

Diffstat:
M.local/bin/linkhandler | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -35,7 +35,7 @@ handle_url() { action="comic" ;; *) action="$(printf "open\nopen (tbb)\nxclip\nbookmark\ndownload\nhtml to pdf\nsci-hub\nadd bibref\nmpv\nxdg-open\nyoutube-dl\nyoutube-dl-music" | \ - dmenu -i -p "$url")";; + dmenu -i -p "$(echo "$url" | sed 's/.*:\/\///' | cut -c-80)")";; esac case "$action" in