urlhandler: reformat assignments
This commit is contained in:
parent
7650ec5ac1
commit
8adfc51452
|
@ -22,15 +22,15 @@ local default_cmd="firefox"
|
|||
local mpv="mpv --force-window=yes"
|
||||
|
||||
local -A assignments=(
|
||||
'\.(mp4|m4v|mkv|avi|webm|flv|xvid|ogv|theora|mov|wmv)(\?.+)?$' "${mpv};vlc"
|
||||
'\.(ogg|flac|opus|m4a|wav|mp3|mid|aac|wma)(\?.+)?$' "${mpv};vlc"
|
||||
'^https://media\.ccc\.de/v/[^/]*$' "${mpv}"
|
||||
'^https?://(www\.)?youtu(\.be|be\.com)/' "${mpv}"
|
||||
'^(gemini|gopher)://' "kristall"
|
||||
'\.(mp4|m4v|mkv|avi|webm|flv|xvid|ogv|theora|mov|wmv)(\?.+)?$' "${mpv};vlc"
|
||||
'\.(ogg|flac|opus|m4a|wav|mp3|mid|aac|wma)(\?.+)?$' "${mpv};vlc"
|
||||
'^https://media\.ccc\.de/v/[^/]*$' "${mpv}"
|
||||
'^https?://(www\.)?youtu(\.be|be\.com)/' "${mpv}"
|
||||
'^(gemini|gopher)://' "kristall"
|
||||
'\.(log|txt)$' "readwwwlog"
|
||||
'^https?://(www\.)?(dpaste|pastebin|irccloud)\.com/' "readwwwlog"
|
||||
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
|
||||
'(^magnet:|\.torrent$)' "transmission-remote-gtk"
|
||||
'(^magnet:|\.torrent$)' "transmission-remote-gtk"
|
||||
)
|
||||
|
||||
local selected_cmd=${default_cmd}
|
||||
|
|
Loading…
Reference in New Issue
Block a user