From a17a2dd13a7815691a259247bf53d0cdfd278f56 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 30 Apr 2021 12:36:28 +0200 Subject: [PATCH 01/18] Update git modules URL --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index a3f31c2..39e7682 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule ".emacs.d"] path = .emacs.d - url = git://git.nemunai.re/emacs.git + url = https://git.nemunai.re/nemunaire/conf-emacs.git [submodule "scripts"] path = scripts - url = git://git.nemunai.re/scripts.git + url = https://git.nemunai.re/nemunaire/scripts.git From a232dc49991887efb8d857958f0ce5a26231bdd4 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:55:29 +0100 Subject: [PATCH 02/18] LFS update --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 01c84cc..525a314 100644 --- a/.gitconfig +++ b/.gitconfig @@ -29,7 +29,7 @@ [credential] helper = store [filter "lfs"] + clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true - clean = git-lfs clean -- %f From ce62b7f79bb1eb89b72af2c9f5b961489f6eb3e7 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:55:39 +0100 Subject: [PATCH 03/18] Define defaultBranch --- .gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitconfig b/.gitconfig index 525a314..973cc43 100644 --- a/.gitconfig +++ b/.gitconfig @@ -33,3 +33,5 @@ smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true +[init] + defaultBranch = master From 9f936e94212606eb6a024ed1edcc76757470b10a Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:56:07 +0100 Subject: [PATCH 04/18] Don't use caption in default screenrc --- .screenrc | 3 --- 1 file changed, 3 deletions(-) diff --git a/.screenrc b/.screenrc index 4f7f4c1..0db668c 100644 --- a/.screenrc +++ b/.screenrc @@ -35,9 +35,6 @@ terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1 # Hashed password to reattach password SM4CUO61TsAFs -# Display machine name, screens, load, time and date -caption always "%{= kY}[%H]%{kw}%= %?%-Lw%?%{r}(%{y}%n%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{kw}%l %{kg}%c %{kC}%d %M" - activity "Activity in screen %n-%t" bell_msg "Alert in screen %n-%t" hardstatus alwaysmessage From 0380ee216d2dad806b3e26bc8da60798a796c0f8 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:56:41 +0100 Subject: [PATCH 05/18] Increase speed --- .speak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.speak b/.speak index 93dd0e3..ccdeb97 100755 --- a/.speak +++ b/.speak @@ -34,8 +34,8 @@ else if [ "$FROMSTDIN" -eq 0 ] then - xclip -o | tr '\n' ' ' | $REMOTE espeak -s 350 -p 35 -v $SPEAK_LANG || true + xclip -o | tr '\n' ' ' | $REMOTE espeak -s 400 -p 35 -v $SPEAK_LANG || true else - cat | $REMOTE espeak -s 350 -p 35 -v $SPEAK_LANG || true + cat | $REMOTE espeak -s 400 -p 35 -v $SPEAK_LANG || true fi fi From 455ce3ba3c04bbbbaa9a1b35ff8a5f92b81d17a3 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:56:53 +0100 Subject: [PATCH 06/18] Don't use urxvt anymore --- .xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xinitrc b/.xinitrc index 1683b97..d70339d 100755 --- a/.xinitrc +++ b/.xinitrc @@ -13,7 +13,7 @@ then numlockx on fi -urxvtd -q -f -o +#urxvtd -q -f -o #gnome-settings-daemon From f90d35f723e79674b8ab38a66fdedfaa2d2d35d1 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:57:27 +0100 Subject: [PATCH 07/18] Better defaults --- .Xdefaults | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.Xdefaults b/.Xdefaults index a95f9b1..ca78327 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -1,7 +1,7 @@ /* xterm */ -#xterm*font: 7x13 +!xterm*font: 7x13 xterm*geometry: 102x30 -xterm*font: xft:Fantasque Sans Mono:pixelsize=12 +xterm*font: xft:Fantasque Sans Mono:pixelsize=15 xterm*background: black xterm*foreground: white xterm*saveLines: 1024 @@ -20,10 +20,10 @@ URxvt.cursorBlink: true URxvt.colorBD: white URxvt.depth: 32 -URxvt.font: xft:Fantasque Sans Mono:pixelsize=12:antialias=true -URxvt.boldFont: xft:Fantasque Sans Mono:pixelsize=12:antialias=true:bold -URxvt.italicFont: xft:Fantasque Sans Mono:pixelsize=12:antialias=true:italic -URxvt.boldItalicFont: xft:Fantasque Sans Mono:pixelsize=12:antialias=true:italic:bold +URxvt.font: xft:Fantasque Sans Mono:pixelsize=15:antialias=true,xft:Symbola +URxvt.boldFont: xft:Fantasque Sans Mono:pixelsize=15:antialias=true:bold,xft:Symbola +URxvt.italicFont: xft:Fantasque Sans Mono:pixelsize=15:antialias=true:italic,xft:Symbola +URxvt.boldItalicFont: xft:Fantasque Sans Mono:pixelsize=15:antialias=true:italic:bold,xft:Symbola URxvt.perl-ext-common: default,matcher URxvt.urlLauncher: firefox From 4c975e9766f5cabd1443b16f54473928fdc92145 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 12:59:07 +0100 Subject: [PATCH 08/18] Don't use procmail anymore --- .procmailrc | 63 ----------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .procmailrc diff --git a/.procmailrc b/.procmailrc deleted file mode 100644 index 7908210..0000000 --- a/.procmailrc +++ /dev/null @@ -1,63 +0,0 @@ -# Some environment variables ########################################## -SHELL=/bin/sh -SED=/bin/sed -PERL=/usr/bin/perl -PATH=/usr/local/bin:/usr/bin:/bin - -# Configuration variables ############################################# -VERBOSE=no -MAILDIR=/home/nemunaire/.mail -DEFAULT=$MAILDIR/.Lost/ -ORGMAIL=$MAILDIR/ -JUNK=$MAILDIR/.Junk/ -LOGFILE=$MAILDIR/procmail.log -PMDIR=$HOME/.procmail - -# Custom scripts ###################################################### -MAR=$PMDIR/mark_as_read -MAO=$PMDIR/mark_as_oldnew -NOTIFY=$PMDIR/notify - -# Before anything else, filter spam -INCLUDERC=$PMDIR/rc.spam - -# Filter nagios and system alerts here -INCLUDERC=$PMDIR/rc.nagios -INCLUDERC=$PMDIR/rc.system - -# Filters, unbackuped mails ########################################### - -INCLUDERC=$PMDIR/rc.pubs -INCLUDERC=$PMDIR/rc.newslettre -INCLUDERC=$PMDIR/rc.reports - -# Backup ############################################################## - -INCLUDERC=$PMDIR/rc.backup - -# Filters ############################################################# - -INCLUDERC=$PMDIR/rc.bounces - -INCLUDERC=$PMDIR/rc.list - -INCLUDERC=$PMDIR/rc.emplois - -INCLUDERC=$PMDIR/rc.amis - -INCLUDERC=$PMDIR/rc.meetups - -INCLUDERC=$PMDIR/rc.multi - -INCLUDERC=$PMDIR/rc.projects - -INCLUDERC=$PMDIR/rc.sports - -INCLUDERC=$PMDIR/rc.epita - -INCLUDERC=$PMDIR/rc.notify - -# Last chance -:0H -* ^TO_((pom|pomercier|nemunaire)@(nemunai.re|pomail.fr)|pierre-?olivier@mercier.pm) -./ From 27fe4ef7998ab38687a6c4ad3314bd940bccb0a1 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:00:11 +0100 Subject: [PATCH 09/18] Don't use slrn anymore --- .plan | 3 --- .slrnrc | 21 --------------------- 2 files changed, 24 deletions(-) delete mode 100644 .plan delete mode 100644 .slrnrc diff --git a/.plan b/.plan deleted file mode 100644 index aa8f303..0000000 --- a/.plan +++ /dev/null @@ -1,3 +0,0 @@ -Pierre-Olivier "Némunaire" Mercier -Épita SRS 2014 -Stagiaire infrastructure chez Novaquark diff --git a/.slrnrc b/.slrnrc deleted file mode 100644 index 1b3b6d1..0000000 --- a/.slrnrc +++ /dev/null @@ -1,21 +0,0 @@ -set username "mercie_d" -set hostname "epita.fr" -set realname "Pierre-Olivier 'Nemunaire' Mercier" - -set replyto "Nemunaire " - -% The name of your signature file. If "", no signature is added. -set signature ".signature" - -set sorting_method 11 - - -%% Configuration for using with slrnpull -% -set spool_inn_root "/var/spool/news/slrnpull" -set spool_root "/var/spool/news/slrnpull/news" -set spool_nov_root "/var/spool/news/slrnpull/news" -set read_active 1 -set use_slrnpull 1 -set post_object "slrnpull" -set server_object "spool" From 8e92828a5fc2518d7b65186169ea35f064128c05 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:05:43 +0100 Subject: [PATCH 10/18] Fix Firefox setup --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e952e2b..0ac82b5 100755 --- a/install.sh +++ b/install.sh @@ -93,7 +93,7 @@ install_dir() { do if [ "$1/$f" == "./.mozilla" ] then - if [ -d "${DESTDIR}/.mozilla/firefoxd" ] + if [ -d "${DESTDIR}/.mozilla/firefox" ] then find ${DESTDIR}/.mozilla/firefox -mindepth 1 -maxdepth 1 -type d | while read dest From 7da28ce5d90087b339648ed87bbe075863e59bc0 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:05:55 +0100 Subject: [PATCH 11/18] ssh AddKeysToAgent --- .ssh/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.ssh/config b/.ssh/config index 442708f..db35653 100644 --- a/.ssh/config +++ b/.ssh/config @@ -6,6 +6,7 @@ Host * ControlMaster auto ControlPath /tmp/%r@%h:%p ControlPersist 60 + AddKeysToAgent yes Host *.nemunai.re VerifyHostKeyDNS yes From dfdaa7bfafa919515d80b4f9a6580d1cfcf29ddf Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:06:27 +0100 Subject: [PATCH 12/18] Update emacs.d --- .emacs.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d b/.emacs.d index b3780ff..b40e156 160000 --- a/.emacs.d +++ b/.emacs.d @@ -1 +1 @@ -Subproject commit b3780ffe6ed119eaa887631869240a771380f286 +Subproject commit b40e15664c4fedd6d8a60a618283ff3b73f2b56d From 1b0b20fd028a68b323b10102d8e6fc5685a95b9d Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:12:37 +0100 Subject: [PATCH 13/18] Handle .config directory --- .config/redshift.conf | 41 +++++++++++++++++++++++++++++++++++++++++ install.sh | 3 +++ 2 files changed, 44 insertions(+) create mode 100644 .config/redshift.conf diff --git a/.config/redshift.conf b/.config/redshift.conf new file mode 100644 index 0000000..3f23549 --- /dev/null +++ b/.config/redshift.conf @@ -0,0 +1,41 @@ +; Global settings for redshift +[redshift] +; Set the day and night screen temperatures (Neutral is 6500K) +;temp-day=5700 +;temp-night=3500 + +; Enable/Disable a smooth transition between day and night +; 0 will cause a direct change from day to night screen temperature. +; 1 will gradually increase or decrease the screen temperature. +transition=1 + +; Set the screen brightness. Default is 1.0. +;brightness=0.9 +; It is also possible to use different settings for day and night +; since version 1.8. +;brightness-day=0.7 +;brightness-night=0.4 +; Set the screen gamma (for all colors, or each color channel +; individually) +;gamma=0.8 +;gamma=0.8:0.7:0.8 +; This can also be set individually for day and night since +; version 1.10. +;gamma-day=0.8:0.7:0.8 +;gamma-night=0.6 + +; Set the location-provider: 'geoclue2' or 'manual' +; type 'redshift -l list' to see possible values. +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values. +; 'randr' is the preferred method, 'vidmode' is an older API. +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=randr + +[manual] +lat=48.80644 +lon=2.36193 diff --git a/install.sh b/install.sh index 0ac82b5..622ee96 100755 --- a/install.sh +++ b/install.sh @@ -103,6 +103,9 @@ install_dir() { else echo -e "Installing .mozilla/firefox ...\t\t\e[34mSkipped\e[0m" fi + elif [ "$1/$f" == "./.config" ] + then + DESTDIR="${DESTDIR}/.config" install_dir .config elif ! in_list "$IGNORE_FILES" "$f" then if [ "$REMOVE" -eq 0 ]; then From c08c63333eaa42109a0c99ec664f90f988742fd9 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:14:05 +0100 Subject: [PATCH 14/18] Add alacritty config --- .config/alacritty/alacritty.yml | 813 ++++++++++++++++++++++++++++++++ 1 file changed, 813 insertions(+) create mode 100644 .config/alacritty/alacritty.yml diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..cc5502e --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,813 @@ +# Configuration for Alacritty, the GPU enhanced terminal emulator. + +# Import additional configuration files +# +# Imports are loaded in order, skipping all missing files, with the importing +# file being loaded last. If a field is already present in a previous import, it +# will be replaced. +# +# All imports must either be absolute paths starting with `/`, or paths relative +# to the user's home directory starting with `~/`. +#import: +# - /path/to/alacritty.yml + +# Any items in the `env` entry below will be added as +# environment variables. Some entries may override variables +# set by alacritty itself. +#env: + # TERM variable + # + # This value is used to set the `$TERM` environment variable for + # each instance of Alacritty. If it is not present, alacritty will + # check the local terminfo database and use `alacritty` if it is + # available, otherwise `xterm-256color` is used. + #TERM: alacritty + +window: + # Window dimensions (changes require restart) + # + # Number of lines/columns (not pixels) in the terminal. The number of columns + # must be at least `2`, while using a value of `0` for columns and lines will + # fall back to the window manager's recommended size. + dimensions: + columns: 80 + lines: 25 + + # Window position (changes require restart) + # + # Specified in number of pixels. + # If the position is not set, the window manager will handle the placement. + #position: + # x: 0 + # y: 0 + + # Window padding (changes require restart) + # + # Blank space added around the window in pixels. This padding is scaled + # by DPI and the specified value is always added at both opposing sides. + #padding: + # x: 0 + # y: 0 + + # Spread additional padding evenly around the terminal content. + #dynamic_padding: false + + # Window decorations + # + # Values for `decorations`: + # - full: Borders and title bar + # - none: Neither borders nor title bar + # + # Values for `decorations` (macOS only): + # - transparent: Title bar, transparent background and title bar buttons + # - buttonless: Title bar, transparent background and no title bar buttons + #decorations: full + + # Startup Mode (changes require restart) + # + # Values for `startup_mode`: + # - Windowed + # - Maximized + # - Fullscreen + # + # Values for `startup_mode` (macOS only): + # - SimpleFullscreen + #startup_mode: Windowed + + # Window title + #title: Alacritty + + # Allow terminal applications to change Alacritty's window title. + #dynamic_title: true + + # Window class (Linux/BSD only): + #class: + # Application instance name + #instance: Alacritty + # General application class + #general: Alacritty + + # GTK theme variant (Linux/BSD only) + # + # Override the variant of the GTK theme. Commonly supported values are `dark` + # and `light`. Set this to `None` to use the default theme variant. + #gtk_theme_variant: None + +#scrolling: + # Maximum number of lines in the scrollback buffer. + # Specifying '0' will disable scrolling. + #history: 10000 + + # Scrolling distance multiplier. + #multiplier: 3 + +# Font configuration +font: + # Normal (roman) font face + normal: + # Font family + # + # Default: + # - (macOS) Menlo + # - (Linux/BSD) monospace + # - (Windows) Consolas + #family: monospace + family: "Fantasque Sans Mono" + + # The `style` can be specified to pick a specific face. + #style: Regular + + # Bold font face + #bold: + # Font family + # + # If the bold family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + + # The `style` can be specified to pick a specific face. + #style: Bold + + # Italic font face + #italic: + # Font family + # + # If the italic family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + + # The `style` can be specified to pick a specific face. + #style: Italic + + # Bold italic font face + #bold_italic: + # Font family + # + # If the bold italic family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + + # The `style` can be specified to pick a specific face. + #style: Bold Italic + + # Point size + size: 9.0 + + # Offset is the extra space around each character. `offset.y` can be thought + # of as modifying the line spacing, and `offset.x` as modifying the letter + # spacing. + #offset: + # x: 0 + # y: 0 + + # Glyph offset determines the locations of the glyphs within their cells with + # the default being at the bottom. Increasing `x` moves the glyph to the + # right, increasing `y` moves the glyph upward. + #glyph_offset: + # x: 0 + # y: 0 + + # Thin stroke font rendering (macOS only) + # + # Thin strokes are suitable for retina displays, but for non-retina screens + # it is recommended to set `use_thin_strokes` to `false`. + #use_thin_strokes: true + +# If `true`, bold text is drawn using the bright color variants. +#draw_bold_text_with_bright_colors: false + +# Colors (Tomorrow Night) +colors: + # Default colors + primary: + background: '#000000' + foreground: '#ffffff' + + # Bright and dim foreground colors + # + # The dimmed foreground color is calculated automatically if it is not + # present. If the bright foreground color is not set, or + # `draw_bold_text_with_bright_colors` is `false`, the normal foreground + # color will be used. + #dim_foreground: '#828482' + #bright_foreground: '#eaeaea' + + # Cursor colors + # + # Colors which should be used to draw the terminal cursor. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + cursor: + # text: CellBackground + cursor: '#00ff00' + + # Vi mode cursor colors + # + # Colors for the cursor when the vi mode is active. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #vi_mode_cursor: + # text: CellBackground + # cursor: CellForeground + + # Search colors + # + # Colors used for the search bar and match highlighting. + #search: + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #matches: + # foreground: '#000000' + # background: '#ffffff' + #focused_match: + # foreground: CellBackground + # background: CellForeground + + #bar: + # background: '#c5c8c6' + # foreground: '#1d1f21' + + # Line indicator + # + # Color used for the indicator displaying the position in history during + # search and vi mode. + # + # By default, these will use the opposing primary color. + #line_indicator: + # foreground: None + # background: None + + # Selection colors + # + # Colors which should be used to draw the selection area. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #selection: + # text: CellBackground + # background: CellForeground + + # Normal colors + normal: + black: '#1d1f21' + red: '#ff4444' + green: '#95ff48' + yellow: '#f0c674' + blue: '#7192ff' + magenta: '#f284fb' + cyan: '#7afef7' + white: '#f5f8f6' + + # Bright colors + #bright: + # black: '#666666' + # red: '#d54e53' + # green: '#b9ca4a' + # yellow: '#e7c547' + # blue: '#7aa6da' + # magenta: '#c397d8' + # cyan: '#70c0b1' + # white: '#eaeaea' + + # Dim colors + # + # If the dim colors are not set, they will be calculated automatically based + # on the `normal` colors. + #dim: + # black: '#131415' + # red: '#864343' + # green: '#777c44' + # yellow: '#9e824c' + # blue: '#556a7d' + # magenta: '#75617b' + # cyan: '#5b7d78' + # white: '#828482' + + # Indexed Colors + # + # The indexed colors include all colors from 16 to 256. + # When these are not set, they're filled with sensible defaults. + # + # Example: + # `- { index: 16, color: '#ff00ff' }` + # + #indexed_colors: [] + +# Bell +# +# The bell is rung every time the BEL control character is received. +#bell: + # Visual Bell Animation + # + # Animation effect for flashing the screen when the visual bell is rung. + # + # Values for `animation`: + # - Ease + # - EaseOut + # - EaseOutSine + # - EaseOutQuad + # - EaseOutCubic + # - EaseOutQuart + # - EaseOutQuint + # - EaseOutExpo + # - EaseOutCirc + # - Linear + #animation: EaseOutExpo + + # Duration of the visual bell flash in milliseconds. A `duration` of `0` will + # disable the visual bell animation. + #duration: 0 + + # Visual bell animation color. + #color: '#ffffff' + + # Bell Command + # + # This program is executed whenever the bell is rung. + # + # When set to `command: None`, no command will be executed. + # + # Example: + # command: + # program: notify-send + # args: ["Hello, World!"] + # + #command: None + +# Background opacity +# +# Window opacity as a floating point number from `0.0` to `1.0`. +# The value `0.0` is completely transparent and `1.0` is opaque. +#background_opacity: 1.0 + +#selection: + # This string contains all characters that are used as separators for + # "semantic words" in Alacritty. + #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" + + # When set to `true`, selected text will be copied to the primary clipboard. + #save_to_clipboard: false + +cursor: + # Cursor style + style: + # Cursor shape + # + # Values for `shape`: + # - ▇ Block + # - _ Underline + # - | Beam + #shape: Block + + # Cursor blinking state + # + # Values for `blinking`: + # - Never: Prevent the cursor from ever blinking + # - Off: Disable blinking by default + # - On: Enable blinking by default + # - Always: Force the cursor to always blink + blinking: On + + # Vi mode cursor style + # + # If the vi mode cursor style is `None` or not specified, it will fall back to + # the style of the active value of the normal cursor. + # + # See `cursor.style` for available options. + #vi_mode_style: None + + # Cursor blinking interval in milliseconds. + #blink_interval: 750 + + # If this is `true`, the cursor will be rendered as a hollow box when the + # window is not focused. + #unfocused_hollow: true + + # Thickness of the cursor relative to the cell width as floating point number + # from `0.0` to `1.0`. + #thickness: 0.15 + +# Live config reload (changes require restart) +#live_config_reload: true + +# Shell +# +# You can set `shell.program` to the path of your favorite shell, e.g. +# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the +# shell. +# +# Default: +# - (macOS) /bin/bash --login +# - (Linux/BSD) user login shell +# - (Windows) powershell +#shell: +# program: /bin/bash +# args: +# - --login + +# Startup directory +# +# Directory the shell is started in. If this is unset, or `None`, the working +# directory of the parent process will be used. +#working_directory: None + +# Send ESC (\x1b) before characters when alt is pressed. +#alt_send_esc: true + +#mouse: + # Click settings + # + # The `double_click` and `triple_click` settings control the time + # alacritty should wait for accepting multiple clicks as one double + # or triple click. + #double_click: { threshold: 300 } + #triple_click: { threshold: 300 } + + # If this is `true`, the cursor is temporarily hidden when typing. + #hide_when_typing: false + + #url: + # URL launcher + # + # This program is executed when clicking on a text which is recognized as a + # URL. The URL is always added to the command as the last parameter. + # + # When set to `launcher: None`, URL launching will be disabled completely. + # + # Default: + # - (macOS) open + # - (Linux/BSD) xdg-open + # - (Windows) explorer + #launcher: + # program: xdg-open + # args: [] + + # URL modifiers + # + # These are the modifiers that need to be held down for opening URLs when + # clicking on them. The available modifiers are documented in the key + # binding section. + #modifiers: None + +# Mouse bindings +# +# Mouse bindings are specified as a list of objects, much like the key +# bindings further below. +# +# To trigger mouse bindings when an application running within Alacritty +# captures the mouse, the `Shift` modifier is automatically added as a +# requirement. +# +# Each mouse binding will specify a: +# +# - `mouse`: +# +# - Middle +# - Left +# - Right +# - Numeric identifier such as `5` +# +# - `action` (see key bindings) +# +# And optionally: +# +# - `mods` (see key bindings) +#mouse_bindings: +# - { mouse: Middle, action: PasteSelection } + +# Key bindings +# +# Key bindings are specified as a list of objects. For example, this is the +# default paste binding: +# +# `- { key: V, mods: Control|Shift, action: Paste }` +# +# Each key binding will specify a: +# +# - `key`: Identifier of the key pressed +# +# - A-Z +# - F1-F24 +# - Key0-Key9 +# +# A full list with available key codes can be found here: +# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants +# +# Instead of using the name of the keys, the `key` field also supports using +# the scancode of the desired key. Scancodes have to be specified as a +# decimal number. This command will allow you to display the hex scancodes +# for certain keys: +# +# `showkey --scancodes`. +# +# Then exactly one of: +# +# - `chars`: Send a byte sequence to the running application +# +# The `chars` field writes the specified string to the terminal. This makes +# it possible to pass escape sequences. To find escape codes for bindings +# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside +# of tmux. Note that applications use terminfo to map escape sequences back +# to keys. It is therefore required to update the terminfo when changing an +# escape sequence. +# +# - `action`: Execute a predefined action +# +# - ToggleViMode +# - SearchForward +# Start searching toward the right of the search origin. +# - SearchBackward +# Start searching toward the left of the search origin. +# - Copy +# - Paste +# - IncreaseFontSize +# - DecreaseFontSize +# - ResetFontSize +# - ScrollPageUp +# - ScrollPageDown +# - ScrollHalfPageUp +# - ScrollHalfPageDown +# - ScrollLineUp +# - ScrollLineDown +# - ScrollToTop +# - ScrollToBottom +# - ClearHistory +# Remove the terminal's scrollback history. +# - Hide +# Hide the Alacritty window. +# - Minimize +# Minimize the Alacritty window. +# - Quit +# Quit Alacritty. +# - ToggleFullscreen +# - SpawnNewInstance +# Spawn a new instance of Alacritty. +# - ClearLogNotice +# Clear Alacritty's UI warning and error notice. +# - ClearSelection +# Remove the active selection. +# - ReceiveChar +# - None +# +# - Vi mode exclusive actions: +# +# - Open +# Open URLs at the cursor location with the launcher configured in +# `url.launcher`. +# - ToggleNormalSelection +# - ToggleLineSelection +# - ToggleBlockSelection +# - ToggleSemanticSelection +# Toggle semantic selection based on `selection.semantic_escape_chars`. +# +# - Vi mode exclusive cursor motion actions: +# +# - Up +# One line up. +# - Down +# One line down. +# - Left +# One character left. +# - Right +# One character right. +# - First +# First column, or beginning of the line when already at the first column. +# - Last +# Last column, or beginning of the line when already at the last column. +# - FirstOccupied +# First non-empty cell in this terminal row, or first non-empty cell of +# the line when already at the first cell of the row. +# - High +# Top of the screen. +# - Middle +# Center of the screen. +# - Low +# Bottom of the screen. +# - SemanticLeft +# Start of the previous semantically separated word. +# - SemanticRight +# Start of the next semantically separated word. +# - SemanticLeftEnd +# End of the previous semantically separated word. +# - SemanticRightEnd +# End of the next semantically separated word. +# - WordLeft +# Start of the previous whitespace separated word. +# - WordRight +# Start of the next whitespace separated word. +# - WordLeftEnd +# End of the previous whitespace separated word. +# - WordRightEnd +# End of the next whitespace separated word. +# - Bracket +# Character matching the bracket at the cursor's location. +# - SearchNext +# Beginning of the next match. +# - SearchPrevious +# Beginning of the previous match. +# - SearchStart +# Start of the match to the left of the vi mode cursor. +# - SearchEnd +# End of the match to the right of the vi mode cursor. +# +# - Search mode exclusive actions: +# - SearchFocusNext +# Move the focus to the next search match. +# - SearchFocusPrevious +# Move the focus to the previous search match. +# - SearchConfirm +# - SearchCancel +# - SearchClear +# Reset the search regex. +# - SearchDeleteWord +# Delete the last word in the search regex. +# - SearchHistoryPrevious +# Go to the previous regex in the search history. +# - SearchHistoryNext +# Go to the next regex in the search history. +# +# - macOS exclusive actions: +# - ToggleSimpleFullscreen +# Enter fullscreen without occupying another space. +# +# - Linux/BSD exclusive actions: +# +# - CopySelection +# Copy from the selection buffer. +# - PasteSelection +# Paste from the selection buffer. +# +# - `command`: Fork and execute a specified command plus arguments +# +# The `command` field must be a map containing a `program` string and an +# `args` array of command line parameter strings. For example: +# `{ program: "alacritty", args: ["-e", "vttest"] }` +# +# And optionally: +# +# - `mods`: Key modifiers to filter binding actions +# +# - Command +# - Control +# - Option +# - Super +# - Shift +# - Alt +# +# Multiple `mods` can be combined using `|` like this: +# `mods: Control|Shift`. +# Whitespace and capitalization are relevant and must match the example. +# +# - `mode`: Indicate a binding for only specific terminal reported modes +# +# This is mainly used to send applications the correct escape sequences +# when in different modes. +# +# - AppCursor +# - AppKeypad +# - Search +# - Alt +# - Vi +# +# A `~` operator can be used before a mode to apply the binding whenever +# the mode is *not* active, e.g. `~Alt`. +# +# Bindings are always filled by default, but will be replaced when a new +# binding with the same triggers is defined. To unset a default binding, it can +# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for +# a no-op if you do not wish to receive input characters for that binding. +# +# If the same trigger is assigned to multiple actions, all of them are executed +# in the order they were defined in. +#key_bindings: + #- { key: Paste, action: Paste } + #- { key: Copy, action: Copy } + #- { key: L, mods: Control, action: ClearLogNotice } + #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } + #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } + #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } + #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } + #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } + + # Vi Mode + #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } + #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } + #- { key: Escape, mode: Vi|~Search, action: ClearSelection } + #- { key: I, mode: Vi|~Search, action: ScrollToBottom } + #- { key: I, mode: Vi|~Search, action: ToggleViMode } + #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } + #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } + #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } + #- { key: G, mode: Vi|~Search, action: ScrollToTop } + #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } + #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } + #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } + #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } + #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } + #- { key: Y, mode: Vi|~Search, action: Copy } + #- { key: Y, mode: Vi|~Search, action: ClearSelection } + #- { key: Copy, mode: Vi|~Search, action: ClearSelection } + #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection } + #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } + #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } + #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } + #- { key: Return, mode: Vi|~Search, action: Open } + #- { key: K, mode: Vi|~Search, action: Up } + #- { key: J, mode: Vi|~Search, action: Down } + #- { key: H, mode: Vi|~Search, action: Left } + #- { key: L, mode: Vi|~Search, action: Right } + #- { key: Up, mode: Vi|~Search, action: Up } + #- { key: Down, mode: Vi|~Search, action: Down } + #- { key: Left, mode: Vi|~Search, action: Left } + #- { key: Right, mode: Vi|~Search, action: Right } + #- { key: Key0, mode: Vi|~Search, action: First } + #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last } + #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied } + #- { key: H, mods: Shift, mode: Vi|~Search, action: High } + #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle } + #- { key: L, mods: Shift, mode: Vi|~Search, action: Low } + #- { key: B, mode: Vi|~Search, action: SemanticLeft } + #- { key: W, mode: Vi|~Search, action: SemanticRight } + #- { key: E, mode: Vi|~Search, action: SemanticRightEnd } + #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } + #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } + #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } + #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket } + #- { key: Slash, mode: Vi|~Search, action: SearchForward } + #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward } + #- { key: N, mode: Vi|~Search, action: SearchNext } + #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } + + # Search Mode + #- { key: Return, mode: Search|Vi, action: SearchConfirm } + #- { key: Escape, mode: Search, action: SearchCancel } + #- { key: C, mods: Control, mode: Search, action: SearchCancel } + #- { key: U, mods: Control, mode: Search, action: SearchClear } + #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } + #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } + #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } + #- { key: Up, mode: Search, action: SearchHistoryPrevious } + #- { key: Down, mode: Search, action: SearchHistoryNext } + #- { key: Return, mode: Search|~Vi, action: SearchFocusNext } + #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } + + # (Windows, Linux, and BSD only) + #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } + #- { key: C, mods: Control|Shift, action: Copy } + #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward } + #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward } + #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection } + #- { key: Insert, mods: Shift, action: PasteSelection } + #- { key: Key0, mods: Control, action: ResetFontSize } + #- { key: Equals, mods: Control, action: IncreaseFontSize } + #- { key: Plus, mods: Control, action: IncreaseFontSize } + #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } + #- { key: Minus, mods: Control, action: DecreaseFontSize } + #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } + + # (Windows only) + #- { key: Return, mods: Alt, action: ToggleFullscreen } + + # (macOS only) + #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } + #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory } + #- { key: Key0, mods: Command, action: ResetFontSize } + #- { key: Equals, mods: Command, action: IncreaseFontSize } + #- { key: Plus, mods: Command, action: IncreaseFontSize } + #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } + #- { key: Minus, mods: Command, action: DecreaseFontSize } + #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } + #- { key: V, mods: Command, action: Paste } + #- { key: C, mods: Command, action: Copy } + #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection } + #- { key: H, mods: Command, action: Hide } + #- { key: M, mods: Command, action: Minimize } + #- { key: Q, mods: Command, action: Quit } + #- { key: W, mods: Command, action: Quit } + #- { key: N, mods: Command, action: SpawnNewInstance } + #- { key: F, mods: Command|Control, action: ToggleFullscreen } + #- { key: F, mods: Command, mode: ~Search, action: SearchForward } + #- { key: B, mods: Command, mode: ~Search, action: SearchBackward } + +#debug: + # Display the time it takes to redraw each frame. + #render_timer: false + + # Keep the log file after quitting Alacritty. + #persistent_logging: false + + # Log level + # + # Values for `log_level`: + # - Off + # - Error + # - Warn + # - Info + # - Debug + # - Trace + #log_level: Warn + + # Print all received window events. + #print_events: false From 1d8cc53b40973702996c7d295e63723552dc0db0 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:15:36 +0100 Subject: [PATCH 15/18] Add htop config --- .config/htop/htoprc | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .config/htop/htoprc diff --git a/.config/htop/htoprc b/.config/htop/htoprc new file mode 100644 index 0000000..47a2318 --- /dev/null +++ b/.config/htop/htoprc @@ -0,0 +1,61 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +htop_version=3.2.2 +config_reader_min_version=3 +fields=0 48 17 18 38 39 40 2 46 47 49 1 +hide_kernel_threads=0 +hide_userland_threads=0 +hide_running_in_container=0 +shadow_other_users=0 +show_thread_names=1 +show_program_path=1 +highlight_base_name=1 +highlight_deleted_exe=1 +shadow_distribution_path_prefix=0 +highlight_megabytes=0 +highlight_threads=1 +highlight_changes=0 +highlight_changes_delay_secs=5 +find_comm_in_cmdline=1 +strip_exe_from_cmdline=1 +show_merged_command=0 +header_margin=0 +screen_tabs=0 +detailed_cpu_time=0 +cpu_count_from_one=1 +show_cpu_usage=1 +show_cpu_frequency=0 +update_process_names=0 +account_guest_in_cpu_meter=0 +color_scheme=0 +enable_mouse=1 +delay=15 +hide_function_bar=0 +header_layout=two_50_50 +column_meters_0=AllCPUs Memory Swap +column_meter_modes_0=1 1 1 +column_meters_1=Tasks LoadAverage Uptime +column_meter_modes_1=2 2 2 +tree_view=1 +sort_key=46 +tree_sort_key=0 +sort_direction=-1 +tree_sort_direction=1 +tree_view_always_by_pid=0 +all_branches_collapsed=0 +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command +.sort_key=PERCENT_CPU +.tree_sort_key=PID +.tree_view=1 +.tree_view_always_by_pid=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 +screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE +.sort_key=IO_RATE +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 From b35bc9d391f1dea7ae8ab4f8c49ad9ae84cb2a92 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:23:05 +0100 Subject: [PATCH 16/18] Use lynx instead of w3m --- .mailcap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mailcap b/.mailcap index f29f032..5e40229 100644 --- a/.mailcap +++ b/.mailcap @@ -1,6 +1,6 @@ # mailcap - MIME configuration file -text/html; w3m -T text/html '%s' +text/html; lynx -dump -assume_charset=utf-8 -display_charset=utf-8 -force_html '%s'; copiousoutput text/html; w3m -T text/html -dump '%s'; copiousoutput text/*; cat; copiousoutput; edit=$VISUAL %s From 5e92d1b14ce22d1b077abb1c4f732f4b5e58716e Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:35:13 +0100 Subject: [PATCH 17/18] Update muttrc --- .muttrc | 295 +++++++++++++++++++++++++++++++++----------------------- 1 file changed, 176 insertions(+), 119 deletions(-) diff --git a/.muttrc b/.muttrc index 58d5e49..57c73de 100644 --- a/.muttrc +++ b/.muttrc @@ -1,79 +1,50 @@ -set mbox_type=Maildir -set folder="~/.mail" -set mask="!^\\.[^.]" -set record="+.Sent" -set postponed="+.Drafts" -set spoolfile="~/.mail" +set spoolfile = imaps://seshat.pomail.fr/INBOX +set imap_user = nemunaire +set imap_passive="no" +set imap_check_subscribed="yes" +set imap_list_subscribed="yes" -auto_view text/html -alternative_order text/plain text text/enriched text/html +set smtp_url = smtps://$imap_user@thot.pomail.fr +set smtp_pass = $imap_pass + +set mask="!^\\.[^.]" +folder-hook . set record="+.Sent" +set postponed="+.Drafts" # Set the desired default "from" address for both header From and envelope-from set reverse_name -set from="nemunaire@nemunai.re" -alternates "nemunaire@pomail.fr|nemu@pomail.fr|pom@pomail.fr|pompom@pomail.fr|pierreolivier@pomail.fr|pierre-olivier@pomail.fr|.+@pommail.fr|.+@mercier.pm|.+@p0m.fr|.+@nemunai.re|nemunaire@epita.fr|mercie_d@epita.fr|pierreolivier.mercier@epita.fr|pomercier@novaquark.com" +folder-hook . set from="nemunaire@nemunai.re" +alternates "nemunaire@pomail.fr|nemu@pomail.fr|pom@pomail.fr|pierreolivier@pomail.fr|pierre-olivier@pomail.fr|pierre-olivier@happydns.org|nemunaire@happydns.org|pierre-olivier.mercier@happydns.org|pierre-olivier@happydomain.org|nemunaire@happydomain.org|pierre-olivier.mercier@happydomain.org|nemunaire@epita.fr|mercie_d@epita.fr|pierreolivier.mercier@epita.fr|pierre-olivier.mercier@epita.fr|parava@pomail.fr" set realname="Pierre-Olivier Mercier" set hostname="nemunai.re" set envelope_from=yes set use_domain=no -set alias_file= ~/.mutt/aliases -set sort_alias= alias -set reverse_alias=yes -source $alias_file - -source ~/.mutt/mls - -set dsn_notify="failure,delay" - -# set up the sidebar -set sidebar_width=25 -set sidebar_visible=yes -set sidebar_sort=yes - -mailboxes ! `find ~/.mail -maxdepth 1 -type d -name ".*" -printf "+'%f' "` - -macro index c "?" "open a different folder" -macro pager c "?" "open a different folder" - -macro index C "?" "copy a message to a mailbox" -macro index M "?" "move a message to a mailbox" -macro pager C "?" "copy a message to a mailbox" -macro pager M "?" "move a message to a mailbox" -macro pager D "~/scripts/dmarc-parser.pl" "move a message to a mailbox" - -macro compose A "?" "attach message(s) to this message" - -# Include folder hooks defining Fcc -source ~/.mutt/folder-hooks - -#GPG -set fcc_clear # Keep fcc's clear of signatues and encryption. -source ~/.mutt/gpg.rc -set pgp_sign_as="0x4573CC96" - -set pgp_autosign -set pgp_replysign -set pgp_replyencrypt -set pgp_replysignencrypted -set pgp_verify_sig=yes -set pgp_strict_enc -set pgp_use_gpg_agent=yes +set mail_check_stats +#set beep_new +# character set on sent messages set send_charset="us-ascii:utf-8" +# if there is no character set given on incoming messages, it is probably windows +set assumed_charset="iso-8859-1" -# -set header_cache = ~/.mutt/cache -set header_cache_pagesize = 32768 -set maildir_header_cache_verify = no +# make sure Vim knows Mutt is a mail client and that a UTF-8 encoded message will be composed +set editor="vim -c 'set tw=72 syntax=mail ft=mail enc=utf-8'" -# locales FR pour les nom des jours et mois -set locale="fr_FR" -set date_format="%A %d %b %Y à %H:%M:%S (%Z)" -set attribution="Le %d, %n a écrit :" -set mime_forward # Forward message as MIME attachments. +# we want to see some MIME types inline, see below this code listing for explanation +auto_view text/html +alternative_order text/plain text text/enriched text/html -# Header stuff +# make default search pattern to search in To, Cc and Subject +set simple_search="~f %s | ~C %s | ~s %s" + +# threading preferences, sort by threads +set sort=threads +set strict_threads=yes +set sort_aux=date-received +#set sort_browser=date + +# do not show all headers, just a few #ignore "Authentication-Results:" #ignore "DomainKey-Signature:" #ignore "DKIM-Signature:" @@ -88,32 +59,113 @@ unignore x-mailer: x-url reply-to unignore user-agent: unignore Saved-In: +# use headercache (make sure this is a directory for better performance!) +set header_cache = ~/.mutt/cache +#set header_cache_pagesize = 32768 +#set maildir_header_cache_verify = no + +# set up the sidebar +set sidebar_divider_char='│' +set sidebar_format = '%B%?F? [%F]?%* %?N?%N?' +set sidebar_folder_indent +set sidebar_visible +set sidebar_sort_method=path +set sidebar_short_path + +# make the progress updates not that expensive, this will update the bar every 300ms +set read_inc = 1 +set time_inc = 300 + +set dsn_return=hdrs +set dsn_notify="failure,delay" + +set auto_tag + +# includes only the first attachment of the message you are replying +set include_onlyfirst +#set mime_forward # Forward message as MIME attachments. + # For better looks #set arrow_cursor #set folder_format="%t%N %-30.30f %8s" #set index_format="%4C %Z %{%b %d} %-31.31F %N (%4c) %s" -set beep_new -set menu_scroll -set smart_wrap = yes +set menu_scroll # just scroll one line instead of full page set nomarkers # don't put '+' at the beginning of wrapped lines set pager_index_lines = 7 # how large is the index window? -set sort = 'threads' -set sort_aux=date-received -#set sort_browser=date - -# My Editor -set editor="vim '+set tw=72'" - -set config_charset=utf8 -set charset="utf-8" - set pager_stop +set date_format="%A %d %b %Y à %H:%M:%S (%Z)" +set attribution="Le %d, %n a écrit :" + +# Aliases +set alias_file= ~/.mutt/aliases +set sort_alias= alias +set reverse_alias=yes +source $alias_file + # ===================================================================== -# Normal colors +# Custom bindings # ===================================================================== -color normal white black -color message white black + +macro index,pager c "?" "open a different folder" +macro index,pager C "?" "copy a message to a mailbox" +macro index,pager M "?" "move a message to a mailbox" +macro pager D "~/scripts/dmarc-parser.pl" "parse attached DMARC report" +macro pager \ei "~/.mutt/readical.py" "parse attached iCal" +macro pager T "~/scripts/tlsrpt-report-display.pl" "parse attached SMTP-TLS report" +#macro pager V "~/workspace/peret/check.py --students-list /home/nemunaire/workspace/peret/SRS2023.csv --real-send --review-before-send --skip-max-submission --skip-public-key --submissions '/home/nemunaire/workspace/virli/rendus/project3'" "rerun peret checker script for VIRLI" +macro pager V "~/workspace/peret/check.py --students-list /home/nemunaire/workspace/peret/SRS2023.csv --real-send --review-before-send --skip-max-submission --skip-public-key --submissions '/home/nemunaire/workspace/adlin/rendus/TP2'" "rerun peret checker script for ADLIN" +#macro pager V "~/workspace/peret/check.py --students-list /home/nemunaire/workspace/peret/SRS2023.csv --real-send --review-before-send --skip-max-submission --sign" "rerun peret checker script for VIRLI" +macro pager \eV "~/workspace/peret/check.py --students-list /home/nemunaire/workspace/peret/SRS2023.csv --real-send --review-before-send --sign" "rerun peret checker script for signcheck" + +macro compose A "?" "attach message(s) to this message" + +bind index ' ' tag-entry +macro index,pager \eL 'imaps://seshat.pomail.fr/Lost' +#macro index,pager \eV '=.Epita.SRS.virli/' +bind index,pager \CP sidebar-page-up +#bind index,pager \CI sidebar-page-down +bind index,pager \CO sidebar-open +bind index,pager i sidebar-next +macro index,pager I '' +bind index,pager o sidebar-open +bind index,pager p sidebar-prev +macro index,pager P '' +bind index,pager B bounce-message + +# b toggles sidebar visibility +bind index,pager b sidebar-toggle-visible + +# Remap bounce-message function to "B" +bind index B bounce-message +bind index,pager \e next-unread-mailbox + + +# ===================================================================== +# PGP +# ===================================================================== + +set crypt_use_gpgme = yes +# you can set this to hide gpg's verification output and only rely on Mutt's status flag +#set crypt_display_signature = no +# enable signing of emails by default +folder-hook . set pgp_autosign +#set pgp_replysign +#set pgp_replyencrypt +#set pgp_replysignencrypted +#set pgp_use_gpg_agent = yes +folder-hook . set pgp_sign_as = 0x842807A84573CC96 + +# Keep fcc's clear of signatues and encryption. +set fcc_clear + + +# ===================================================================== +# Colors +# ===================================================================== + +color normal white default +color message white default color signature magenta default color hdrdefault cyan default color attachment yellow default @@ -125,17 +177,14 @@ color tree brightwhite default # thread tree in the index menu color body brightblue default "(git|ssh|ftp|http)s?://[^ ]+" # point out URLs color body brightblue default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses - -# ===================================================================== # Index -# ===================================================================== #color index color248 default "~A" # Unread messages in yellow -color index cyan default "~t $from" +color index cyan default "~t nemunaire@nemunai.re" color index brightyellow default "~N|~O" -color index brightcyan default "~t $from (~N|~O)" +color index brightcyan default "~t nemunaire@nemunai.re (~N|~O)" # Messages already replied to in green color index green default "~Q" @@ -147,10 +196,14 @@ color index color237 default "~D" color index brightred default "~F" color index magenta default "~T" +# Compose +color compose header yellow default +color compose security_none red default +color compose security_encrypt magenta default +color compose security_sign cyan default +color compose security_both green default -# ===================================================================== -# Header -# ===================================================================== +# Headers # Color information about the sender color header brightcyan default "From: " @@ -170,9 +223,7 @@ color header yellow default "Authentication-Results:.*dmarc=quarantine" color header red default "Authentication-Results:.*dmarc=reject" -# ===================================================================== # Body -# ===================================================================== # Color the first levels of quoted text color quoted green default @@ -181,46 +232,52 @@ color quoted2 green default color quoted3 cyan default # Sidebar colors +color sidebar_divider cyan default color sidebar_new yellow default color sidebar_flagged brightred default -bind index ' ' tag-entry -macro index,pager \eL '=.Lost/' -#macro index,pager \eV '=.Epita.SRS.virli/' -bind index,pager \CP sidebar-scroll-up -#bind index,pager \CI sidebar-scroll-down -bind index,pager \CO sidebar-open -bind index,pager i sidebar-next -macro index,pager I '' -bind index,pager o sidebar-open -bind index,pager p sidebar-prev -macro index,pager P '' -bind index,pager B bounce-message - -# b toggles sidebar visibility -macro index,pager b 'toggle sidebar_visible' - -# Remap bounce-message function to "B" -bind index B bounce-message -bind index,pager \e next-unread-mailbox - -# GnuPG output -# +# GnuPG output ######################################################## # Make if very obvious there is a bad signature! -color body black red "^gpg: BAD signature .*$" -color body black red "^gpg: MAUVAISE signature .*$" +color body default red "^gpg: BAD signature .*$" +color body default red "^gpg: MAUVAISE signature .*$" # Tag a good signature -color body brightgreen black "^gpg: Good signature .*$" -color body brightgreen black "^gpg: Bonne signature .*$" +color body brightgreen default "^gpg: Good signature .*$" +color body brightgreen default "^gpg: Bonne signature .*$" +color body green default "^gpg: Good signature .*unknown]" +color body green default "^gpg: Bonne signature .*inconnu]" # Inform the signature can't be verified -color body brightred black "^gpg: Can't check signature: public key not found" -color body brightred black "^gpg: Impossible de v.*" -color body brightred black "^gpg: WARNING: .*!" -color body brightred black "^gpg: ATTENTION: .*!" -color body brightred black "^gpg: some signal caught ... exiting" +color body brightred default "^gpg: Can't check signature: public key not found" +color body brightred default "^gpg: Impossible de v.*" +color body brightred default "^gpg: WARNING: .*" +color body brightred default "^gpg: Attention: .*" +color body red default "^gpg: .*ette clef n'est pas certifiée avec une signature de confiance." +color body red default "^gpg: .*ien n'indique que la signature appartient à son propriétaire." +color body brightred default "^gpg: some signal caught ... exiting" #Messages color error brightwhite red # error messages color message brightblack green # status messages + + +# ===================================================================== +# Hooks +# ===================================================================== + +source ~/.mutt/folder-hooks +folder-hook ".Appart" set from="pierre-olivier@pomail.fr" +folder-hook ".Appart" unset pgp_autosign +folder-hook ".Appart" unset pgp_sign_as + +folder-hook ".Business.happyDomain" set from="nemunaire@happydomain.org" +folder-hook ".Business.happyDomain" unset pgp_autosign +folder-hook ".Business.happyDomain" unset pgp_sign_as + +folder-hook ".Epita" set from="pierre-olivier.mercier@epita.fr" +folder-hook ".Epita" unset pgp_autosign +folder-hook ".Epita" unset pgp_sign_as + +folder-hook ".Epita.SRS" set from="nemunaire@nemunai.re" +folder-hook ".Epita.SRS" set pgp_autosign +folder-hook ".Epita.SRS" set pgp_sign_as From 61544ec9693178b364bc0f8cec5934f77afd9d45 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 5 Mar 2024 13:37:17 +0100 Subject: [PATCH 18/18] Update rdesktop config --- .rdesktop/keymaps/us-intl | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) mode change 120000 => 100644 .rdesktop/keymaps/us-intl diff --git a/.rdesktop/keymaps/us-intl b/.rdesktop/keymaps/us-intl deleted file mode 120000 index 8544fc8..0000000 --- a/.rdesktop/keymaps/us-intl +++ /dev/null @@ -1 +0,0 @@ -en-intl \ No newline at end of file diff --git a/.rdesktop/keymaps/us-intl b/.rdesktop/keymaps/us-intl new file mode 100644 index 0000000..3126a21 --- /dev/null +++ b/.rdesktop/keymaps/us-intl @@ -0,0 +1,35 @@ +# generated from XKB map us +include common +map 0x20409 +exclam 0x02 shift +at 0x03 shift +numbersign 0x04 shift +dollar 0x05 shift +percent 0x06 shift +asciicircum 0x07 shift +ampersand 0x08 shift +asterisk 0x09 shift +parenleft 0x0a shift +parenright 0x0b shift +minus 0x0c +underscore 0x0c shift +equal 0x0d +plus 0x0d shift +bracketleft 0x1a +braceleft 0x1a shift +bracketright 0x1b +braceright 0x1b shift +semicolon 0x27 +colon 0x27 shift +apostrophe 0x28 +quotedbl 0x28 shift +grave 0x29 +asciitilde 0x29 shift +backslash 0x2b +bar 0x2b shift +comma 0x33 +less 0x33 shift +period 0x34 +greater 0x34 shift +slash 0x35 +question 0x35 shift