summaryrefslogtreecommitdiff
path: root/.w3m/config
blob: 7acbcdcef78298131dc1825e1b50585cab3ffbc3 (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
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 w3mimgdisplay

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

# Append url to $NOTES
extbrowser3 url=%s out_file='/home/lxf/inbox/new.txt' && echo $url >> $out_file && echo $url saved to $out_file && read s
extbrowser4 url=%s && jrnl @link $url && echo $url saved to journal && read s

# 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 
accept_language en;q=1.0

# 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