summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dmapps215
-rwxr-xr-x.local/bin/dmbookm4
-rwxr-xr-x.local/bin/dmlog40
-rwxr-xr-x.local/bin/dmotp8
-rwxr-xr-x.local/bin/dmpass20
-rwxr-xr-x.local/bin/dmrun6
-rwxr-xr-x.local/bin/linkview25
-rwxr-xr-x.local/bin/setwp42
-rw-r--r--.local/state/w3m/config163
-rw-r--r--.local/state/w3m/history9
-rw-r--r--.local/state/w3m/keymap64
-rw-r--r--.local/state/w3m/mailcap4
12 files changed, 405 insertions, 195 deletions
diff --git a/.local/bin/dmapps b/.local/bin/dmapps
index 51b0625..ccefc76 100755
--- a/.local/bin/dmapps
+++ b/.local/bin/dmapps
@@ -2,9 +2,9 @@
use strict;
use warnings;
+use feature qw/switch/;
use Data::Dump qw(dump);
use POSIX qw(setsid);
-use Switch;
use Sys::Hostname qw(hostname);
use constant PROG_LIST => "" .
@@ -23,6 +23,7 @@ use constant PROG_LIST => "" .
"Stellarium" . "\n" .
"Google Earth" . "\n" .
"DBeaver" . "\n" .
+"OnlyOffice" . "\n" .
"--- Editors ---" . "\n" .
"NeoVim" . "\n" .
"Emacs" . "\n" .
@@ -77,161 +78,57 @@ sub run
$pid = fork();
exit if $pid;
setsid();
- switch ($action) {
- case "Terminal" {
- exec("alacritty");
- }
- case "File manager" {
- exec("pcmanfm");
- }
- case "Web browser" {
- exec("firefox");
- }
- case "Mail client" {
- exec("thunderbird");
- }
- case "Arduino" {
- exec("arduino-ide");
- }
- case "cool-retro-term" {
- exec("cool-retro-term");
- }
- case "Qalculate!" {
- exec("qalculate-gtk");
- }
- case "Kleopatra" {
- exec("kleopatra");
- }
- case "Transmission" {
- exec("transmission-gtk");
- }
- case "Wireshark" {
- exec("doas", "wireshark");
- }
- case "MKVToolNix" {
- exec("mkvtoolnix-gui");
- }
- case "Stellarium" {
- exec("stellarium");
- }
- case "Google Earth" {
- exec("google-earth-pro");
- }
- case "NeoVim" {
- exec("alacritty", "-e", "nvim");
- }
- case "Emacs" {
- exec("emacs");
- }
- case "Emacs-NoX" {
- exec("alacritty", "-e", "emacs-nw");
- }
- case "GIMP - GNU Image Manipulation Program" {
- exec("gimp");
- }
- case "Inkscape" {
- exec("inkscape");
- }
- case "LibreWolf" {
- exec("librewolf");
- }
- case "Firefox" {
- exec("firefox");
- }
- case "Iridium" {
- exec("iridium", "--force-dark-mode");
- }
- case "Chromium" {
- exec("chromium");
- }
- case "Discord" {
- exec("discord");
- }
- case "Signal" {
- exec("signal-desktop");
- }
- case "Liferea" {
- exec("liferea");
- }
- case "HexChat" {
- exec("hexchat");
- }
- case "REAPER" {
- exec("reaper");
- }
- case "Audacity" {
- exec("audacity");
- }
- case "Pulse Control Panel" {
- exec("pavucontrol");
- }
- case "JACK Audio Connection Kit" {
- exec("qjackctl");
- }
- case "Ario" {
- exec("ario");
- }
- case "Kdenlive" {
- exec("kdenlive");
- }
- case "OBS Studio" {
- exec("obs");
- }
- case "Steam" {
- exec("steam");
- }
- case "Lutris" {
- exec("lutris");
- }
- case "GZDoom" {
- exec("gzdoom");
- }
- case "DOSBox" {
- exec("dosbox");
- }
- case "Mupen64Plus" {
- exec("mupen64plus-qt");
- }
- case "Cemu" {
- exec("cemu");
- }
- case "PCSX2" {
- exec("pcsx2");
- }
- case "RPCS3" {
- exec("rpcs3");
- }
- case "Remmina" {
- exec("remmina");
- }
- case "Rclone Browser" {
- exec("rclone-browser");
- }
- case "Insomnia" {
- exec("insomnia");
- }
- case "VMware" {
- exec("vmware");
- }
- case "DBeaver" {
- exec("dbeaver");
- }
- case "MongoDB Compass" {
- exec("nixGL", "mongodb-compass");
- }
- case "Miro" {
- exec("miro");
- }
- case "FortiClient VPN" {
- exec("/opt/forticlient/gui/FortiClient-linux-x64/FortiClient");
- }
- case "Teams" {
- exec("nixGL", "teams-for-linux");
- }
- else {
- return;
- }
- }
+ exec("alacritty") if $action =~ "Terminal";
+ exec("pcmanfm") if $action =~ "File manager";
+ exec("firefox") if $action =~ "Web browser";
+ exec("thunderbird") if $action =~ "Mail client";
+ exec("arduino-ide") if $action =~ "Arduino";
+ exec("cool-retro-term") if $action =~ "cool-retro-term";
+ exec("qalculate-gtk") if $action =~ "Qalculate!";
+ exec("kleopatra") if $action =~ "Kleopatra";
+ exec("transmission-gtk") if $action =~ "Transmission";
+ exec("doas", "wireshark") if $action =~ "Wireshark";
+ exec("mkvtoolnix-gui") if $action =~ "MKVToolNix";
+ exec("stellarium") if $action =~ "Stellarium";
+ exec("google-earth-pro") if $action =~ "Google Earth";
+ exec("alacritty", "-e", "nvim") if $action =~ "NeoVim";
+ exec("emacs") if $action =~ "Emacs";
+ exec("alacritty", "-e", "emacs-nw") if $action =~ "Emacs-NoX";
+ exec("gimp") if $action =~ "GIMP - GNU Image Manipulation Program";
+ exec("inkscape") if $action =~ "Inkscape";
+ exec("librewolf") if $action =~ "LibreWolf";
+ exec("firefox") if $action =~ "Firefox";
+ exec("iridium", "--force-dark-mode") if $action =~ "Iridium";
+ exec("chromium") if $action =~ "Chromium";
+ exec("discord") if $action =~ "Discord";
+ exec("signal-desktop") if $action =~ "Signal";
+ exec("liferea") if $action =~ "Liferea";
+ exec("hexchat") if $action =~ "HexChat";
+ exec("reaper") if $action =~ "REAPER";
+ exec("audacity") if $action =~ "Audacity";
+ exec("pavucontrol") if $action =~ "Pulse Control Panel";
+ exec("qjackctl") if $action =~ "JACK Audio Connection Kit";
+ exec("ario") if $action =~ "Ario";
+ exec("kdenlive") if $action =~ "Kdenlive";
+ exec("obs") if $action =~ "OBS Studio";
+ exec("steam") if $action =~ "Steam";
+ exec("lutris") if $action =~ "Lutris";
+ exec("gzdoom") if $action =~ "GZDoom";
+ exec("dosbox") if $action =~ "DOSBox";
+ exec("mupen64plus-qt") if $action =~ "Mupen64Plus";
+ exec("cemu") if $action =~ "Cemu";
+ exec("pcsx2") if $action =~ "PCSX2";
+ exec("rpcs3") if $action =~ "RPCS3";
+ exec("remmina") if $action =~ "Remmina";
+ exec("rclone-browser") if $action =~ "Rclone Browser";
+ exec("insomnia") if $action =~ "Insomnia";
+ exec("vmware") if $action =~ "VMware";
+ exec("dbeaver") if $action =~ "DBeaver";
+ exec("onlyoffice-desktopeditors") if $action =~ "OnlyOffice";
+ exec("nixGL", "mongodb-compass") if $action =~ "MongoDB Compass";
+ exec("miro") if $action =~ "Miro";
+ exec("/opt/forticlient/gui/FortiClient-linux-x64/FortiClient") if $action =~ "FortiClient VPN";
+ exec("nixGL", "teams-for-linux") if $action =~ "Teams";
return;
}
@@ -249,7 +146,11 @@ sub main
if (hostname() eq "po-rbo.ln.ysosecure.com") {
$prompt .= WORK_LIST;
}
- $action = `dmenu -i -l 100 -sb '$color' -shb '$color' <<LIST
+ my $menu = "dmenu -sb '$color' -shb '$color'";
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ $menu = "wmenu -S '$color'";
+ }
+ $action = `$menu -i -l 100 <<LIST
$prompt
LIST`;
if (not $action) {
diff --git a/.local/bin/dmbookm b/.local/bin/dmbookm
index 68c93f2..22a9e52 100755
--- a/.local/bin/dmbookm
+++ b/.local/bin/dmbookm
@@ -15,6 +15,7 @@ use constant {
use constant LIST => {
graf => 'http://graf.joe.town/',
zhinu => 'https://zhinu.jozan.org/',
+ claude => 'https://claude.ai',
perplexity => 'https://perplexity.ai/',
chatgpt => 'https://chatgpt.com/',
discord => 'https://discord.com/',
@@ -24,6 +25,7 @@ use constant LIST => {
nua_gr_restops => 'https://grafana.nuabee.fr/d/Mz11bd07k/vue-d-ensemble-machines-atelier',
nua_gr_alertops => 'https://grafana.nuabee.fr/d/WojOgXTmk/ops-alerts',
nua_git => 'https://gitlab.int.ysosecure.com/',
+ nua_pipes => 'https://gitlab.int.ysosecure.com/ops/NuaProv/-/pipelines',
nua_mbs => 'https://mbs.nuabee.com/',
nua_hedgedoc => 'http://hedgedoc.int.ysosecure.com/',
nua_doc => 'https://doc.int.ysosecure.com/',
@@ -31,8 +33,10 @@ use constant LIST => {
nua_zammad => 'https://support.nuabee.fr/',
nua_atlas => 'https://atlas.nuabee.fr/',
nua_share => 'https://share.nuabee.fr/',
+ nua_windmill => 'https://windmill.nuabee.fr/',
nua_aether => 'https://aether.int.ysosecure.com/ui',
nua_gaia => 'https://gaia.int.ysosecure.com/',
+ nua_certsrv => 'https://orca1.int.ysosecure.com/certsrv',
};
sub main
diff --git a/.local/bin/dmlog b/.local/bin/dmlog
index 756d9b9..7264d75 100755
--- a/.local/bin/dmlog
+++ b/.local/bin/dmlog
@@ -36,8 +36,13 @@ sub confirm
for (@{+CONFIRM}) {
$list .= $_ . "\n";
}
+
+ my $menu = "dmenu -sb '$color' -shb '$color'";
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ $menu = "wmenu -S '$color'";
+ }
$choice = `printf "%s" "$list" | \
- dmenu -i -p "$var?" -sb '$color' -shb '$color'`;
+ $menu -i -p "$var?"`;
chomp $choice;
if ($choice eq ${+CONFIRM}[1]) {
return (1);
@@ -52,12 +57,28 @@ sub action
chomp $var;
if ($var eq ${+LIST}[0]) {
- exec(XSCREENSAVER_PATH, '-lock');
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ exec("waylock",
+ "-init-color", "0x1d2021",
+ "-input-color", "0xd79921",
+ "-fail-color", "0xcc241d");
+ }
+ else {
+ exec(XSCREENSAVER_PATH, '-lock');
+ }
}
elsif ($var eq ${+LIST}[1]) {
$pid = fork();
if (not $pid) {
- exec(XSCREENSAVER_PATH, '-lock');
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ exec("waylock",
+ "-init-color", "0x1d2021",
+ "-input-color", "0xd79921",
+ "-fail-color", "0xcc241d");
+ }
+ else {
+ exec(XSCREENSAVER_PATH, '-lock');
+ }
}
else {
system(
@@ -72,7 +93,7 @@ sub action
exec(LOGINCTL_PATH, 'suspend');
}
elsif (HOSTNAME eq 'po-rbo') {
- exec('systemctl', 'suspend');
+ exec('doas', 'systemctl', 'suspend');
}
exec(ACPI_PATH, '-s', '3');
}
@@ -91,7 +112,7 @@ sub action
exec(LOGINCTL_PATH, 'reboot');
}
elsif (HOSTNAME eq 'po-rbo') {
- exec('systemctl', 'reboot');
+ exec('doas', 'systemctl', 'reboot');
}
system(
NOTIF_PATH,
@@ -117,7 +138,7 @@ sub action
exec(LOGINCTL_PATH, 'poweroff');
}
elsif (HOSTNAME eq 'po-rbo') {
- exec('systemctl', 'poweroff');
+ exec('doas', 'systemctl', 'poweroff');
}
exec(SHUTDOWN_PATH, '-p', 'now');
}
@@ -138,7 +159,12 @@ sub main
for (@{+LIST}) {
$list .= $_ . "\n";
}
- $choice = `printf "%s" "$list" | dmenu -i -sb '$color' -shb '$color'`;
+
+ my $menu = "dmenu -sb '$color' -shb '$color'";
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ $menu = "wmenu -S '$color'";
+ }
+ $choice = `printf "%s" "$list" | $menu -i`;
action($choice, $color);
return (0);
}
diff --git a/.local/bin/dmotp b/.local/bin/dmotp
index 97f015f..243f48c 100755
--- a/.local/bin/dmotp
+++ b/.local/bin/dmotp
@@ -6,10 +6,10 @@ if echo "$1" | grep '^#' 2>&1; then
fi
if [ -n "$WAYLAND_DISPLAY" ]; then
- dmenu=dmenu-wl
- xdotool="ydotool type --file -"
+ dmenu="wmenu -i -l 15 -S $color"
+ xdotool="ydotool type --delay 15 --file -"
elif [ -n "$DISPLAY" ]; then
- dmenu=dmenu
+ dmenu="dmenu -i -l 15 -sb $color -shb $color"
xdotool="xdotool type --delay 15 --clearmodifiers --file -"
else
echo "Error: No Wayland or X11 display detected" >&2
@@ -19,7 +19,7 @@ fi
prefix=${PASSWORD_STORE_DIR-~/.local/share/pass}/otp
rprefix=$(printf "%s" $prefix | sed 's/\//\\\//g')
password_files=$(ls "$prefix"/*.gpg | sed 's/^'${rprefix}'\///g' | sed 's/\.gpg//g')
-password=$(printf "%s\n" "${password_files}" | "$dmenu" -i -l 15 -sb "$color" -shb "$color")
+password=$(printf "%s\n" "${password_files}" | $dmenu)
[ -n "$password" ] || exit
diff --git a/.local/bin/dmpass b/.local/bin/dmpass
index d5b0494..475b96e 100755
--- a/.local/bin/dmpass
+++ b/.local/bin/dmpass
@@ -13,10 +13,10 @@ fi
if [ -n "$WAYLAND_DISPLAY" ]; then
- dmenu=dmenu-wl
- xdotool="ydotool type --file -"
+ dmenu="wmenu -i -l 15 -S $color"
+ xdotool="ydotool type --delay 15 --file -"
elif [ -n "$DISPLAY" ]; then
- dmenu=dmenu
+ dmenu="dmenu -i -l 15 -sb $color -shb $color"
xdotool="xdotool type --delay 15 --clearmodifiers --file -"
else
echo "Error: No Wayland or X11 display detected" >&2
@@ -26,7 +26,7 @@ fi
prefix=${PASSWORD_STORE_DIR-~/.local/share/pass}
rprefix=$(printf "%s" $prefix | sed 's/\//\\\//g')
password_files=$(ls "$prefix"/*.gpg "$prefix"/*/*.gpg | sed 's/^'${rprefix}'\///g' | sed 's/\.gpg//g')
-password=$(printf "%s\n" "${password_files}" | "$dmenu" -i -l 15 -sb "$color" -shb "$color")
+password=$(printf "%s\n" "${password_files}" | $dmenu)
[ -n "$password" ] || exit
@@ -35,9 +35,17 @@ p="$(pass show "$password")"
if [ $full -eq 1 ]; then
id=$(printf "%s" "$password" | sed 's/.*___//')
printf "%s\n" $id | { IFS= read -r pass; printf %s "$id"; } | $xdotool
- xdotool key Tab
+ if [ -n "$WAYLAND_DISPLAY" ]; then
+ ydotool key 15:1 15:0
+ else
+ xdotool key Tab
+ fi
printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool
- xdotool key Return
+ if [ -n "$WAYLAND_DISPLAY" ]; then
+ ydotool key 28:1 28:0
+ else
+ xdotool key Return
+ fi
exit
fi
diff --git a/.local/bin/dmrun b/.local/bin/dmrun
index f47c232..41c0e0e 100755
--- a/.local/bin/dmrun
+++ b/.local/bin/dmrun
@@ -11,7 +11,11 @@ sub main
if (@ARGV == 1) {
$color = $ARGV[0];
}
- return exec("dmenu_run -i -sb '$color' -shb '$color'");
+ my $menu = "dmenu_run -sb '$color' -shb '$color'";
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ $menu = "wmenu-run -S '$color'";
+ }
+ return exec("$menu -i");
}
main();
diff --git a/.local/bin/linkview b/.local/bin/linkview
index 1523e33..ec928a4 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -14,13 +14,20 @@ use POSIX qw(setsid);
use feature qw(switch);
no warnings qw(experimental::smartmatch);
+my $menu = "dmenu";
+my $IMGVIEW_PATH = 'nsxiv -b -a';
+
+if (defined $ENV{WAYLAND_DISPLAY}) {
+ $menu = "wmenu";
+ $IMGVIEW_PATH = 'imv';
+}
+
use constant {
TERMINAL_PATH => $TERMINAL,
MPV_PATH => 'mpv',
YTDL_PATH => 'yt-dlp',
FETCH_PATH => 'fetch',
CURL_PATH => 'curl',
- IMGVIEW_PATH => 'nsxiv',
ZATHURA_PATH => 'zathura',
W3M_PATH => 'w3m',
BROWSER_PATH => $BROWSER,
@@ -34,7 +41,7 @@ use constant PROG_LIST => "" .
"ytdl" . "\n" .
"ytdl thumbnail" . "\n" .
"fetch" . "\n" .
-"nsxiv" . "\n" .
+"img" . "\n" .
"zathura" . "\n" .
"w3m" . "\n" .
"browser" . "\n" .
@@ -88,7 +95,7 @@ sub open_link
$ret = -1;
if ($a eq "ytdl") {
$list = QUAL_LIST;
- $quality = `printf "$list" | dmenu -i -l 8`;
+ $quality = `printf "$list" | $menu -l 8`;
if (not $quality) {
exit 0;
}
@@ -328,12 +335,14 @@ sub open_link
$file_name = $tmp;
$file_name =~ s/.+\///g;
chomp $file_name;
- system(IMGVIEW_PATH, '-b', '-a', $file_name);
+ system("magick", $file_name, $file_name . ".jpg");
+ system($IMGVIEW_PATH . " " . $file_name . ".jpg");
unlink($file_name);
+ unlink($file_name . ".jpg");
exit 0;
}
}
- elsif ($a eq "nsxiv" || $a eq "zathura") {
+ elsif ($a eq "img" || $a eq "zathura") {
$pid = fork();
if (not $pid) {
setsid();
@@ -355,8 +364,8 @@ sub open_link
system(FETCH_PATH, '-q', $url);
}
}
- if ($a eq "nsxiv") {
- exec(IMGVIEW_PATH, '-b', '-a', $file_name);
+ if ($a eq "img") {
+ exec($IMGVIEW_PATH . " " . $file_name);
}
else {
exec(ZATHURA_PATH, $file_name);
@@ -393,7 +402,7 @@ sub dmenu_prompt
my $answer;
my $list = PROG_LIST;
- $answer = `printf "$list\nURL: $url\n" | dmenu -i`;
+ $answer = `printf "$list\nURL: $url\n" | $menu -i`;
chomp $answer;
return $answer;
}
diff --git a/.local/bin/setwp b/.local/bin/setwp
index e5fce65..5340138 100755
--- a/.local/bin/setwp
+++ b/.local/bin/setwp
@@ -5,6 +5,7 @@ use warnings;
use File::HomeDir qw(home);
use File::Copy;
use File::Find;
+use POSIX qw(setsid);
use constant {
WP_POOL => home() . '/pics/wp/'
@@ -37,20 +38,37 @@ sub choose_wp
sub set_wp
{
my ($wp) = @_;
+ my $pid;
+ my $old_pid;
return 1 if !(-r $wp) || !(-f $wp);
- system(
- FEH_PATH,
- '--no-fehbg',
- '--image-bg',
- '#1d2021',
- '--bg-fill',
- $wp,
- '--bg-fill',
- $wp,
- '--bg-fill',
- $wp
- );
+
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ $old_pid = `pidof swaybg`;
+ chomp $old_pid;
+ $pid = fork();
+ if (not $pid) {
+ setsid();
+ exec("swaybg", "--image", $wp);
+ } else {
+ sleep(1);
+ exec("kill", $old_pid);
+ }
+ }
+ else {
+ system(
+ FEH_PATH,
+ '--no-fehbg',
+ '--image-bg',
+ '#1d2021',
+ '--bg-fill',
+ $wp,
+ '--bg-fill',
+ $wp,
+ '--bg-fill',
+ $wp
+ );
+ }
return 0;
}
diff --git a/.local/state/w3m/config b/.local/state/w3m/config
new file mode 100644
index 0000000..0bb7e83
--- /dev/null
+++ b/.local/state/w3m/config
@@ -0,0 +1,163 @@
+tabstop 4
+indent_incr 4
+pixel_per_char 8
+pixel_per_line 17
+frame 0
+target_self 0
+open_tab_blank 0
+open_tab_dl_list 0
+display_link 0
+display_link_number 0
+decode_url 0
+display_lineinfo 0
+ext_dirlist 1
+dirlist_cmd file:///$LIB/dirlist.cgi
+use_dictcommand 1
+dictcommand file:///$LIB/w3mdict.cgi
+multicol 0
+alt_entity 0
+graphic_char 0
+display_borders 0
+disable_center 0
+fold_textarea 0
+display_ins_del 1
+ignore_null_img_alt 1
+view_unseenobject 1
+display_image 0
+pseudo_inlines 1
+auto_image 1
+max_load_image 4
+ext_image_viewer 1
+image_scale 100
+inline_img_protocol 0
+imgdisplay w3mimgdisplay
+image_map_list 1
+fold_line 0
+show_lnum 0
+show_srch_str 1
+label_topline 0
+nextpage_topline 0
+color 1
+basic_color terminal
+anchor_color blue
+image_color green
+form_color red
+mark_color cyan
+bg_color terminal
+active_style 0
+active_color cyan
+visited_anchor 0
+visited_color magenta
+pagerline 10000
+use_history 1
+history 100
+save_hist 1
+confirm_qq 1
+close_tab_back 0
+mark 0
+emacs_like_lineedit 0
+space_autocomplete 0
+vi_prec_num 1
+mark_all_pages 0
+wrap_search 0
+ignorecase_search 1
+use_mouse 1
+reverse_mouse 0
+relative_wheel_scroll 0
+relative_wheel_scroll_ratio 30
+fixed_wheel_scroll_count 5
+clear_buffer 1
+decode_cte 0
+auto_uncompress 0
+preserve_timestamp 1
+keymap_file keymap
+document_root
+personal_document_root
+cgi_bin
+index_file
+mime_types ~/.mime.types, /usr/local/etc/mime.types
+mailcap ~/.w3m/mailcap, /usr/local/etc/w3m/mailcap
+urimethodmap ~/.w3m/urimethodmap, /usr/local/etc/w3m/urimethodmap
+editor sensible-editor
+mailto_options 1
+mailer
+extbrowser /usr/local/bin/firefox
+extbrowser2
+extbrowser3
+extbrowser4
+extbrowser5
+extbrowser6
+extbrowser7
+extbrowser8
+extbrowser9
+bgextviewer 1
+use_lessopen 0
+passwd_file ~/.w3m/passwd
+disable_secret_security_check 0
+ftppasswd
+ftppass_hostnamegen 1
+pre_form_file ~/.w3m/pre_form
+siteconf_file ~/.w3m/siteconf
+user_agent
+no_referer 0
+cross_origin_referer 1
+accept_language en;q=1.0
+accept_encoding gzip, compress, bzip, bzip2, deflate, br
+accept_media text/html, text/*;q=0.5, image/*, audio/*, video/*, application/*
+argv_is_url 1
+retry_http 1
+default_url 0
+follow_redirection 10
+meta_refresh 0
+localhost_only 0
+dns_order 0
+nntpserver
+nntpmode
+max_news 50
+use_proxy 1
+http_proxy
+https_proxy
+gopher_proxy
+ftp_proxy
+no_proxy
+noproxy_netaddr 1
+no_cache 0
+ssl_forbid_method 2, 3, t, 5
+ssl_min_version
+ssl_cipher
+ssl_verify_server 1
+ssl_cert_file
+ssl_key_file
+ssl_ca_path
+ssl_ca_file
+ssl_ca_default 1
+use_cookie 0
+show_cookie 0
+accept_cookie 0
+accept_bad_cookie 0
+cookie_reject_domains
+cookie_accept_domains
+cookie_avoid_wrong_number_of_dots
+display_charset UTF-8
+document_charset UTF-8
+auto_detect 2
+system_charset UTF-8
+follow_locale 1
+ext_halfdump 0
+use_wide 1
+use_combining 1
+east_asian_width 0
+use_language_tag 1
+ucs_conv 1
+pre_conv 0
+search_conv 1
+fix_width_conv 1
+use_gb12345_map 0
+use_jisx0201 0
+use_jisc6226 0
+use_jisx0201k 0
+use_jisx0212 0
+use_jisx0213 0
+strict_iso2022 1
+gb18030_as_ucs 0
+simple_preserve_space 0
diff --git a/.local/state/w3m/history b/.local/state/w3m/history
new file mode 100644
index 0000000..d2b593c
--- /dev/null
+++ b/.local/state/w3m/history
@@ -0,0 +1,9 @@
+https://www.google.com/
+https://www.google.com/search?ie=ISO-8859-1&hl=fr&source=hp&q=cours+du+bitcoin&btnG=Recherche+Google&iflsig=AO6bgOgAAAAAZY1Cs3AMLLjrqqFlzuOFHPgJsUMgl45-&gbv=1
+file:///home/r_bousset/atlas.nuabee.fr
+https://atlas.nuabee.fr/account/login/
+https://atlas.nuabee.fr/
+file:///tmp/tmpmail/tmpmail.html
+file:///home/r_bousset/nuabee.fr
+https://nuabee.fr/
+https://lite.duckduckgo.com/lite/
diff --git a/.local/state/w3m/keymap b/.local/state/w3m/keymap
new file mode 100644
index 0000000..c0b357c
--- /dev/null
+++ b/.local/state/w3m/keymap
@@ -0,0 +1,64 @@
+# Page/cursor
+keymap h MOVE_LEFT
+keymap j MOVE_DOWN
+keymap k MOVE_UP
+keymap l MOVE_RIGHT
+keymap w NEXT_WORD
+keymap b PREV_WORD
+keymap < SHIFT_LEFT
+keymap > SHIFT_RIGHT
+keymap C-d NEXT_PAGE
+keymap C-u PREV_PAGE
+keymap Z CENTER_H
+keymap z CENTER_V
+keymap gg BEGIN
+keymap G END
+keymap \^,C-a LINE_BEGIN
+keymap $,C-e LINE_END
+# Links
+keymap H PREV
+keymap L NEXT
+keymap TAB NEXT_LINK
+keymap ESC-TAB PREV_LINK
+keymap o GOTO
+keymap O TAB_GOTO
+keymap r RELOAD
+keymap R RESHAPE
+keymap u UNDO
+keymap C-r REDO
+keymap v VIEW_IMAGE
+keymap i INFO
+# Pipes
+keymap @ READ_SHELL
+# keymap \# PIPE_SHELL
+keymap | PIPE_BUF
+# Tabs
+keymap t NEW_TAB
+keymap T TAB_MENU
+keymap x CLOSE_TAB
+keymap J NEXT_TAB
+keymap K PREV_TAB
+# Search
+keymap / ISEARCH
+keymap ? ISEARCH_BACK
+keymap n SEARCH_NEXT
+keymap N SEARCH_PREV
+# Dictionnary
+keymap ESC-w DICT_WORD
+keymap ESC-W DICT_WORD_AT
+# Misc
+keymap B BACK
+keymap E EDIT
+keymap V VIEW
+keymap \\ MENU
+keymap S SELECT_MENU
+keymap ESC-s SAVE
+keymap ESC-o OPTIONS
+keymap ESC-k COOKIE
+keymap ESC-h HISTORY
+keymap ESC-c COMMAND
+keymap ESC-z INTERRUPT
+keymap ESC-l LIST_MENU
+keymap ESC-e EDIT_SCREEN
+keymap ESC-H HELP
+keymap ! EXEC_SHELL
diff --git a/.local/state/w3m/mailcap b/.local/state/w3m/mailcap
new file mode 100644
index 0000000..b51796f
--- /dev/null
+++ b/.local/state/w3m/mailcap
@@ -0,0 +1,4 @@
+image/*; nsxiv -abif %s
+video/*; mpv --quiet %s &; copiousoutput
+audio/*; mpv %s ;
+application/pdf; zathura %s ;