bump 0.1.14.7
[diohsc.git] / diohscrc.sample
blob2083d88d7415db78f20bcce00b5cbc2b8fdbc87f
1 #### Sample diohsc configuration:
2 # Copy this to ~/.diohsc/diohscrc and edit it appropriately.
3 # Each line is a diohsc command which will be run at startup.
6 ## Proxies
7 # To allow diohsc to access gopher:// URIs:
8 # run an Agena https://tildegit.org/solderpunk/agena instance locally
9 # and uncomment the following option (you may want to change the port if
10 # you're also running a gemini server locally).
11 #set proxy gopher 127.0.0.1:1965
13 # To allow diohsc to access http:// and https:// URIs:
14 # run a Duckling https://github.com/LukeEmmet/duckling-proxy instance locally
15 # and uncomment the following options (you may want to change the port if
16 # you're running a gemini server or agena instance)
17 #set proxy http  127.0.0.1:1965
18 #set proxy https 127.0.0.1:1965
19 # By default, duckling-proxy automatically converts text/html using html2gmi;
20 # you may prefer to use the --unfiltered option and set a geminator as below,
21 # This gives you more control over the conversion, and lets you access the
22 # html source in diohsc.
25 ## Geminators
26 # The following "geminator" options will allow display of various mimetypes;
27 # install the corresponding software, and uncomment the corresponding line.
29 # https://github.com/makeworld-the-better-one/md2gemini/
30 #set geminator text/markdown md2gemini -l paragraph
32 # https://github.com/LukeEmmet/html2gmi
33 #set geminator (text|application)/(html|xml|xhtml.*) html2gmi -me
35 # These lines use jp2a and imagemagick, which are probably packages in your
36 # distro, to produce nice ascii art previews of image files:
37 #set geminator image/jpeg echo '```' && jp2a --colors - && echo '```'
38 #set geminator image/.* echo '```' && convert - jpeg:- | jp2a --colors - && echo '```'
41 ## Render filter
42 # This will do a best effort translation of utf8 to ascii when rendering text:
43 #set render_filter stdbuf -o0 uni2ascii -BPq
45 ## Identification
46 # You may want to configure certain cryptographic identities to always be used
47 # for certain sites. e.g. if you've created an identity "astrobotany" for use
48 # on astrobotany.mozz.us, you may want to uncomment the following line.
49 #gemini://astrobotany.mozz.us identify astrobotany
51 ## Aliases
52 # You can set aliases as shorthands for commands. e.g.:
53 #alias up ..
54 #alias Search 'search query
55 #alias QueueNew at *- add
56 #alias Mpv |mpv --cache-secs 5 -
57 #alias CS br screen -X register '%s'  # copy URI to GNU screen buffer
58 #alias CX br xsel -i <<< '%s'         # copy URI to X selection buffer
59 #alias GPGImport |gpg --import
60 #alias Read ||- espeak -s 300 --stdin --stdout | aplay
61 #alias BGRead ||- espeak -s 300 --stdin --stdout | aplay &
63 # Uploading with the Titan protocol:
64 # For use with gemini://gemini.thegonz.net/titan-upload.sh .
65 # Invoke as "TARGET TU [FILE] [-t TOKEN]" where TARGET is a titan:// uri to 
66 # upload an existing file (or compose one),
67 # or as "TARGET TE [-t TOKEN]" to edit a gemini TARGET and upload the changed 
68 # version via titan.
69 #alias TU br titan-upload.sh %s
70 #alias TE ! $EDITOR %s && titan-upload.sh titan://${URI#gemini://} %s
72 # Paging with gmir:
73 # For use with https://github.com/codesoap/gmir .
74 # Requires perl with the URI library (which you probably have).
75 # If you select a link in gmir, it will be added to the diohsc queue.
76 #alias GMIR !rel="$(gmir "%s")"; [ -n "$rel" ] && echo "$(perl -e 'use URI; print URI->new_abs(shift, shift)')' "$rel" "$URI") >> ~/.diohsc/queue"