Compare commits

...

No commits in common. 'main' and 'gentoo' have entirely different histories.
main ... gentoo

  1. 58
      .config/.old/fish/bobthefish.config
  2. 1
      .config/.old/fish/completions/fisher.fish
  3. 30
      .config/.old/fish/config.fish
  4. 50
      .config/.old/fish/fish_variables
  5. 1
      .config/.old/fish/fishfile
  6. 45
      .config/.old/fish/functions/fish_prompt.fish
  7. 86
      .config/.old/fish/spacefish.config
  8. 205
      .config/.old/i3/config
  9. 765
      .config/.old/neofetch/config.conf
  10. 41
      .config/.old/nvim_0.4.4/after/ftplugin/groff.vim
  11. 11
      .config/.old/nvim_0.4.4/after/ftplugin/python.vim
  12. 28
      .config/.old/nvim_0.4.4/after/ftplugin/tex.vim
  13. 8
      .config/.old/nvim_0.4.4/after/ftplugin/text.vim
  14. 6
      .config/.old/nvim_0.4.4/after/ftplugin/verilog.vim
  15. 181
      .config/.old/nvim_0.4.4/init.vim
  16. 10
      .config/.old/nvim_0.4.4/spell/fr.utf-8.add
  17. 133
      .config/.old/nvim_0.4.4/statusline.vim
  18. 10
      .config/.old/nvim_0.4.4/templates/c.template
  19. 17
      .config/.old/nvim_0.4.4/templates/cpp.template
  20. 15
      .config/.old/nvim_0.4.4/templates/h.template
  21. 22
      .config/.old/nvim_0.4.4/templates/hpp.template
  22. 14
      .config/.old/nvim_0.4.4/templates/main.c.template
  23. 14
      .config/.old/nvim_0.4.4/templates/main.cpp.template
  24. 28
      .config/.old/nvim_0.4.4/templates/makefile.template
  25. 11
      .config/.old/nvim_0.4.4/templates/py.template
  26. 12
      .config/.old/nvim_0.4.4/templates/sh.template
  27. 4
      .config/.old/nvim_0.4.4/templates/vim.template
  28. 293
      .config/.old/polybar/config
  29. 12
      .config/.old/polybar/launch.sh
  30. 62
      .config/.old/ranger/commands.py
  31. 1836
      .config/.old/ranger/commands_full.py
  32. 725
      .config/.old/ranger/rc.conf
  33. 256
      .config/.old/ranger/rifle.conf
  34. 216
      .config/.old/ranger/scope.sh
  35. 102
      .config/.old/termite/config
  36. 574
      .config/.old/vim/colors/polyjuice.vim
  37. 273
      .config/.old/vim/polyjuice.colortemplate
  38. 128
      .config/.old/vim/statusline.vim
  39. 203
      .config/.old/vim/vimrc
  40. 39
      .config/X11/xcolors_dark
  41. 39
      .config/X11/xcolors_light
  42. 31
      .config/X11/xinitrc
  43. 23
      .config/X11/xprofile
  44. 13
      .config/X11/xresources
  45. 25
      .config/aliasrc
  46. 461
      .config/dunst/dunstrc
  47. 21
      .config/git/config
  48. 5
      .config/gnupg/gpg-agent.conf
  49. 26
      .config/htop/htoprc
  50. 366
      .config/irssi/config.template
  51. 104
      .config/mbsync/config
  52. 18
      .config/mimeapps.list
  53. 29
      .config/mpd/mpd.conf
  54. 44
      .config/msmtp/config
  55. 45
      .config/mutt/accounts/1-david.julien@posteo.net.muttrc
  56. 48
      .config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc
  57. 58
      .config/mutt/accounts/3-david.julien@mailo.com.muttrc
  58. 45
      .config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc
  59. 40
      .config/mutt/accounts/account_template.muttrc
  60. 4
      .config/mutt/accounts/ens.signature
  61. 2
      .config/mutt/accounts/mailo.signature
  62. 2
      .config/mutt/accounts/posteo.signature
  63. 9
      .config/mutt/mailcap
  64. 7
      .config/mutt/muttrc
  65. 5
      .config/mutt/muttrc.template
  66. 165
      .config/mutt/neomutt.muttrc
  67. 187
      .config/ncmpc/config
  68. 563
      .config/ncmpcpp/bindings
  69. 601
      .config/ncmpcpp/config
  70. 4
      .config/npm/npmrc
  71. 51
      .config/nvim/after/ftplugin/c.lua
  72. 9
      .config/nvim/after/ftplugin/lua.lua
  73. 130
      .config/nvim/after/ftplugin/tex.lua
  74. 14
      .config/nvim/after/ftplugin/verilog.lua
  75. 11
      .config/nvim/init.lua
  76. 13
      .config/nvim/lua/colorscheme.lua
  77. 21
      .config/nvim/lua/globals.lua
  78. 20
      .config/nvim/lua/lsp/c.lua
  79. 80
      .config/nvim/lua/lsp/init.lua
  80. 42
      .config/nvim/lua/lsp/lua.lua
  81. 8
      .config/nvim/lua/lsp/python.lua
  82. 13
      .config/nvim/lua/lsp/tex.lua
  83. 32
      .config/nvim/lua/maps.lua
  84. 83
      .config/nvim/lua/plugin/cmp.lua
  85. 57
      .config/nvim/lua/plugin/comment.lua
  86. 47
      .config/nvim/lua/plugin/lsp_installer.lua
  87. 354
      .config/nvim/lua/plugin/luasnip.lua
  88. 111
      .config/nvim/lua/plugin/packer.lua
  89. 15
      .config/nvim/lua/plugin/treesitter.lua
  90. 64
      .config/nvim/lua/settings.lua
  91. 209
      .config/nvim/lua/statusline.lua
  92. 56
      .config/nvim/lua/utils.lua
  93. 25
      .config/portage/make.conf
  94. 4
      .config/portage/package.accept_keywords
  95. 16
      .config/portage/package.use
  96. 1
      .config/portage/package.use.mask
  97. 9
      .config/redshift/redshift.conf
  98. 5
      .config/root/etc_conf.d_net
  99. 9
      .config/root/etc_pamd_system-local-login
  100. 2
      .config/root/etc_udev_rules.d_backlight.rules
  101. Some files were not shown because too many files have changed in this diff Show More

58
.config/.old/fish/bobthefish.config

@ -0,0 +1,58 @@
# _____ _
# _____ ___ |___ |__| |__ Swy7ch's fish shell config file
# / __\ \ /\ / / | | | / / __| '_ \
# \__ \\ V V /| |_| |/ / (__| | | |
# |___/ \_/\_/ \__, /_/ \___|_| |_|
# |___/
# Start X at login
if status is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty
end
end
# True gruvbox colors in vim
#bash $HOME/.vim/plugins/gruvbox/gruvbox_256palette.sh
# User configuration
function fish_greeting
set_color $fish_color_autosuggestion
uname -msr
command -s uptime >/dev/null
and uptime
set_color normal
end
# Set less colors (-> manpages)
set -xU LESS_TERMCAP_md (printf "\e[01;36m")
set -xU LESS_TERMCAP_me (printf "\e[0m")
set -xU LESS_TERMCAP_se (printf "\e[0m")
set -xU LESS_TERMCAP_so (printf "\e[01;44;33em")
set -xU LESS_TERMCAP_ue (printf "\e[0m")
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
#################################################
############### PROMPT CONFIG ################
#################################################
# change colorscheme
set -g theme_color_scheme gruvbox
# show the name of the process in polybar
set -g theme_title_display_process yes
# set the right date formate
set -g theme_date_format "+%X"
# to use nerd fonts
# set -g theme_nerd_fonts yes
# do not alert untracked files in git
# set -g theme_display_git_untracked no
# changes to git glyphs
set -g git_plus_glyph \uF4A7 '' # PLUS
set -g git_minus_glyph \uF48B '' # MINUS

1
.config/.old/fish/completions/fisher.fish

@ -0,0 +1 @@
fisher complete

30
.config/.old/fish/config.fish

@ -0,0 +1,30 @@
# Swy7ch' config file for the FiSHell
# Start X at login
if status is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty
end
end
# True gruvbox colors in vim
#bash $HOME/.vim/plugins/gruvbox/gruvbox_256palette.sh
# User configuration
function fish_greeting
set_color $fish_color_autosuggestion
uname -msr
command -s uptime >/dev/null
and uptime
set_color normal
end
# Set less colors (-> manpages)
set -xU LESS_TERMCAP_md (printf "\e[01;36m")
set -xU LESS_TERMCAP_me (printf "\e[0m")
set -xU LESS_TERMCAP_se (printf "\e[0m")
set -xU LESS_TERMCAP_so (printf "\e[01;44;33em")
set -xU LESS_TERMCAP_ue (printf "\e[0m")
set -xU LESS_TERMCAP_us (printf "\e[01;32m")

50
.config/.old/fish/fish_variables

@ -0,0 +1,50 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR --export LESS_TERMCAP_md:\x1b\x5b01\x3b36m
SETUVAR --export LESS_TERMCAP_me:\x1b\x5b0m
SETUVAR --export LESS_TERMCAP_se:\x1b\x5b0m
SETUVAR --export LESS_TERMCAP_so:\x1b\x5b01\x3b44\x3b33em
SETUVAR --export LESS_TERMCAP_ue:\x1b\x5b0m
SETUVAR --export LESS_TERMCAP_us:\x1b\x5b01\x3b32m
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR _fish_abbr_backup:sudo\x20/usr/local/bin/snapbackup\x2esh
SETUVAR _fish_abbr_gu:git\x20fetch\x20upstream\x20\x26\x26\x20git\x20merge\x20upstream/master
SETUVAR _fish_abbr_hs:htop\x20\x2du\x20swytch
SETUVAR _fish_abbr_nf:neofetch
SETUVAR _fish_abbr_pc:sudo\x20pacman\x20\x2dRsn\x20\x28pacman\x20\x2dQdtq\x29
SETUVAR _fish_abbr_pd:expac\x20\x2d\x2dtimefmt\x3d\x27\x25Y\x2d\x25m\x2d\x25d\x20\x25T\x27\x20\x27\x25l\x5ct\x25n\x27\x20\x7c\x20sort\x20\x7c\x20tail\x20\x2dn\x2020
SETUVAR _fish_abbr_rbup:sudo\x20rsync\x20\x2daAXv\x20\x2d\x2dexclude\x3d\x7b\x22/dev/\x2a\x22\x2c\x22/proc/\x2a\x22\x2c\x22/sys/\x2a\x22\x2c\x22/tmp/\x2a\x22\x2c\x22/run/\x2a\x22\x2c\x22/mnt/\x2a\x22\x2c\x22/media/\x2a\x22\x2c\x22/lost\x2bfound\x22\x2c\x22home\x22\x7d\x20/\x20/mnt/backup/root/
SETUVAR _fish_abbr_sdn:shutdown\x20now
SETUVAR _fish_abbr_um:unimatrix\x20\x2da\x20\x2df\x20\x2dc\x3dcyan\x20\x2ds\x3d95
SETUVAR _fish_abbr_untar:tar\x20zxvf
SETUVAR _fish_abbr_yayu:yay\x20\x2dSyu
SETUVAR fish_color_autosuggestion:969896
SETUVAR fish_color_cancel:normal
SETUVAR fish_color_command:afd75f
SETUVAR fish_color_comment:f0c674
SETUVAR fish_color_cwd:008000
SETUVAR fish_color_cwd_root:800000
SETUVAR fish_color_end:b294bb
SETUVAR fish_color_error:cc6666
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:normal
SETUVAR fish_color_host:normal
SETUVAR fish_color_match:normal
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:f0c674
SETUVAR fish_color_quote:b294bb
SETUVAR fish_color_redirection:8abeb7
SETUVAR fish_color_search_match:ffff00
SETUVAR fish_color_selection:c0c0c0
SETUVAR fish_color_status:red
SETUVAR fish_color_user:00ff00
SETUVAR fish_color_valid_path:normal
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan

1
.config/.old/fish/fishfile

@ -0,0 +1 @@

45
.config/.old/fish/functions/fish_prompt.fish

@ -0,0 +1,45 @@
# Options
#set __fish_git_prompt_showupstream "informative"
#set __fish_git_prompt_showdirtystate 1
#set __fish_git_prompt_showstashstate 1
#set __fish_git_prompt_showuntrackedfiles 1
set __fish_git_prompt_showcolorhints
set __fish_git_prompt_show_informative_status
# Colors
set green (set_color green)
set magenta (set_color magenta)
set normal (set_color normal)
set red (set_color red)
set yellow (set_color yellow)
set __fish_git_prompt_color_branch magenta --bold
set __fish_git_prompt_color_dirtystate white --bold
set __fish_git_prompt_color_stashstate magenta
set __fish_git_prompt_color_invalidstate red
set __fish_git_prompt_color_merging yellow
set __fish_git_prompt_color_stagedstate yellow
set __fish_git_prompt_color_upstream yellow --bold
# Icons
set __fish_git_prompt_char_cleanstate ' '
set __fish_git_prompt_char_invalidstate ' '
set __fish_git_prompt_char_dirtystate ' !'
set __fish_git_prompt_char_stagedstate ' '
set __fish_git_prompt_char_stashstate ' $'
set __fish_git_prompt_char_stateseparator ' |'
set __fish_git_prompt_char_untrackedfiles ' ?'
set __fish_git_prompt_char_upstream_ahead ' '
set __fish_git_prompt_char_upstream_behind ' '
set __fish_git_prompt_char_upstream_diverged ' 祈'
function fish_prompt
set last_status $status
set_color cyan --bold
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
set_color normal
end

86
.config/.old/fish/spacefish.config

@ -0,0 +1,86 @@
# David JULIEN - GitLab@Swy7ch
# _____ _
# _____ ___ |___ |__| |__
# / __\ \ /\ / / | | | / / __| '_ \
# \__ \\ V V /| |_| |/ / (__| | | |
# |___/ \_/\_/ \__, /_/ \___|_| |_|
# |___/
# Start X at login
if status is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty
end
end
# True gruvbox colors in vim
#bash $HOME/.vim/plugins/gruvbox/gruvbox_256palette.sh
# User configuration
function fish_greeting
set_color $fish_color_autosuggestion
uname -msr
command -s uptime >/dev/null
and uptime
set_color normal
end
# Set less colors (-> manpages)
set -xU LESS_TERMCAP_md (printf "\e[01;36m")
set -xU LESS_TERMCAP_me (printf "\e[0m")
set -xU LESS_TERMCAP_se (printf "\e[0m")
set -xU LESS_TERMCAP_so (printf "\e[01;44;33em")
set -xU LESS_TERMCAP_ue (printf "\e[0m")
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
# Set environment variables (user-wide)
export TERMINAL=st
#################################################
############### PROMPT CONFIG ################
#################################################
# CHAR
set SPACEFISH_CHAR_SYMBOL ""
# TIME
set SPACEFISH_TIME_SHOW false
#set SPACEFISH_TIME_COLOR white
set SPACEFISH_TIME_SUFFIX " > "
# USER
set SPACEFISH_USER_SHOW never
set SPACEFISH_USER_PREFIX"" # remove `with` before username
set SPACEFISH_USER_COLOR yellow
# DIR
set SPACEFISH_DIR_TRUNC 0
set SPACEFISH_DIR_PREFIX ""
# HOST
# Result will look like this:
# username@:(hostname)
set SPACEFISH_HOST_PREFIX "@["
set SPACEFISH_HOST_SUFFIX "]"
set SPACEFISH_HOST_SHOW never
# GIT
# Get spaces from `[...]`
set SPACEFISH_GIT_SYMBOL " "
set SPACEFISH_GIT_STATUS_DELETED ""
set SPACEFISH_GIT_STATUS_AHEAD ""
set SPACEFISH_GIT_STATUS_BEHIND ""
set SPACEFISH_GIT_TRUNC 3
# JOBS
set SPACEFISH_JOBS_SYMBOL ""

205
.config/.old/i3/config

@ -0,0 +1,205 @@
# Swy7ch' config file for i3
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $super Mod4
set $alt Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango: FuraCode Nerd Font Mono 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# Use Mouse+$super to drag floating windows to their wanted position
floating_modifier $super
# Execute at launch
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec_always --no-startup-id feh --bg-fill $HOME/.wallpaper.png
exec --no-startup-id compton --config $HOME/.config/compton/compton.conf
exec --no-startup-id xss-lock -- i3lock -n -i $HOME/.lockscreen.png
exec --no-startup-id redshift
exec --no-startup-id pamixer --set-volume 40
exec --no-startup-id setxkbmap 'fr(oss)'
# Trackpad settings
exec --no-startup-id xinput set-prop 13 'libinput Tapping Enabled' 1
exec --no-startup-id xinput set-prop 13 'libinput Natural Scrolling En abled' 1
# exec_always xinput --no-startup-id set-prop 13 'libinput Disable While Typing Enabled' 1
# Mouse acceleration
exec --no-startup-id xinput set-prop 13 'libinput Accel Speed' 0.4
# Common app launchers
bindsym $super+Return exec st;focus
bindsym $super+Shift+Return workspace 1;exec st;focus
bindsym $super+Shift+i workspace 1;exec st -e gotop;focus
bindsym $super+Shift+f workspace 1;exec st -e ranger;focus
bindsym $super+Shift+w exec qutebrowser;workspace 2; focus
bindsym $super+$alt+w exec firefox-beta;workspace 2;focus
bindsym $super+Shift+m workspace 2;exec st -e neomutt;focus
bindsym $super+Shift+n exec firefox-beta -private-window;workspace 2;focus
bindsym $super+Shift+c exec whatsie;workspace 4;focus
bindsym $super+Shift+p exec pavucontrol;workspace 5;focus
bindsym $super+Shift+s exec spotify;workspace 5; focus
# Control the audio
bindsym F3 exec pamixer --increase 7
bindsym F2 exec pamixer --decrease 7
bindsym F1 exec pamixer --toggle-mute
# Control display backlight
bindsym F6 exec xbacklight -inc 5
bindsym F5 exec xbacklight -dec 5
# kill focused window
bindsym $super+w kill
# start dmenu (a program launcher)
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-supere -columns 3 -font 'FuraCode Nerd Font Mono 12' -theme purple
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $super+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $super+h focus left
bindsym $super+j focus down
bindsym $super+k focus up
bindsym $super+l focus right
# move focused window
bindsym $super+Shift+h move left
bindsym $super+Shift+j move down
bindsym $super+Shift+k move up
bindsym $super+Shift+l move right
# split in horizontal orientation
bindsym $super+c split h
# split in vertical orientation
bindsym $super+v split v
# enter fullscreen supere for the focused container
bindsym $super+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $super+s layout stacking
bindsym $super+z layout tabbed
bindsym $super+e layout toggle split
# toggle tiling / floating
bindsym $super+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $super+space focus mode_toggle
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $super+1 workspace $ws1
bindsym $super+2 workspace $ws2
bindsym $super+3 workspace $ws3
bindsym $super+4 workspace $ws4
bindsym $super+5 workspace $ws5
bindsym $super+6 workspace $ws6
bindsym $super+7 workspace $ws7
bindsym $super+8 workspace $ws8
bindsym $super+9 workspace $ws9
bindsym $super+0 workspace $ws10
# move focused container to workspace
bindsym $super+Shift+1 move container to workspace $ws1
bindsym $super+Shift+2 move container to workspace $ws2
bindsym $super+Shift+3 move container to workspace $ws3
bindsym $super+Shift+4 move container to workspace $ws4
bindsym $super+Shift+5 move container to workspace $ws5
bindsym $super+Shift+6 move container to workspace $ws6
bindsym $super+Shift+7 move container to workspace $ws7
bindsym $super+Shift+8 move container to workspace $ws8
bindsym $super+Shift+9 move container to workspace $ws9
bindsym $super+Shift+0 move container to workspace $ws10
# reload the configuration file
bindsym $super+Control+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $super+q exec "i3-nagbar -t warning -m 'Do you want to exit i3?' -B 'Yes, exit i3' 'i3-msg exit'"
# lock the screen
bindsym $super+Control+l exec i3lock -n -i $HOME/Images/red_rocks.png
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize supere
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym m resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $super+r
bindsym Return supere "default"
bindsym Escape supere "default"
bindsym $super+r supere "default"
}
bindsym $super+r mode "resize"
# window rules, you can find the window class using xprop
for_window [class=".*"] border pixel 3
assign [class="Firefox Beta|Qutebrowser"] 2
assign [class="Inkscape"] 3
assign [class="Transmission"] 4
assign [class="Pavucontrol|Spotify|mpv"] 5
# colour of border, background, text, indicator, and child_border
client.focused #bf616a #2f343f #d8dee8 #b16286 #83a598
client.focused_inactive #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.unfocused #2f343f #2f343f #d8dee8 #2f343f #427b58
client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.background #2f343f
# Gaps
gaps inner 5
gaps outer 5

765
.config/.old/neofetch/config.conf

@ -0,0 +1,765 @@
# Swy7ch' config file for neofetch
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
prin
info title
info underline
info "OS" distro
#info "Host" model
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
#info "Resolution" resolution
#info "DE" de
info "WM" wm
info "WM Theme" wm_theme
# info "Theme" theme
# info "Icons" icons
info "Terminal" term
info "Terminal Font" term_font
#info "CPU" cpu
#info "GPU" gpu
info "Memory" memory
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# [[ $player ]] && prin "Music Player" "$player"
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
info cols
}
# Kernel
# Shorten the output of the kernel function.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --kernel_shorthand
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
#
# Example:
# on: '4.8.9-1-ARCH'
# off: 'Linux 4.8.9-1-ARCH'
kernel_shorthand="off"
# Distro
# Shorten the output of the distro function
#
# Default: 'off'
# Values: 'on', 'off', 'tiny'
# Flag: --distro_shorthand
# Supports: Everything except Windows and Haiku
distro_shorthand="off"
# Show/Hide OS Architecture.
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --os_arch
#
# Example:
# on: 'Arch Linux x86_64'
# off: 'Arch Linux'
os_arch="on"
# Uptime
# Shorten the output of the uptime function
#
# Default: 'on'
# Values: 'on', 'off', 'tiny'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# off: '2 days, 10 hours, 3 minutes'
# tiny: '2d 10h 3m'
uptime_shorthand="on"
# Memory
# Show memory pecentage in output.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --memory_percent
#
# Example:
# on: '1801MiB / 7881MiB (22%)'
# off: '1801MiB / 7881MiB'
memory_percent="off"
# Packages
# Show/Hide Package Manager names.
#
# Default: 'tiny'
# Values: 'on', 'tiny' 'off'
# Flag: --package_managers
#
# Example:
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
# tiny: '908 (pacman, flatpak, snap)'
# off: '908'
package_managers="on"
# Shell
# Show the path to $SHELL
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --shell_path
#
# Example:
# on: '/bin/bash'
# off: 'bash'
shell_path="on"
# Show $SHELL version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --shell_version
#
# Example:
# on: 'bash 4.4.5'
# off: 'bash'
shell_version="on"
# CPU
# CPU speed type
#
# Default: 'bios_limit'
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
# Flag: --speed_type
# Supports: Linux with 'cpufreq'
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
speed_type="bios_limit"
# CPU speed shorthand
#
# Default: 'off'
# Values: 'on', 'off'.
# Flag: --speed_shorthand
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
#
# Example:
# on: 'i7-6500U (4) @ 3.1GHz'
# off: 'i7-6500U (4) @ 3.100GHz'
speed_shorthand="off"
# Enable/Disable CPU brand in output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_brand
#
# Example:
# on: 'Intel i7-6500U'
# off: 'i7-6500U (4)'
cpu_brand="on"
# CPU Speed
# Hide/Show CPU speed.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_speed
#
# Example:
# on: 'Intel i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4)'
cpu_speed="on"
# CPU Cores
# Display CPU cores in output
#
# Default: 'logical'
# Values: 'logical', 'physical', 'off'
# Flag: --cpu_cores
# Support: 'physical' doesn't work on BSD.
#
# Example:
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
# off: 'Intel i7-6500U @ 3.1GHz'
cpu_cores="logical"
# CPU Temperature
# Hide/Show CPU temperature.
# Note the temperature is added to the regular CPU function.
#
# Default: 'off'
# Values: 'C', 'F', 'off'
# Flag: --cpu_temp
# Supports: Linux, BSD
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
# coretemp kernel module. This only supports newer Intel processors.
#
# Example:
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
# off: 'Intel i7-6500U (4) @ 3.1GHz'
cpu_temp="off"
# GPU
# Enable/Disable GPU Brand
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gpu_brand
#
# Example:
# on: 'AMD HD 7950'
# off: 'HD 7950'
gpu_brand="on"
# Which GPU to display
#
# Default: 'all'
# Values: 'all', 'dedicated', 'integrated'
# Flag: --gpu_type
# Supports: Linux
#
# Example:
# all:
# GPU1: AMD HD 7950
# GPU2: Intel Integrated Graphics
#
# dedicated:
# GPU1: AMD HD 7950
#
# integrated:
# GPU1: Intel Integrated Graphics
gpu_type="all"
# Resolution
# Display refresh rate next to each monitor
# Default: 'off'
# Values: 'on', 'off'
# Flag: --refresh_rate
# Supports: Doesn't work on Windows.
#
# Example:
# on: '1920x1080 @ 60Hz'
# off: '1920x1080'
refresh_rate="on"
# Gtk Theme / Icons / Font
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --gtk_shorthand
#
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
gtk_shorthand="off"
# Enable/Disable gtk2 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk2
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Adwaita [GTK3]'
gtk2="on"
# Enable/Disable gtk3 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk3
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Numix [GTK2]'
gtk3="on"
# IP Address
# Website to ping for the public IP
#
# Default: 'http://ident.me'
# Values: 'url'
# Flag: --ip_host
public_ip_host="http://ident.me"
# Public IP timeout.
#
# Default: '2'
# Values: 'int'
# Flag: --ip_timeout
public_ip_timeout=2
# Disk
# Which disks to display.
# The values can be any /dev/sdXX, mount point or directory.
# NOTE: By default we only show the disk info for '/'.
#
# Default: '/'
# Values: '/', '/dev/sdXX', '/path/to/drive'.
# Flag: --disk_show
#
# Example:
# disk_show=('/' '/dev/sdb1'):
# 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
#
# disk_show=('/'):
# 'Disk (/): 74G / 118G (66%)'
#
disk_show=('/')
# Disk subtitle.
# What to append to the Disk subtitle.
#
# Default: 'mount'
# Values: 'mount', 'name', 'dir'
# Flag: --disk_subtitle
#
# Example:
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
#
# mount: 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
#
# dir: 'Disk (/): 74G / 118G (66%)'
# 'Disk (Local Disk): 74G / 118G (66%)'
# 'Disk (Videos): 74G / 118G (66%)'
disk_subtitle="mount"
# Song
# Manually specify a music player.
#
# Default: 'auto'
# Values: 'auto', 'player-name'
# Flag: --music_player
#
# Available values for 'player-name':
#
# amarok
# audacious
# banshee
# bluemindo
# clementine
# cmus
# deadbeef
# deepin-music
# dragon
# elisa
# exaile
# gnome-music
# gmusicbrowser
# guayadeque
# iTunes
# juk
# lollypop
# mocp
# mopidy
# mpd
# netease-cloud-music
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# sayonara
# smplayer
# spotify
# tomahawk
# vlc
# xmms2d
# yarock
music_player="auto"
# Format to display song information.
#
# Default: '%artist% - %album% - %title%'
# Values: '%artist%', '%album%', '%title%'
# Flag: --song_format
#
# Example:
# default: 'Song: Jet - Get Born - Sgt Major'
song_format="%artist% - %album% - %title%"
# Print the Artist, Album and Title on separate lines
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --song_shorthand
#
# Example:
# on: 'Artist: The Fratellis'
# 'Album: Costello Music'
# 'Song: Chelsea Dagger'
#
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
song_shorthand="off"
# 'mpc' arguments (specify a host, password etc).
#
# Default: ''
# Example: mpc_args=(-h HOST -P PASSWORD)
mpc_args=()
# Text Colors
# Text Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --colors
#
# Each number represents a different part of the text in
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
#
# Example:
# colors=(distro) - Text is colored based on Distro colors.
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
colors=(9 15 15 15 15 15)
# Text Options
# Toggle bold text
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bold
bold="on"
# Enable/Disable Underline
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --underline
underline_enabled="on"
# Underline character
#
# Default: '-'
# Values: 'string'
# Flag: --underline_char
underline_char="-"
# Info Separator
# Replace the default separator with the specified string.
#
# Default: ':'
# Flag: --separator
#
# Example:
# separator="->": 'Shell-> bash'
# separator=" =": 'WM = dwm'
separator=":"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '7'
# Values: 'num'
# Flag: --block_range
#
# Example:
#
# Display colors 0-7 in the blocks. (8 colors)
# neofetch --block_range 0 7
#
# Display colors 0-15 in the blocks. (16 colors)
# neofetch --block_range 0 15
block_range=(0 15)
# Toggle color blocks
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --color_blocks
color_blocks="on"
# Color block width in spaces
#
# Default: '3'
# Values: 'num'
# Flag: --block_width
block_width=4
# Color block height in lines
#
# Default: '1'
# Values: 'num'
# Flag: --block_height
block_height=1
# Progress Bars
# Bar characters
#
# Default: '-', '='
# Values: 'string', 'string'
# Flag: --bar_char
#
# Example:
# neofetch --bar_char 'elapsed' 'total'
# neofetch --bar_char '-' '='
bar_char_elapsed="-"
bar_char_total="="
# Toggle Bar border
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bar_border
bar_border="on"
# Progress bar length in spaces
# Number of chars long to make the progress bars.
#
# Default: '15'
# Values: 'num'
# Flag: --bar_length
bar_length=15
# Progress bar colors
# When set to distro, uses your distro's logo colors.
#
# Default: 'distro', 'distro'
# Values: 'distro', 'num'
# Flag: --bar_colors
#
# Example:
# neofetch --bar_colors 3 4
# neofetch --bar_colors distro 5
bar_color_elapsed="distro"
bar_color_total="distro"
# Info display
# Display a bar with the info.
#
# Default: 'off'
# Values: 'bar', 'infobar', 'barinfo', 'off'
# Flags: --cpu_display
# --memory_display
# --battery_display
# --disk_display
#
# Example:
# bar: '[---=======]'
# infobar: 'info [---=======]'
# barinfo: '[---=======] info'
# off: 'info'
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
# Image backend.
#
# Default: 'ascii'
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
# 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
# Flag: --backend
image_backend="ascii"
# Image Source
#
# Which image or ascii file to display.
#
# Default: 'auto'
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
# Flag: --source
#
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used.
image_source="auto"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
#
# NOTE: Arch and Ubuntu have 'old' logo variants.
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
# NOTE: Arch, Crux and Gentoo have a smaller logo variant.
# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
ascii_distro="arch_old"
# Ascii Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --ascii_colors
#
# Example:
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
ascii_colors=(2 2)
# Bold ascii logo
# Whether or not to bold the ascii logo.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --ascii_bold
ascii_bold="on"
# Image Options
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --loop
image_loop="off"
# Thumbnail directory
#
# Default: '~/.cache/thumbnails/neofetch'
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
# Crop mode
#
# Default: 'normal'
# Values: 'normal', 'fit', 'fill'
# Flag: --crop_mode
#
# See this wiki page to learn about the fit and fill options.
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
crop_mode="normal"
# Crop offset
# Note: Only affects 'normal' crop mode.
#
# Default: 'center'
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
# 'east', 'southwest', 'south', 'southeast'
# Flag: --crop_offset
crop_offset="center"
# Image size
# The image is half the terminal width by default.
#
# Default: 'auto'
# Values: 'auto', '00px', '00%', 'none'
# Flags: --image_size
# --size
image_size="auto"
# Gap between image and text
#
# Default: '3'
# Values: 'num', '-num'
# Flag: --gap
gap=3
# Image offsets
# Only works with the w3m backend.
#
# Default: '0'
# Values: 'px'
# Flags: --xoffset
# --yoffset
yoffset=0
xoffset=0
# Image background color
# Only works with the w3m backend.
#
# Default: ''
# Values: 'color', 'blue'
# Flag: --bg_color
background_color=
# Misc Options
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Default: 'off'
# Values: 'on', 'off'
stdout="off"

41
.config/.old/nvim_0.4.4/after/ftplugin/groff.vim

@ -0,0 +1,41 @@
" Author : swytch
" Created : 06/05/2020
" License : GPLv3
" Description : groff filetype config
inoremap <buffer> à \[`a]
inoremap <buffer> 'A \[`A]
inoremap <buffer> â \[^a]
inoremap <buffer> Â \[^A]
inoremap <buffer> ç \[,c]
inoremap <buffer> CC \[,C]
inoremap <buffer> é \['e]
inoremap <buffer> 'E \['E]
inoremap <buffer> è \[`e]
inoremap <buffer> ê \[^e]
inoremap <buffer> Ê \[^E]
inoremap <buffer> ï \[¨i]
inoremap <buffer> î \[^i]
inoremap <buffer> Î \[^I]
inoremap <buffer> oe \[oe]
inoremap <buffer> ô \[^o]
inoremap <buffer> Ô \[^O]
inoremap <buffer> û \[^u]
inoremap <buffer> ù \[`u]
" Unbreakable space before 'etc'
inoremap <buffer> <Space>etc \~etc.
" Unbreakable space before ':'
inoremap <buffer> <Space>: \~:
" Centered point
inoremap <buffer> .. \[u00B7]
" Italics
inoremap <buffer> II \*[IT]\*[PREV]<Esc>F\i
" Bold
inoremap <buffer> BB \*[BD]\*[PREV]<Esc>F\i
" Bold + Italics
inoremap <buffer> BI \*[BDI]\*[PREV]<Esc>F\i
" Real dashes
" - short one
inoremap <buffer> -- \[en]
" -- long one
inoremap <buffer> __ \[em]

11
.config/.old/nvim_0.4.4/after/ftplugin/python.vim

@ -0,0 +1,11 @@
" Author : swytch
" Created : 06/05/2020
" License : GPLv3
" Description : python filetype config
" PEP8
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=80
set expandtab

28
.config/.old/nvim_0.4.4/after/ftplugin/tex.vim

@ -0,0 +1,28 @@
" Author : swytch
" Created : 06/05/2020
" License : GPLv3
" Description : tex filetype config
" spellcheck enabled
setlocal spell spelllang=fr
" Caps
inoremap <buffer> AA À
inoremap <buffer> CC Ç
inoremap <buffer> EE É
" Unbreakable space before 'etc'
inoremap <buffer> <Space>etc \,etc.
" Unbreakable space before ':'
inoremap <buffer> <Space>: \,:
" Centered point
inoremap <buffer> .. \textperiodcentered
" But don't overreact
inoremap <buffer> ... ...
" Italics
inoremap <buffer> II \textit{}<Esc>i
" Bold
inoremap <buffer> BB \textbf{}<Esc>i
" Bold + Italics
inoremap <buffer> BI \textit{\textbf{}}<Esc>hi
" Smallcaps
inoremap <buffer> SC \fsc{}<Esc>i

8
.config/.old/nvim_0.4.4/after/ftplugin/text.vim

@ -0,0 +1,8 @@
" Author : swytch
" Created : 06/05/2020
" License : GPLv3
" Description : text filetype config
setlocal spell spelllang=fr,en_us
set expandtab
noremap <leader><Enter> :w! \| :!sent % &<CR><CR>

6
.config/.old/nvim_0.4.4/after/ftplugin/verilog.vim

@ -0,0 +1,6 @@
" Author : swytch
" Created : 06/05/2020
" License : GPLv3
" Description : verilog fietype config
noremap <leader><Enter> :w! \| :CoqRunToCursor<CR>

181
.config/.old/nvim_0.4.4/init.vim

@ -0,0 +1,181 @@
" Author : swytch
" Created : 06/05/2020
" License : GPLv3
" Description : My own personnal nvim configuration
"" Plugin stuff
" Vim-Plug
""""""""""""""""""""""""""""""""""""""""""""""""""
" Autoinstall Plug
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug"
silent !curl -fLo '~/.local/share/nvim/site/autoload/plug.vim' --create-dir \
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Plugins will be downloaded under the specified directory
call plug#begin('$HOME/.config/nvim/plugged')
""""""""""""""""""""""""""""""""""""""""""""""""""
" Language highlighting packages
Plug 'sheerun/vim-polyglot'
" Indentation guides
Plug 'nathanaelkane/vim-indent-guides'
" Colorscheme management
Plug 'lifepillar/vim-colortemplate'
" Neovim colorizer
Plug 'norcalli/nvim-colorizer.lua'
" Templates
Plug 'tibabit/vim-templates'
" All Plugins must be added before the following line
call plug#end()
" Brief help
" :PlugInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PlugUpdate - updates plugins
" :PlugUpgrade - upgrades vim-plug
" :PlugClean - confirms removal of unused plugins; append `!` to auto-approve removal
" Indent Guides
let g:indent_guides_enable_on_vim_startup=1
"" General
""""""""""""""""""""""""""""""""""""""""""""""""""
" Set vim update time (milliseconds)
set updatetime=250
" Detect filetypes plugins and indent rules
filetype plugin indent on
" Defining the <leader>
map <Space> <leader>
" Remove the pause when leaving insert mode
set ttimeoutlen=10
" No netrw history
let g:netrw_dirhistmax=0
"" User Interface
""""""""""""""""""""""""""""""""""""""""""""""""""
" Shows the current position
set number
" Shows line numbers relative to the cursor
set relativenumber
" A buffer becomes hidden when abandonned
set hid
" Shows matching brackets when cursor is over them
set showmatch
" Splits to the right
set splitright
" Prevents nvim from being customized by text files commands
set nomodeline
" GUI colors
set termguicolors
" Colorscheme
set background=dark
colorscheme polyjuice
" Change cursor behaviour when entering insert mode
let &t_SI.="\e[6 q" "SI = INSERT mode // steady bar
let &t_SR.="\e[4 q" "SR = REPLACE mode // underline
"" Text, tab and indent
""""""""""""""""""""""""""""""""""""""""""""""""""
" Do not use spaces instead of tabs
set noexpandtab
" 1 tab = 4 spaces
set tabstop=4
set shiftwidth=4
" Indent and wrap rules
set autoindent
" Formatting
set textwidth=80
autocmd FileType * setlocal formatoptions+=jpt
autocmd FileType * setlocal formatoptions-=ro
" Enable autocompletion
set wildmode=longest,full
" Automatically remove all trailing whitespaces on save
autocmd BufWritePre * %s/\s\+$//e
" To recognize groff filetype
au BufNewFile,BufRead *.mom set filetype=groff
" Always use LaTeX flavor
au BufNewFile,BufRead *.tex set filetype=tex
"" Status line
"""""""""""""""""""""""""""""""""""""""""""""""""""
"Don't show editor mode
set noshowmode
source $XDG_CONFIG_HOME/nvim/statusline.vim
augroup statusline
autocmd!
autocmd VimEnter *
\ call UpdateInactiveWindows()
autocmd VimEnter,WinEnter,BufWinEnter *
\ call RefreshStatusLine('active')
autocmd WinLeave *
\ call RefreshStatusLine('inactive')
augroup END
"" Misc
""""""""""""""""""""""""""""""""""""""""""""""""""
" Templates location
let g:tmpl_search_paths=['$XDG_CONFIG_HOME/nvim/templates']
"" Macros
""""""""""""""""""""""""""""""""""""""""""""""""""
" Source files
noremap <leader>s :source ~/.config/nvim/init.vim <CR>
" Circle through buffers
noremap <leader>n :bn<CR>
noremap <leader>b :bp<CR>
" Clear the search highlight
noremap <leader>h :nohl<CR>
" Make use of xclipboard
nnoremap <leader>v "+p
vnoremap <leader>c "+y
" Compile document
noremap <leader><Enter> :w! \| !compiler %<CR>
" Compile mom folder into pdf
noremap <leader>m :w! \| !mommerge<CR>
" Plugin management
noremap <leader>pi :PlugInstall<CR>
noremap <leader>pc :PlugClean<CR>
noremap <leader>pu :PlugUpdate \| PlugUpgrade<CR>
" Colorize
noremap <leader>cc :ColorizerToggle<CR>
" Template
noremap <leader>ti :TemplateInit<CR>
noremap <leader>te :TemplateExpand<CR>

10
.config/.old/nvim_0.4.4/spell/fr.utf-8.add

@ -0,0 +1,10 @@
metadata
autrice
l'autrice
rice
Gaudé
Laurent
Kerangal
Maylis
d'Informatique
Andréas

133
.config/.old/nvim_0.4.4/statusline.vim

@ -0,0 +1,133 @@
" Author : swytch
" Created : 08/05/2020
" License : GPLv3
" Description : My own personnal statusline script
function! CurrentMode()
let g:currentmode={
\ 'n' : '[ NRM ]',
\ 'v' : '[ VIS ]',
\ 'V' : '[ V·L ]',
\ '' : '[ V·B ]',
\ 'i' : '[ INS ]',
\ 'R' : '[ RPL ]',
\ 'Rv' : '[ V·R ]',
\ 'c' : '[ CMD ]',
\}
return g:currentmode[mode()]
endfunction
function! ModeColor()
let g:modecolor={
\ 'n' : '%#NormalMode#',