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.
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.
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 '```'
42 # This will do a best effort translation of utf8 to ascii when rendering text:
43 #set render_filter stdbuf -o0 uni2ascii -BPq
47 # You can set aliases as shorthands for commands. e.g.:
49 #alias Search 'search query
50 #alias QueueNew at *- add
51 #alias Mpv |mpv --cache-secs 5 -
52 #alias CS br screen -X register '%s' # copy URI to GNU screen buffer
53 #alias CX br xsel -i <<< '%s' # copy URI to X selection buffer
54 #alias GPGImport |gpg --import
55 #alias Read ||- espeak -s 300 --stdin --stdout | aplay
56 #alias BGRead ||- espeak -s 300 --stdin --stdout | aplay &
57 #alias Offline ~- add O # download queue and put in O~ etc
59 # For use with https://alexschroeder.ch/cgit/gemini-titan/
60 # Invoke as "TARGET Ti TOKEN [FILE]"
61 #alias Titan br titan %s
64 # You may want to configure certain cryptographic identities to always be used
65 # for certain sites. e.g. if you've created an identity "astrobotany" for use
66 # on astrobotany.mozz.us, you may want to uncomment the following line.
67 #gemini://astrobotany.mozz.us identify astrobotany