Updated Chawan config for gopher Sat, 25 Oct 2025 08:58:13 +0200 +-----------------------------------------------------------------+ here's my updated ~/.config/chawan/config.toml for using it as a gopher client: gopher://spike.nagatha.fr/I/images/gopher-chawan-colour.png +----------------------------------------------------------------+ [page] ';' = 'cmd.pager.nextBuffer' '!' = "pager.externFilterSource('/usr/bin/rdrview -H', null, 'text/html')" [encoding] document-charset = "utf-8" [display] image-mode = "auto" [buffer] images = true user-style = ''' @media (-cha-content-type: "text/gopher") { pre {padding-left:7ch; white-space: pre} a {display:inline-block; whitespace:pre;} a[item-type]::before { content: "[UNKN] "; } a[item-type='0']::before { content: "[FILE] "; color:#c5c5c3; } a[item-type='1']::before { content: "[ DIR] "; color:#c5c5c3; } a[item-type='2']::before { content: "[ CSO] "; } a[item-type='3']::before { content: "[ ERR] "; color:#ff4500; } a[item-type='4']::before { content: "[ HQX] "; } a[item-type='5']::before { content: "[ DOS] "; } a[item-type='6']::before { content: "[UUEN] "; } a[item-type='7']::before { content: "[ ASK] "; color:#eed202; } a[item-type='8']::before { content: "[TELN] "; } a:is([item-type='9'], [item-type='m'])::before { content: "[ BIN] " } a[item-type='c']::before { content: "[ CAL] "; } a[item-type='d']::before { content: "[ DOC] "; } a[item-type='g']::before { content: "[ GIF] "; color:#20b2aa; } a[item-type='h']::before { content: "[HTML] "; color:#062a78; } a:is([item-type='s'], [item-type='>'])::before { content: "[ SND] "; color:#648c11; } a:is([item-type='I'], [item-type='p'], [item-type=':'])::before { content: "[ IMG] "; color:#20b2aa; } a[item-type=';']::before { content: "[ MOV] "; color:#69359c; } a[item-type='T']::before { content: "[3270] "; } a[item-type='M']::before { content: "[MIME] "; } a[item-type='P']::before { content: "[ PDF] "; } a[item-type='X']::before { content: "[ XML] "; } } ''' +----------------------------------------------------------------+ My .mailcap now looks like this: # Chawan audio/x-mpegurl; mpv --playlist=%s; audio/*; mpv %s; video/*; mpv %s; image/*; nsxiv --geometry=1068x600 %s; application/*; cp %s /tmp \; xdg-open /tmp/$(basename %s) > /dev/null 2>&1; +----------------------------------------------------------------+ My ~/.config/mpv/mpv.conf script-opts=osc-visibility=always geometry=1068x600 ontop=yes idle=yes force-window=yes