-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlinopenrc
59 lines (50 loc) · 1.18 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
#
# linopen configuration
# 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
# 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
.pdf:zathura
.html:firefox
.odt:libreoffice
.docx:libreoffice
.pptx:libreoffice
# 2. Mime type
# image/png:sxiv
# video/mp4:mplayer
# text/plain:vim
# 3. Mime category
image:feh
video:mplayer
audio:mplayer->interm # you can also specify the interm rule explictly after '->'
text:gvim
font:gnome-font-viewer
# 4. Regexp
# Match some protocols by default
?'^http:\/\/':firefox
?'^https:\/\/':firefox
?'^www.':firefox
?'^dvd:\/\/':mplayer
?'^cdda:\/\/':mplayer->interm
?'^mailto:':mutt->interm
?'^slack:':slack
# Directory rule for directories
# ideally you want to use file manager
# here if you are a GUI user.
directory:dolphin
# 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:echo