mime: xdg on ranger

This commit is contained in:
lelgenio 2020-04-22 00:53:17 -03:00
parent fb51878982
commit d276232db3
3 changed files with 4 additions and 7 deletions

View File

@ -78,7 +78,7 @@ abbr neomutt mutt
# }}}
# use tmux{{{
if test -z "$TMUX" -a -n "$DISPLAY" ;and status is-interactive
if test -z "$TMUX" -a -n "$DISPLAY"; and not string match -qr kitty "$TERM" ;and status is-interactive
set attach_session (tmux 2> /dev/null ls -F \
'#{session_attached} #{?#{==:#{session_last_attached},},1,#{session_last_attached}} #{session_id}' |
awk '/^0/ { if ($2 > t) { t = $2; s = $3 } }; END { if (s) printf "%s", s }')

View File

@ -1,4 +1,4 @@
[Added Associations]
[Default Applications]
image/bmp=imv.desktop;
image/cgm=imv.desktop;
image/dicom-rle=imv.desktop;
@ -219,10 +219,6 @@ video/x-ogm+ogg=mpv.desktop;
video/x-sgi-movie=mpv.desktop;
video/x-theora=mpv.desktop;
video/x-theora+ogg=mpv.desktop;
x-scheme-handler/sms=org.gnome.Shell.Extensions.GSConnect.desktop;
x-scheme-handler/tel=org.gnome.Shell.Extensions.GSConnect.desktop;
[Default Applications]
application/pdf=org.pwmt.zathura.desktop;
text/html=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop
@ -230,3 +226,4 @@ x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop
application/x-bittorrent=deluge.desktop;
x-scheme-handler/magnet=deluge.desktop;
x-scheme-handler/lbry=lbry.desktop
image/jpeg=imv.desktop

View File

@ -47,7 +47,7 @@
# implementation may differ.
# Note: When using rifle in ranger, there is an additional flag "c" for
# only running the current file even if you have marked multiple files.
flag f = xdg-open $@
#-------------------------------------------
# Websites
#-------------------------------------------