-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.ini
95 lines (84 loc) · 2.57 KB
/
config.example.ini
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
###
# See url_handler(5) for details on this config file
###
browser=xdg-open
#program_launcher=swaymsg -q exec --
filter_path=/usr/share/url_handler/
filter_shell=sh -c
# wl_clipboard is wayland specific, use xclip for X11
# clipboard_cmd=xclip -o -sel clip
clipboard_cmd=wl-paste -n
detach_on_exec=true
notify_cmd=notify-send
# In this section you can also define variables that can be used in the rest of the file like so
terminal=foot --log-level none
[images]
# imv is a script that can be found in my dotfiles https://git.dagestad.fr/~nicolai/bin/tree/main/wrappers/imv
# It is a wrapper that download the image and opens it in the real imv, then deletes the image when imv is closed
exec=imv
mime_type=image/*
extensions=png,jpg,jpeg,gif,svg,webp
url_regex=discordapp.com/emojis/
url_regex=dumbingofage.com/[0-9]+/comic/
url_regex=egscomics.com/comic
url_regex=existentialcomics.com/
url_regex=explosm.net/comics/
url_regex=feedproxy.google.com/~r/PoorlyDrawnLines
url_regex=feedproxy.google.com/~r/satwcomic
url_regex=floccinaucinihilipilificationa.tumblr.com/post/
url_regex=foxes-in-love.tumblr.com/post/
url_regex=imgflip.com/i/
# Imgur has done some stuff with their site so this does not really work anymore...
#url_regex=imgur.com/(gallery|a)
url_regex=killsixbilliondemons.com/comic/
url_regex=poorlydrawnlines.com/comic/
url_regex=questionablecontent.net/view\.php\?comic
url_regex=reallifecomics.com/
url_regex=xkcd.com
# This section is called video, but it also handles audio stuff as can be seen by
# the mime-types
[videos]
exec=mpv
filter=video
mime_type=video/*,audio/*
extensions=avi,mp4,mp3,flv,ogg,webm,mkv,mov,flac
url_regex=dailymotion.com
url_regex=soundcloud.com
url_regex=vimeo.com
url_regex=youtu.be
url_regex=youtube.com/embed
url_regex=youtube.com/playlist
url_regex=youtube.com/watch
[pdf]
exec=zathura
extensions=pdf
mime_type=application/pdf
[mail]
# Aerc is a terminal email client, it is somewhat like mutt but better in many ways
# in my opinion 🙃
exec=%(terminal)s aerc
protocol=mailto
[ssh]
exec=%(terminal)s ssh
protocol=ssh
[torrent]
exec=transmission-gtk
protocol=magnet
extensions=torrent
mime_type=application/x-bittorrent
url_regex=nyaa.si/view/[0-9]+/torrent
# This is a cool site 👍
url_regex=shanaproject.com/download/[0-9]+
[text]
exec=%(terminal)s vim
protocol=file
mime_type=text/*,application/json
extensions=txt,md,c,c++,cpp,h,hpp,sh,go,py,json,yml,xml,scd,ino,rst
match_expression=(protocol && mime_type) || extension
[directories]
exec=%(terminal)s -D
mime_type=inode/directory
[man]
exec=%(terminal)s man
url_regex=\w+\(\d\)
match_expression=url_regex