qutebrowser: Add maps for viewing images in nsxiv

Added two mappings: localleader+i and localleader+I (localleader being ,
in my case) to open single images or galleries in nsxiv.

The maps make use of nsxiv-rifle and mirror the setup for opening video
in mpv with +m/+M where capital letters open the current page and small
ones let you follow a link.
This commit is contained in:
Marty Oehme 2022-08-06 22:09:30 +02:00
parent aa47068fd0
commit 0aeccdad4f
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -49,6 +49,8 @@ config.bind(leader + "tV", "set tabs.position left")
# bind mpv to play the current page/links, using a single instance which queues the next link passed
config.bind(lleader + "M", "spawn umpv {url}")
config.bind(lleader + "m", "hint links spawn umpv {hint-url}")
config.bind(lleader + "I", "spawn nsxiv-rifle {url}")
config.bind(lleader + "i", "hint --rapid links spawn nsxiv-rifle {hint-url}")
# bind youtube-dl to download the current page/links
config.bind(lleader + "dM", "spawn vidl {url}")