diff --git a/.config/zsh/functions/readwwwlog b/.config/zsh/functions/readwwwlog index 0b784e0..8583fcb 100755 --- a/.config/zsh/functions/readwwwlog +++ b/.config/zsh/functions/readwwwlog @@ -28,6 +28,9 @@ for url in ${urls}; do elif [[ ${url} =~ 'bpa\.st' && ! ${url} =~ '/download-archive/' ]]; then local id=${url##*/} url="https://bpa.st/download-archive/${id}" + elif [[ ${url} =~ 'paste\.debian\.net' && ! ${url} =~ '/plain/' ]]; then + local id=${url##*/} + url="https://paste.debian.net/plain/${id}" fi if [[ ${TERMINAL} =~ "alacritty|xfce4-terminal" ]]; then diff --git a/.local/bin/urlhandler b/.local/bin/urlhandler index 2ad0b49..2c70ebe 100755 --- a/.local/bin/urlhandler +++ b/.local/bin/urlhandler @@ -31,6 +31,7 @@ local -A assignments=( '^https?://(www\.)?(dpaste|pastebin|irccloud)\.com/' "readwwwlog" '^https?://bpa\.st/' "readwwwlog" '^https?://sprunge\.us/' "readwwwlog" + '^https?://paste\.debian\.net/' "readwwwlog" '\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg" '(^magnet:|\.torrent$)' "transmission-remote-gtk" )