-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.linopenrc
65 lines (54 loc) · 1.38 KB
/
.linopenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#┃ ~/.linopenrc
#┣━━━━━━━━━━━━━
#┃ mjturt
# linopen used to replace xdg-open
# enviroiment variables can be used
# Specify your terminal emulator here
# for terminal support.
terminal=termite
# Specify all programs you want to
# open in terminal like this:
interm=vim,ranger,nvim,lf
# There are 4 ways to match filetypes.
# The following examples are in the order
# which linopen chooses the program as well.
# 1. File extension
# .png:sxiv
# .mp4:mplayer
# .txt:vim
.epub:zathura
.gif:/home/mjt/sh/mpvgif
.svg:/home/mjt/sh/fehsvg
.json:$EDITOR->interm
# 2. Mime type
# image/png:sxiv
# video/mp4:mplayer
# text/plain:vim
application/pdf:zathura
x-scheme-handler/magnet:magnet
# 3. Mime category
image:feh
video:mpv
audio:mpv->interm
text:$EDITOR->interm
# 4. Regexp
# Match some protocols by default
?'^magnet:':/home/mjt/sh/magnet-tremc
?'^customdir:':/home/mjt/sh/open-dir-from-link
?'^http:\/\/':$BROWSER
?'^https:\/\/':$BROWSER
?'^www.':$BROWSER
?'^dvd:\/\/':mpv
?'^cdda:\/\/':mpv
?'^zoommtg:\/\/':zoom
?'^slack:\/\/':slack
?'^skype:\/\/':skype
# Directory rule for directories
# ideally you want to use file manager
# here if you are a GUI user.
directory:$FILE_BROWSER->interm
# Default rule just echoes back whatever
# was feed. If you are using DE you could
# just map a file manager here and it would
# integrate with your system.
default:$EDITOR->interm