#### Sample diohsc configuration: # Copy this to ~/.diohsc/diohscrc and edit it appropriately. # Each line is a diohsc command which will be run at startup. ## Proxies # To allow diohsc to access gopher:// URIs: # run an Agena https://tildegit.org/solderpunk/agena instance locally # and uncomment the following option (you may want to change the port if # you're also running a gemini server locally). #set proxy gopher 127.0.0.1:1965 # To allow diohsc to access http:// and https:// URIs: # run a Duckling https://github.com/LukeEmmet/duckling-proxy instance locally # and uncomment the following options (you may want to change the port if # you're running a gemini server or agena instance) #set proxy http 127.0.0.1:1965 #set proxy https 127.0.0.1:1965 # By default, duckling-proxy automatically converts text/html using html2gmi; # you may prefer to use the --unfiltered option and set a geminator as below, # This gives you more control over the conversion, and lets you access the # html source in diohsc. ## Geminators # The following "geminator" options will allow display of various mimetypes; # install the corresponding software, and uncomment the corresponding line. # https://github.com/makeworld-the-better-one/md2gemini/ #set geminator text/markdown md2gemini -l paragraph # https://github.com/LukeEmmet/html2gmi #set geminator (text|application)/(html|xml|xhtml.*) html2gmi -me # These lines use jp2a and imagemagick, which are probably packages in your # distro, to produce nice ascii art previews of image files: #set geminator image/jpeg echo '```' && jp2a --colors - && echo '```' #set geminator image/.* echo '```' && convert - jpeg:- | jp2a --colors - && echo '```' ## Render filter # This will do a best effort translation of utf8 to ascii when rendering text: #set render_filter stdbuf -o0 uni2ascii -BPq ## Aliases # You can set aliases as shorthands for commands. e.g.: #alias up .. #alias Search 'search query #alias QueueNew at *- add #alias Mpv |mpv --cache-secs 5 - #alias CS br screen -X register '%s' # copy URI to GNU screen buffer #alias CX br xsel -i <<< '%s' # copy URI to X selection buffer #alias GPGImport |gpg --import #alias Read ||- espeak -s 300 --stdin --stdout | aplay #alias BGRead ||- espeak -s 300 --stdin --stdout | aplay & # For use with https://alexschroeder.ch/cgit/gemini-titan/ # Invoke as "TARGET Ti TOKEN [FILE]" #alias Titan br titan %s ## Identification # You may want to configure certain cryptographic identities to always be used # for certain sites. e.g. if you've created an identity "astrobotany" for use # on astrobotany.mozz.us, you may want to uncomment the following line. #gemini://astrobotany.mozz.us identify astrobotany