major springcleaning

This commit is contained in:
2023-10-12 15:12:12 +02:00
parent 648a010f64
commit 98b48cb97b
332 changed files with 6708 additions and 10208 deletions

View File

@ -281,16 +281,12 @@ set save_tabs_on_exit false
# Enable scroll wrapping - moving down while on the last item will wrap around to
# the top and vice versa.
set wrap_scroll false
map gNe cd ~/eth/negotiation
map gMe cd ~/eth/mech2
map gWu cd ~/eth/wuf2
map gIn cd ~/eth/inno
map gDa cd ~/eth/data
map gRt cd ~/eth/rt2
map gCh cd ~/eth/chemie
map grm cd ~/eth/hrm
map gpm cd ~/eth/pm
map gre cd ~/eth/recht
map grt cd ~/eth/rt2
map gvl cd vl
map gus cd üs
map gco cd coll
map gz cd zsf
@ -741,4 +737,4 @@ tmap <delete> eval -q fm.ui.taskview.task_remove()
tmap <C-l> redraw_window
tmap <ESC> taskview_close
copytmap <ESC> q Q w <C-c>
map <c-o> shell st ranger '%d' & disown
map <c-o> shell st ranger '%d' & disown > /dev/null 2>&1

View File

@ -54,38 +54,42 @@
# Rarely installed browsers get higher priority; It is assumed that if you
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
# other hand are often only installed as fallback browsers.
ext x?html?, has surf, X, flag f = surf -- file://"$1"
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has dwb, X, flag f = dwb -- "$@"
ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
ext x?html?, has luakit, X, flag f = luakit -- "$@"
ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
ext x?html?, has midori, X, flag f = midori -- "$@"
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
ext x?html?, has chromium, X, flag f = chromium -- "$@"
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
ext x?html?, has opera, X, flag f = opera -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
ext x?html?, has elinks, terminal = elinks "$@"
ext x?html?, has links2, terminal = links2 "$@"
ext x?html?, has links, terminal = links "$@"
ext x?html?, has lynx, terminal = lynx -- "$@"
ext x?html?, has w3m, terminal = w3m "$@"
# Commented out since i want to open htmls in EDITOR
#ext x?html?, has surf, X, flag f = surf -- file://"$1"
#ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
#ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
#ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
#ext x?html?, has dwb, X, flag f = dwb -- "$@"
#ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
#ext x?html?, has luakit, X, flag f = luakit -- "$@"
#ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
#ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
#ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
#ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
#ext x?html?, has midori, X, flag f = midori -- "$@"
#ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
#ext x?html?, has chromium, X, flag f = chromium -- "$@"
#ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
#ext x?html?, has opera, X, flag f = opera -- "$@"
#ext x?html?, has firefox, X, flag f = firefox -- "$@"
#ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
#ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
#ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
#ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
#ext x?html?, has elinks, terminal = elinks "$@"
#ext x?html?, has links2, terminal = links2 "$@"
#ext x?html?, has links, terminal = links "$@"
#ext x?html?, has lynx, terminal = lynx -- "$@"
#ext x?html?, has w3m, terminal = w3m "$@"
#-------------------------------------------
# Misc
#-------------------------------------------
#Import calendar files into calcurse
ext sc, has sc-im, X, flag t = sc-im -- "$@"
mime text/calendar, has calcurse, flag f = calendaradd "$@"
name ^.*\.bands\.agr$, has xmgrace, X, flag f = xmgrace -- "$@"
# Define the "editor" for text files as first action
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
@ -93,6 +97,8 @@ mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext rs = $EDITOR -- "$1"
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
@ -155,6 +161,7 @@ ext pdf, has okular, X, flag f = okular -- "$@"
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
ext pdf, has qpdfview, X, flag f = qpdfview "$@"
ext pdf, has open, X, flag f = open "$@"
mime application/pdf, has zathura, X, flag f = zathura -- "$@"
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
@ -172,14 +179,18 @@ ext djvu, has djview, X, flag f = djview -- "$@"
ext epub|mobi|cbz, has zathura, X, flag f = zathura -- "$@"
ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
mime application/x-bittorrent, has tremc, flag f = tremc -- "$@"
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image/svg, has display, X, flag f = display -- "$@"
mime ^image/x-xcf, has gimp, X, flag f = gimp -- "$@"
mime ^image, has pqiv, X, flag f = pqiv -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -s f -- "$@"
mime ^image, has nsxiv, nsxiv-rifle, X, flag f = nsxiv-rifle -- "$@"
mime ^image, has nsxiv, X, flag f = nsxiv-rifle -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has ristretto, X, flag f = ristretto "$@"
@ -189,7 +200,6 @@ mime ^image, has nomacs, X, flag f = nomacs -- "$@"
mime ^image, has geeqie, X, flag f = geeqie -- "$@"
mime ^image, has gwenview, X, flag f = gwenview -- "$@"
mime ^image, has gimp, X, flag f = gimp -- "$@"
ext xcf, X, flag f = gimp -- "$@"
#-------------------------------------------
# Archives

View File

@ -128,9 +128,9 @@ handle_image() {
local mimetype="${1}"
case "${mimetype}" in
## SVG
# image/svg+xml|image/svg)
# convert -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
# exit 1;;
image/svg+xml|image/svg)
convert -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
exit 1;;
## DjVu
image/vnd.djvu)