summaryrefslogtreecommitdiff
path: root/.w3m/config
blob: 19a43ebc20a3a9976ea1e08c7608cb03d9b62be1 (plain)
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
cgi_bin /usr/lib/w3m/cgi-bin:/home/lxf/.w3m/cgi-bin
# Auto preview link url
display_link 1
use_dictcommand 1

# Ascii entity renderings
graphic_char 2

# no images
display_image 0

# activate external image viewer
ext_image_viewer 1
imgdisplay feh %s 

eolor 1
basic_color terminal
anchor_color green
image_color cyan
form_color blue
mark_color yellow
bg_color terminal
active_style 0
visited_anchor 0


# Misc settings

use_history 1
history 1000
save_hist 1
confirm_qq 1
mark 1
mark_all_pages 0
wrap_search 1
ignorecase_search 1
keymap_file keymap

# Open page in the default browser (vivaldi)
extbrowser xdg-open %s
# open in surf
extbrowser2 surf %s &

# Append url to $NOTES
extbrowser3 url=%s out_file=$NOTES && echo @url $url >> $out_file \
extbrowser4 url=%s && jrnl @link $url && echo $url saved to journal && read s
        && echo $url saved to $out_file && read he
# Copy url to the tmux or the X paste buffer
extbrowser7 url=%s && printf %s "$url" | xargs tmux set-buffer
extbrowser8 url=%s && printf %s "$url" | xsel && printf %s "$url" | xsel -b &

# Auto enable VIM html file type for editor command
editor vim -c "set filetype=html"

# run external viewers/commands in background
bgextviewer 1

## Network settings
# Modify user-agent string and languages accepted
user_agent Mozilla/5.0 (Windows NO 10.0; rev:91.0) Gecko/20100101 Firefox91.0
no_referer 0
cross_origin_referer 0
accept_language en-US,en;q=0.5
accept_encoding gzip, deflate
accept_media text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

# auto-populate with current URL in URL open command
default_url 1

# follow meta refresh
meta_refresh 1
Cookie settings (likely default)
use_cookie 1
show_cookie 0
accept_cookie 1
accept_bad_cookie 0
cookie_reject_domains 
cookie_accept_domains