Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e332226281 | |||
| 0ef904f5c1 |
11
.gitignore
vendored
11
.gitignore
vendored
@@ -3,16 +3,16 @@ zsh/.config/zsh/.zhistory
|
|||||||
|
|
||||||
vifm/.config/vifm/vifm-help.txt
|
vifm/.config/vifm/vifm-help.txt
|
||||||
vifm/.config/vifm/vifminfo.json
|
vifm/.config/vifm/vifminfo.json
|
||||||
vifm/.config/vifm/vifminfo.json_*
|
|
||||||
|
|
||||||
nvim/.config/nvim/autoload
|
nvim/.config/nvim/autoload
|
||||||
nvim/.config/nvim/plugin
|
nvim/.config/nvim/plugin
|
||||||
|
|
||||||
|
vim/.vim/autoload/
|
||||||
|
vim/.vim/plugged/
|
||||||
|
|
||||||
moc/.moc/last_directory
|
moc/.moc/last_directory
|
||||||
moc/.moc/pid
|
moc/.moc/pid
|
||||||
moc/.moc/playlist.m3u
|
moc/.moc/playlist.m3u
|
||||||
moc/.moc/softmixer
|
|
||||||
moc/.moc/equalizer
|
|
||||||
|
|
||||||
newsboat/.newsboat/cache.db
|
newsboat/.newsboat/cache.db
|
||||||
newsboat/.newsboat/cache.db.lock
|
newsboat/.newsboat/cache.db.lock
|
||||||
@@ -20,8 +20,5 @@ newsboat/.newsboat/history.cmdline
|
|||||||
|
|
||||||
mpd/.config/mpd/database
|
mpd/.config/mpd/database
|
||||||
mpd/.config/mpd/state
|
mpd/.config/mpd/state
|
||||||
mpd/.config/mpd/playlists/
|
|
||||||
|
|
||||||
aerc/.config/vdirsyncer/status/
|
neomutt/.config/vdirsyncer/status/
|
||||||
|
|
||||||
hypr/.config/hypr/monitor-manager.log
|
|
||||||
|
|||||||
48
README.md
48
README.md
@@ -1,49 +1,7 @@
|
|||||||
# My dotfiles
|
# My dotfiles
|
||||||
|
|
||||||
Géré avec [GNU stow](https://www.gnu.org/software/stow/).
|
## Sway
|
||||||
|
|
||||||
## Packages
|
Paquets à installer
|
||||||
|
|
||||||
| Package | Contenu | Notes |
|
sway waybar rofi rofi-pass nm-applet blueman brightnessctl
|
||||||
|---------|---------|-------|
|
|
||||||
| `alacritty` | Terminal | |
|
|
||||||
| `aerc` | Client mail + infra (msmtp, khard, vdirsyncer) | Remplace neomutt |
|
|
||||||
| `fuzzel` | Launcher (mode dmenu) | Utilisé dans le script screenshot |
|
|
||||||
| `git` | `.gitconfig` | |
|
|
||||||
| `hypr` | Config hyprland (hyprland.conf, hypridle, hyprlock, hyprpaper, monitors, scripts) | `stow --no-folding` requis |
|
|
||||||
| `hyprland` | Waybar, rofi, rofi-pass, mako, gammastep, systemd user units | |
|
|
||||||
| `khal` | Calendrier CLI | |
|
|
||||||
| `moc` | Lecteur audio terminal | |
|
|
||||||
| `mpd` | MPD + ncmpcpp | |
|
|
||||||
| `newsboat` | Lecteur RSS | |
|
|
||||||
| `nvim` | Neovim | |
|
|
||||||
| `qutebrowser` | Navigateur | |
|
|
||||||
| `tmux` | tmux + tmuxp sessions | |
|
|
||||||
| `vifm` | File manager terminal | |
|
|
||||||
| `zsh` | Shell (zshenv, zshrc, plugins, completions) | |
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd ~/.dotfiles
|
|
||||||
|
|
||||||
# Tous les packages sauf hypr
|
|
||||||
stow alacritty aerc fuzzel git hyprland khal moc mpd newsboat nvim qutebrowser tmux vifm zsh
|
|
||||||
|
|
||||||
# hypr nécessite --no-folding (hyprland ne suit pas les symlinks de dossiers)
|
|
||||||
stow --no-folding hypr
|
|
||||||
```
|
|
||||||
|
|
||||||
## Dépendances principales (Hyprland)
|
|
||||||
|
|
||||||
```
|
|
||||||
hyprland hyprlock hypridle hyprpaper waybar rofi fuzzel
|
|
||||||
mako gammastep rofi-pass nm-applet blueman brightnessctl
|
|
||||||
kanata voxtype grim slurp wl-copy
|
|
||||||
```
|
|
||||||
|
|
||||||
## Mail (aerc)
|
|
||||||
|
|
||||||
```
|
|
||||||
aerc mbsync msmtp msmtp-mta notmuch khard vdirsyncer
|
|
||||||
```
|
|
||||||
|
|||||||
46
X/.Xdefaults
Normal file
46
X/.Xdefaults
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
URxvt*font: xft:DroidSansMono Nerd Font Mono:pixelsize=14,xft:UbuntuMono Nerd Font:pixelsize=12
|
||||||
|
URxvt*letterSpace: -1
|
||||||
|
URxvt*scrollBar: false
|
||||||
|
|
||||||
|
! Extensions
|
||||||
|
URxvt.perl-ext-common: default,matcher,fullscreen,resize-font
|
||||||
|
! fullscreen with F11
|
||||||
|
URxvt.keysym.F11: perl:fullscreen:switch
|
||||||
|
|
||||||
|
! `font-size` plugin
|
||||||
|
URxvt.resize-font.smaller: C-Down
|
||||||
|
URxvt.resize-font.bigger: C-Up
|
||||||
|
|
||||||
|
! Open link with firefox
|
||||||
|
! URxvt.url-launcher: /usr/bin/xdg-open
|
||||||
|
URxvt.url-launcher: /usr/bin/firefox
|
||||||
|
URxvt.matcher.button: 1
|
||||||
|
|
||||||
|
! hard contrast: *background: #1d2021
|
||||||
|
*background: #282828
|
||||||
|
! soft contrast: *background: #32302f
|
||||||
|
*foreground: #ebdbb2
|
||||||
|
! Black + DarkGrey
|
||||||
|
*color0: #282828
|
||||||
|
*color8: #928374
|
||||||
|
! DarkRed + Red
|
||||||
|
*color1: #cc241d
|
||||||
|
*color9: #fb4934
|
||||||
|
! DarkGreen + Green
|
||||||
|
*color2: #98971a
|
||||||
|
*color10: #b8bb26
|
||||||
|
! DarkYellow + Yellow
|
||||||
|
*color3: #d79921
|
||||||
|
*color11: #fabd2f
|
||||||
|
! DarkBlue + Blue
|
||||||
|
*color4: #458588
|
||||||
|
*color12: #83a598
|
||||||
|
! DarkMagenta + Magenta
|
||||||
|
*color5: #b16286
|
||||||
|
*color13: #d3869b
|
||||||
|
! DarkCyan + Cyan
|
||||||
|
*color6: #689d6a
|
||||||
|
*color14: #8ec07c
|
||||||
|
! LightGrey + White
|
||||||
|
*color7: #a89984
|
||||||
|
*color15: #ebdbb2
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
[bb_opytex]
|
|
||||||
source = maildir://~/Mail/benjamin.bertrand_opytex.org/
|
|
||||||
outgoing = msmtpq -a bb_opytex
|
|
||||||
default = INBOX
|
|
||||||
from = Benjamin Bertrand <benjamin.bertrand@opytex.org>
|
|
||||||
copy-to = Sent Items
|
|
||||||
archive = Archives
|
|
||||||
folders-sort = INBOX, Sent Items, Drafts, Archives, Trash, Todo, Attente
|
|
||||||
|
|
||||||
[jb_opytex]
|
|
||||||
source = maildir://~/Mail/jost_bertrand_opytex.org/
|
|
||||||
outgoing = msmtpq -a jb_opytex
|
|
||||||
default = INBOX
|
|
||||||
from = Margot Jost et Benjamin Bertrand <jost_bertrand@opytex.org>
|
|
||||||
copy-to = Sent Items
|
|
||||||
archive = Archives
|
|
||||||
folders-sort = INBOX, Sent Items, Drafts, Archives, Trash
|
|
||||||
|
|
||||||
[ac_lyon]
|
|
||||||
source = maildir://~/Mail/benjamin.bertrand_ac-lyon.fr/
|
|
||||||
outgoing = msmtpq -a ac-lyon
|
|
||||||
default = INBOX
|
|
||||||
from = Benjamin Bertrand <benjamin.bertrand@ac-lyon.fr>
|
|
||||||
copy-to = Sent
|
|
||||||
archive = Archives
|
|
||||||
folders-sort = INBOX, Sent, Drafts, Archives, Trash, TICE
|
|
||||||
|
|
||||||
# Compte de recherche globale (backend notmuch, lecture seule de fait).
|
|
||||||
# Indexe les 3 comptes via ~/.notmuch-config (path=~/Mail).
|
|
||||||
# Usage : ouvrir cet onglet puis :cf <termes> pour chercher partout.
|
|
||||||
[recherche]
|
|
||||||
source = notmuch://~/Mail
|
|
||||||
from = Benjamin Bertrand <benjamin.bertrand@opytex.org>
|
|
||||||
query-map = ~/.config/aerc/notmuch.qmap
|
|
||||||
exclude-tags = deleted,spam
|
|
||||||
folders-sort = Tout, Non lus, Récents, bb_opytex, jb_opytex, ac_lyon, ──── recherches ↓ ────
|
|
||||||
@@ -1,904 +0,0 @@
|
|||||||
#
|
|
||||||
# aerc main configuration
|
|
||||||
|
|
||||||
[general]
|
|
||||||
#
|
|
||||||
# Used as a default path for save operations if no other path is specified.
|
|
||||||
# ~ is expanded to the current user home dir.
|
|
||||||
#
|
|
||||||
#default-save-path=
|
|
||||||
|
|
||||||
# If set to "gpg", aerc will use system gpg binary and keystore for all crypto
|
|
||||||
# operations. If set to "internal", the internal openpgp keyring will be used.
|
|
||||||
# If set to "auto", the system gpg will be preferred unless the internal
|
|
||||||
# keyring already exists, in which case the latter will be used.
|
|
||||||
#
|
|
||||||
# Default: auto
|
|
||||||
#pgp-provider=auto
|
|
||||||
|
|
||||||
# By default, the file permissions of accounts.conf must be restrictive and
|
|
||||||
# only allow reading by the file owner (0600). Set this option to true to
|
|
||||||
# ignore this permission check. Use this with care as it may expose your
|
|
||||||
# credentials.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#unsafe-accounts-conf=false
|
|
||||||
|
|
||||||
# Output log messages to specified file. A path starting with ~/ is expanded to
|
|
||||||
# the user home dir. When redirecting aerc's output to a file using > shell
|
|
||||||
# redirection, this setting is ignored and log messages are printed to stdout.
|
|
||||||
#
|
|
||||||
#log-file=
|
|
||||||
|
|
||||||
# Only log messages above the specified level to log-file. Supported levels
|
|
||||||
# are: trace, debug, info, warn and error. When redirecting aerc's output to
|
|
||||||
# a file using > shell redirection, this setting is ignored and the log level
|
|
||||||
# is forced to trace.
|
|
||||||
#
|
|
||||||
# Default: info
|
|
||||||
#log-level=info
|
|
||||||
|
|
||||||
# Disable IPC entirely. Don't run commands (including mailto:... and mbox:...)
|
|
||||||
# in an existing aerc instance, and don't start an IPC server to allow
|
|
||||||
# subsequent aerc instances to run commands in the current one.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#disable-ipc=false
|
|
||||||
|
|
||||||
# Don't run mailto:... commands over IPC; start a new aerc instance with the
|
|
||||||
# composer instead.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#disable-ipc-mailto=false
|
|
||||||
#
|
|
||||||
# Don't run mbox:... commands over IPC; start a new aerc instance with the mbox
|
|
||||||
# file instead.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#disable-ipc-mbox=false
|
|
||||||
|
|
||||||
# Set the $TERM environment variable used for the embedded terminal.
|
|
||||||
#
|
|
||||||
# Default: xterm-256color
|
|
||||||
#term=xterm-256color
|
|
||||||
# term=tmux split-window -h
|
|
||||||
|
|
||||||
# Display OSC8 strings in the embedded terminal
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#enable-osc8=false
|
|
||||||
|
|
||||||
# Default shell command to use for :menu. This will be executed with sh -c and
|
|
||||||
# will run in an popover dialog.
|
|
||||||
#
|
|
||||||
# Any occurrence of %f will be replaced by a temporary file path where the
|
|
||||||
# command is expected to write output lines to be consumed by :menu. Otherwise,
|
|
||||||
# the lines will be read from the command's standard output.
|
|
||||||
#
|
|
||||||
# Examples:
|
|
||||||
# default-menu-cmd=fzf
|
|
||||||
# default-menu-cmd=fzf --multi
|
|
||||||
# default-menu-cmd=dmenu -l 20
|
|
||||||
# default-menu-cmd=ranger --choosefiles=%f
|
|
||||||
#
|
|
||||||
#default-menu-cmd=
|
|
||||||
|
|
||||||
[ui]
|
|
||||||
message-view-this-window=false
|
|
||||||
preview-pane=true
|
|
||||||
#
|
|
||||||
# Describes the format for each row in a mailbox view. This is a comma
|
|
||||||
# separated list of column names with an optional align and width suffix. After
|
|
||||||
# the column name, one of the '<' (left), ':' (center) or '>' (right) alignment
|
|
||||||
# characters can be added (by default, left) followed by an optional width
|
|
||||||
# specifier. The width is either an integer representing a fixed number of
|
|
||||||
# characters, or a percentage between 1% and 99% representing a fraction of the
|
|
||||||
# terminal width. It can also be one of the '*' (auto) or '=' (fit) special
|
|
||||||
# width specifiers. Auto width columns will be equally attributed the remaining
|
|
||||||
# terminal width. Fit width columns take the width of their contents. If no
|
|
||||||
# width specifier is set, '*' is used by default.
|
|
||||||
#
|
|
||||||
# Default: flags:4,name<20%,subject,date>=
|
|
||||||
index-columns=flags:4,date>10,name<18%,subject
|
|
||||||
|
|
||||||
#
|
|
||||||
# Each name in index-columns must have a corresponding column-$name setting.
|
|
||||||
# All column-$name settings accept golang text/template syntax. See
|
|
||||||
# aerc-templates(7) for available template attributes and functions.
|
|
||||||
#
|
|
||||||
# Here are some examples to show the To field instead of the From field for
|
|
||||||
# an email (modifying column-name):
|
|
||||||
#
|
|
||||||
# 1. a generic one
|
|
||||||
# column-name={{ .Peer | names | join ", " }}
|
|
||||||
# 2. based upon the selected folder
|
|
||||||
# column-name={{if match .Folder "^(Gesendet|Sent)$"}}{{index (.To | names) 0}}{{else}}{{index (.From | names) 0}}{{end}}
|
|
||||||
#
|
|
||||||
# Default settings
|
|
||||||
#column-flags={{.Flags | join ""}}
|
|
||||||
#column-name={{index (.From | names) 0}}
|
|
||||||
#column-subject={{.ThreadPrefix}}{{.Subject}}
|
|
||||||
#column-date={{.DateAutoFormat .Date.Local}}
|
|
||||||
|
|
||||||
#
|
|
||||||
# String separator inserted between columns. When the column width specifier is
|
|
||||||
# an exact number of characters, the separator is added to it (i.e. the exact
|
|
||||||
# width will be fully available for the column contents).
|
|
||||||
#
|
|
||||||
# Default: " "
|
|
||||||
#column-separator=" "
|
|
||||||
|
|
||||||
#
|
|
||||||
# See time.Time#Format at https://godoc.org/time#Time.Format
|
|
||||||
#
|
|
||||||
# Default: 2006 Jan 02
|
|
||||||
timestamp-format=2006-01-02
|
|
||||||
|
|
||||||
#
|
|
||||||
# Index-only time format for messages that were received/sent today.
|
|
||||||
# If this is empty, timestamp-format is used instead.
|
|
||||||
#
|
|
||||||
# Default: 15:04
|
|
||||||
this-day-time-format=15:04
|
|
||||||
|
|
||||||
#
|
|
||||||
# Index-only time format for messages that were received/sent within the last
|
|
||||||
# 7 days. If this is empty, timestamp-format is used instead.
|
|
||||||
#
|
|
||||||
# Default: Jan 02
|
|
||||||
this-week-time-format=Mon 15:04
|
|
||||||
|
|
||||||
#
|
|
||||||
# Index-only time format for messages that were received/sent this year.
|
|
||||||
# If this is empty, timestamp-format is used instead.
|
|
||||||
#
|
|
||||||
#Default: Jan 02
|
|
||||||
this-year-time-format=Jan 02
|
|
||||||
|
|
||||||
#
|
|
||||||
# Overrides timestamp-format for the message view.
|
|
||||||
#
|
|
||||||
# Default: 2006 Jan 02, 15:04 GMT-0700
|
|
||||||
#message-view-timestamp-format=2006 Jan 02, 15:04 GMT-0700
|
|
||||||
|
|
||||||
#
|
|
||||||
# If set, overrides timestamp-format in the message view for messages
|
|
||||||
# that were received/sent today.
|
|
||||||
#
|
|
||||||
#message-view-this-day-time-format=
|
|
||||||
|
|
||||||
# If set, overrides timestamp-format in the message view for messages
|
|
||||||
# that were received/sent within the last 7 days.
|
|
||||||
#
|
|
||||||
#message-view-this-week-time-format=
|
|
||||||
|
|
||||||
#
|
|
||||||
# If set, overrides *timestamp-format* in the message view for messages
|
|
||||||
# that were received/sent this year.
|
|
||||||
#
|
|
||||||
#message-view-this-year-time-format=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Width of the sidebar, including the border.
|
|
||||||
#
|
|
||||||
# Default: 22
|
|
||||||
sidebar-width=26
|
|
||||||
|
|
||||||
#
|
|
||||||
# Default split layout for message list tabs. The syntax is:
|
|
||||||
#
|
|
||||||
# [<direction>] <size>
|
|
||||||
#
|
|
||||||
# <direction> is optional and defaults to horizontal. It can take one
|
|
||||||
# of the following values: h, horiz, horizontal, v, vert, vertical.
|
|
||||||
#
|
|
||||||
# <size> is a positive integer representing the size (in terminal cells)
|
|
||||||
# of the message list window.
|
|
||||||
#
|
|
||||||
#message-list-split=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Message to display when viewing an empty folder.
|
|
||||||
#
|
|
||||||
# Default: (no messages)
|
|
||||||
#empty-message=(no messages)
|
|
||||||
|
|
||||||
# Message to display when no folders exists or are all filtered
|
|
||||||
#
|
|
||||||
# Default: (no folders)
|
|
||||||
#empty-dirlist=(no folders)
|
|
||||||
#
|
|
||||||
# Value to set {{.Subject}} template to when subject is empty.
|
|
||||||
#
|
|
||||||
# Default: (no subject)
|
|
||||||
#empty-subject=(no subject)
|
|
||||||
|
|
||||||
# Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#mouse-enabled=false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Ring the bell when new messages are received
|
|
||||||
#
|
|
||||||
# Default: true
|
|
||||||
#new-message-bell=true
|
|
||||||
|
|
||||||
#
|
|
||||||
# Template to use for Account tab titles
|
|
||||||
#
|
|
||||||
# Default: {{.Account}}
|
|
||||||
tab-title-account={{.Account}} {{if .Unread}}({{.Unread}}){{end}}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Template to use for Composer tab titles
|
|
||||||
#
|
|
||||||
# Default: {{if .To}}to:{{index (.To | shortmboxes) 0}} {{end}}{{.SubjectBase}}
|
|
||||||
#tab-title-composer={{if .To}}to:{{index (.To | shortmboxes) 0}} {{end}}{{.SubjectBase}}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Template to use for Terminal tab titles. Only valid in the global [ui]
|
|
||||||
# section.
|
|
||||||
#
|
|
||||||
# Default: {{.Title}}
|
|
||||||
#tab-title-terminal={{.Title}}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Template to use for Message Viewer tab titles
|
|
||||||
#
|
|
||||||
# Default: {{.Subject}}
|
|
||||||
#tab-title-viewer={{.Subject}}
|
|
||||||
|
|
||||||
|
|
||||||
# Marker to show before a pinned tab's name.
|
|
||||||
#
|
|
||||||
# Default: `
|
|
||||||
#pinned-tab-marker='`'
|
|
||||||
|
|
||||||
# Template for the left side of the directory list.
|
|
||||||
# See aerc-templates(7) for all available fields and functions.
|
|
||||||
#
|
|
||||||
# Default: {{.Folder}}
|
|
||||||
#dirlist-left={{.Folder}}
|
|
||||||
|
|
||||||
# Template for the right side of the directory list.
|
|
||||||
# See aerc-templates(7) for all available fields and functions.
|
|
||||||
#
|
|
||||||
# Default: {{if .Unread}}{{humanReadable .Unread}}{{end}}
|
|
||||||
#dirlist-right={{if .Unread}}{{humanReadable .Unread}}{{end}}
|
|
||||||
|
|
||||||
# Delay after which the messages are actually listed when entering a directory.
|
|
||||||
# This avoids loading messages when skipping over folders and makes the UI more
|
|
||||||
# responsive. If you do not want that, set it to 0s.
|
|
||||||
#
|
|
||||||
# Default: 200ms
|
|
||||||
#dirlist-delay=200ms
|
|
||||||
|
|
||||||
# Display the directory list as a foldable tree that allows to collapse and
|
|
||||||
# expand the folders.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
dirlist-tree=true
|
|
||||||
|
|
||||||
# If dirlist-tree is enabled, set level at which folders are collapsed by
|
|
||||||
# default. Set to 0 to disable.
|
|
||||||
#
|
|
||||||
# Default: 0
|
|
||||||
dirlist-collapse=1
|
|
||||||
|
|
||||||
# List of space-separated criteria to sort the messages by, see *sort*
|
|
||||||
# command in *aerc*(1) for reference. Prefixing a criterion with "-r "
|
|
||||||
# reverses that criterion.
|
|
||||||
#
|
|
||||||
# Example: "from -r date"
|
|
||||||
#
|
|
||||||
#sort=
|
|
||||||
|
|
||||||
# Moves to next message when the current message is deleted
|
|
||||||
#
|
|
||||||
# Default: true
|
|
||||||
#next-message-on-delete=true
|
|
||||||
|
|
||||||
# Automatically set the "seen" flag when a message is opened in the message
|
|
||||||
# viewer.
|
|
||||||
#
|
|
||||||
# Default: true
|
|
||||||
#auto-mark-read=true
|
|
||||||
|
|
||||||
# Specifies whether the _seen_ flag of messages being previewed in the message
|
|
||||||
# list split should be automatically set to _true_ after a delay, controlled by
|
|
||||||
# _auto-mark-read-split-delay_.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#auto-mark-read-split=false
|
|
||||||
|
|
||||||
# If _auto-mark-read-split_ is true, specifies the number of seconds after
|
|
||||||
# which a message previewed in the message list split must considered _seen_.
|
|
||||||
#
|
|
||||||
# Default: 3s
|
|
||||||
#auto-mark-read-split-delay=3s
|
|
||||||
|
|
||||||
# The directories where the stylesets are stored. It takes a colon-separated
|
|
||||||
# list of directories. If this is unset or if a styleset cannot be found, the
|
|
||||||
# following paths will be used as a fallback in that order:
|
|
||||||
#
|
|
||||||
# ${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
|
|
||||||
# ${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
|
|
||||||
# /usr/local/share/aerc/stylesets
|
|
||||||
# /usr/share/aerc/stylesets
|
|
||||||
#
|
|
||||||
#stylesets-dirs=
|
|
||||||
|
|
||||||
# Uncomment to use box-drawing characters for vertical and horizontal borders.
|
|
||||||
#
|
|
||||||
# Default: "│" and "─"
|
|
||||||
#border-char-vertical="│"
|
|
||||||
#border-char-horizontal="─"
|
|
||||||
|
|
||||||
# Sets the styleset to use for the aerc ui elements.
|
|
||||||
#
|
|
||||||
# Default: default
|
|
||||||
styleset-name=gruvbox-dark
|
|
||||||
|
|
||||||
# Activates fuzzy search in commands and their arguments: the typed string is
|
|
||||||
# searched in the command or option in any position, and need not be
|
|
||||||
# consecutive characters in the command or option.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#fuzzy-complete=false
|
|
||||||
|
|
||||||
# How long to wait after the last input before auto-completion is triggered.
|
|
||||||
#
|
|
||||||
# Default: 250ms
|
|
||||||
#completion-delay=250ms
|
|
||||||
|
|
||||||
# The minimum required characters to allow auto-completion to be triggered after
|
|
||||||
# completion-delay.
|
|
||||||
#
|
|
||||||
# Setting this to "manual" disables automatic completion, leaving only the
|
|
||||||
# manually triggered completion with the $complete key (see aerc-binds(5) for
|
|
||||||
# more details).
|
|
||||||
#
|
|
||||||
# Default: 1
|
|
||||||
#completion-min-chars=1
|
|
||||||
|
|
||||||
#
|
|
||||||
# Global switch for completion popovers
|
|
||||||
#
|
|
||||||
# Default: true
|
|
||||||
#completion-popovers=true
|
|
||||||
|
|
||||||
# Uncomment to use UTF-8 symbols to indicate PGP status of messages
|
|
||||||
#
|
|
||||||
# Default: ASCII
|
|
||||||
#icon-unencrypted=
|
|
||||||
#icon-encrypted=✔
|
|
||||||
#icon-signed=✔
|
|
||||||
#icon-signed-encrypted=✔
|
|
||||||
#icon-unknown=✘
|
|
||||||
#icon-invalid=⚠
|
|
||||||
|
|
||||||
# Reverses the order of the message list. By default, the message list is
|
|
||||||
# ordered with the newest (highest UID) message on top. Reversing the order
|
|
||||||
# will put the oldest (lowest UID) message on top. This can be useful in cases
|
|
||||||
# where the backend does not support sorting.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#reverse-msglist-order = false
|
|
||||||
|
|
||||||
# Reverse display of the message threads. Default order is the initial
|
|
||||||
# message is on the top with all the replies being displayed below. The
|
|
||||||
# reverse option will put the initial message at the bottom with the
|
|
||||||
# replies on top.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#reverse-thread-order=false
|
|
||||||
|
|
||||||
# Positions the cursor on the last message in the message list (at the
|
|
||||||
# bottom of the view) when opening a new folder.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#select-last-message=false
|
|
||||||
|
|
||||||
# Sort the thread siblings according to the sort criteria for the messages. If
|
|
||||||
# sort-thread-siblings is false, the thread siblings will be sorted based on
|
|
||||||
# the message UID in ascending order. If this option is set to false and
|
|
||||||
# threading-by-subject is set to true, then siblings will be ordered by subject
|
|
||||||
# headers using UTF-8 sorting.
|
|
||||||
#
|
|
||||||
# This option is only applicable for client-side threading with a backend that
|
|
||||||
# enables sorting. Note that there's a performance impact when sorting is
|
|
||||||
# activated.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#sort-thread-siblings=false
|
|
||||||
|
|
||||||
# Set the scroll offset in number of lines from the top and bottom of the
|
|
||||||
# message list.
|
|
||||||
#
|
|
||||||
# Default: 0
|
|
||||||
#msglist-scroll-offset = 0
|
|
||||||
|
|
||||||
#
|
|
||||||
# Enable a threaded view of messages. If this is not supported by the backend
|
|
||||||
# (IMAP server or notmuch), threads will be built by the client.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#threading-enabled=false
|
|
||||||
|
|
||||||
# Force client-side thread building
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#force-client-threads=false
|
|
||||||
|
|
||||||
# If no References nor In-Reply-To headers can be matched to build client side
|
|
||||||
# threads, fallback to similar subjects. This setting also affects how thread
|
|
||||||
# siblings are ordered when sort-thread-siblings is left to false.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#threading-by-subject=false
|
|
||||||
|
|
||||||
# Show thread context enables messages which do not match the current query (or
|
|
||||||
# belong to the current mailbox) to be shown for context. These messages can be
|
|
||||||
# styled separately using "msglist_thread_context" in a styleset. This feature
|
|
||||||
# is not supported by all backends
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#show-thread-context=false
|
|
||||||
|
|
||||||
# Debounce client-side thread building
|
|
||||||
#
|
|
||||||
# Default: 50ms
|
|
||||||
#client-threads-delay=50ms
|
|
||||||
|
|
||||||
#
|
|
||||||
# Thread prefix customization:
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the arrow head.
|
|
||||||
#
|
|
||||||
# Default: ">"
|
|
||||||
thread-prefix-tip = ""
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the arrow indentation.
|
|
||||||
#
|
|
||||||
# Default: " "
|
|
||||||
#thread-prefix-indent = " "
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the vertical extension of
|
|
||||||
# the arrow.
|
|
||||||
#
|
|
||||||
# Default: "│"
|
|
||||||
thread-prefix-stem = "│ "
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the horizontal extension
|
|
||||||
# of the arrow.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
thread-prefix-limb = "─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the folded thread
|
|
||||||
# indicator.
|
|
||||||
#
|
|
||||||
# Default: "+"
|
|
||||||
#thread-prefix-folded = "+"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the unfolded thread
|
|
||||||
# indicator.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
#thread-prefix-unfolded = ""
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the first child connector.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
thread-prefix-first-child = "╭─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the connector used if
|
|
||||||
# the message has siblings.
|
|
||||||
#
|
|
||||||
# Default: "├─"
|
|
||||||
thread-prefix-has-siblings = "├─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the connector used if the
|
|
||||||
# message has no parents and no children.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
thread-prefix-lone = ""
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the connector used if the
|
|
||||||
# message has no parents and has children.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
thread-prefix-orphan = ""
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the connector for the last
|
|
||||||
# sibling.
|
|
||||||
#
|
|
||||||
# Default: "└─"
|
|
||||||
thread-prefix-last-sibling = "╰─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the reversed thread prefix appearance by selecting the connector for
|
|
||||||
# the last sibling.
|
|
||||||
#
|
|
||||||
# Default: "┌─"
|
|
||||||
#thread-prefix-last-sibling-reverse = "┌─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the thread prefix appearance by selecting the connector for dummy
|
|
||||||
# thread.
|
|
||||||
#
|
|
||||||
# Default: "┬─"
|
|
||||||
#thread-prefix-dummy = "┬─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the reversed thread prefix appearance by selecting the connector for
|
|
||||||
# dummy thread.
|
|
||||||
#
|
|
||||||
# Default: "┴─"
|
|
||||||
#thread-prefix-dummy-reverse = "┴─"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the reversed thread prefix appearance by selecting the first child
|
|
||||||
# connector.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
#thread-prefix-first-child-reverse = ""
|
|
||||||
|
|
||||||
#
|
|
||||||
# Customize the reversed thread prefix appearance by selecting the connector
|
|
||||||
# used if the message has no parents and has children.
|
|
||||||
#
|
|
||||||
# Default: ""
|
|
||||||
#thread-prefix-orphan-reverse = ""
|
|
||||||
|
|
||||||
[statusline]
|
|
||||||
#
|
|
||||||
# Describes the format for the status line. This is a comma separated list of
|
|
||||||
# column names with an optional align and width suffix. See [ui].index-columns
|
|
||||||
# for more details. To completely mute the status line except for push
|
|
||||||
# notifications, explicitly set status-columns to an empty string.
|
|
||||||
#
|
|
||||||
# Default: left<*,center:=,right>*
|
|
||||||
#status-columns=left<*,center:=,right>*
|
|
||||||
|
|
||||||
#
|
|
||||||
# Each name in status-columns must have a corresponding column-$name setting.
|
|
||||||
# All column-$name settings accept golang text/template syntax. See
|
|
||||||
# aerc-templates(7) for available template attributes and functions.
|
|
||||||
#
|
|
||||||
# Default settings
|
|
||||||
column-left=[{{.Account}}] {{.StatusInfo}}
|
|
||||||
column-center={{.PendingKeys}}
|
|
||||||
column-right={{.TrayInfo}}
|
|
||||||
|
|
||||||
#
|
|
||||||
# String separator inserted between columns.
|
|
||||||
# See [ui].column-separator for more details.
|
|
||||||
#
|
|
||||||
#column-separator=" "
|
|
||||||
|
|
||||||
# Specifies the separator between grouped statusline elements.
|
|
||||||
#
|
|
||||||
# Default: " | "
|
|
||||||
#separator=" | "
|
|
||||||
|
|
||||||
# Defines the mode for displaying the status elements.
|
|
||||||
# Options: text, icon
|
|
||||||
#
|
|
||||||
# Default: text
|
|
||||||
display-mode=icon
|
|
||||||
|
|
||||||
[viewer]
|
|
||||||
#
|
|
||||||
# Specifies the pager to use when displaying emails. Note that some filters
|
|
||||||
# may add ANSI codes to add color to rendered emails, so you may want to use a
|
|
||||||
# pager which supports ANSI codes.
|
|
||||||
#
|
|
||||||
# Default: less -Rc
|
|
||||||
#pager=less -Rc
|
|
||||||
|
|
||||||
#
|
|
||||||
# If an email offers several versions (multipart), you can configure which
|
|
||||||
# mimetype to prefer. For example, this can be used to prefer plaintext over
|
|
||||||
# html emails.
|
|
||||||
#
|
|
||||||
# Default: text/plain,text/html
|
|
||||||
#alternatives=text/plain,text/html
|
|
||||||
|
|
||||||
#
|
|
||||||
# Default setting to determine whether to show full headers or only parsed
|
|
||||||
# ones in message viewer.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#show-headers=false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Layout of headers when viewing a message. To display multiple headers in the
|
|
||||||
# same row, separate them with a pipe, e.g. "From|To". Rows will be hidden if
|
|
||||||
# none of their specified headers are present in the message.
|
|
||||||
#
|
|
||||||
# Default: From|To,Cc|Bcc,Date,Subject
|
|
||||||
#header-layout=From|To,Cc|Bcc,Date,Subject
|
|
||||||
|
|
||||||
# Whether to always show the mimetype of an email, even when it is just a single part
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#always-show-mime=false
|
|
||||||
|
|
||||||
# Define the maximum height of the mimetype switcher before a scrollbar is used.
|
|
||||||
# The height of the mimetype switcher is restricted to half of the display
|
|
||||||
# height. If the provided value for the height is zero, the number of parts will
|
|
||||||
# be used as the height of the type switcher.
|
|
||||||
#
|
|
||||||
# Default: 0
|
|
||||||
#max-mime-height = 0
|
|
||||||
|
|
||||||
# Parses and extracts http links when viewing a message. Links can then be
|
|
||||||
# accessed with the open-link command.
|
|
||||||
#
|
|
||||||
# Default: true
|
|
||||||
#parse-http-links=true
|
|
||||||
|
|
||||||
[compose]
|
|
||||||
#
|
|
||||||
# Specifies the command to run the editor with. It will be shown in an embedded
|
|
||||||
# terminal, though it may also launch a graphical window if the environment
|
|
||||||
# supports it. Defaults to $EDITOR, or vi.
|
|
||||||
# editor=tmux split-window -h nvim
|
|
||||||
|
|
||||||
#
|
|
||||||
# When set, aerc will create and read .eml files for composing that have
|
|
||||||
# non-standard \n linebreaks. This is only relevant if the used editor does not
|
|
||||||
# support CRLF linebreaks.
|
|
||||||
#
|
|
||||||
#lf-editor=false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Default header fields to display when composing a message. To display
|
|
||||||
# multiple headers in the same row, separate them with a pipe, e.g. "To|From".
|
|
||||||
#
|
|
||||||
# Default: To|From,Subject
|
|
||||||
#header-layout=To|From,Subject
|
|
||||||
|
|
||||||
#
|
|
||||||
# Edit headers into the text editor instead than separate fields.
|
|
||||||
#
|
|
||||||
# When this is true, address-book-cmd is not supported and address completion
|
|
||||||
# is left to the editor itself. Also, displaying multiple headers on the same
|
|
||||||
# line is not possible.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#edit-headers=false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Sets focus to the email body when the composer window opens.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#focus-body=false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Specifies the command to be used to tab-complete email addresses. Any
|
|
||||||
# occurrence of "%s" in the address-book-cmd will be replaced with what the
|
|
||||||
# user has typed so far.
|
|
||||||
#
|
|
||||||
# The command must output the completions to standard output, one completion
|
|
||||||
# per line. Each line must be tab-delimited, with an email address occurring as
|
|
||||||
# the first field. Only the email address field is required. The second field,
|
|
||||||
# if present, will be treated as the contact name. Additional fields are
|
|
||||||
# ignored.
|
|
||||||
#
|
|
||||||
# This parameter can also be set per account in accounts.conf.
|
|
||||||
#address-book-cmd = khard email --remove-first-line --parsable '%s'
|
|
||||||
address-book-cmd = addr-book-combine \
|
|
||||||
-c "khard email --remove-first-line --parsable '%s'" \
|
|
||||||
-c "grep -i '%s' ~/.cache/maildir-rank-addr/addressbook.tsv"
|
|
||||||
|
|
||||||
# Specifies the command to be used to select attachments. Any occurrence of
|
|
||||||
# '%s' in the file-picker-cmd will be replaced with the argument <arg>
|
|
||||||
# to :attach -m <arg>. Any occurrence of '%f' will be replaced by the
|
|
||||||
# location of a temporary file, from which aerc will read the selected files.
|
|
||||||
#
|
|
||||||
# If '%f' is not present, the command must output the selected files to
|
|
||||||
# standard output, one file per line. If it is present, then aerc does not
|
|
||||||
# capture the standard output and instead reads the files from the temporary
|
|
||||||
# file which should have the same format.
|
|
||||||
#file-picker-cmd=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Allow to address yourself when replying
|
|
||||||
#
|
|
||||||
# Default: true
|
|
||||||
#reply-to-self=true
|
|
||||||
|
|
||||||
# Warn before sending an email with an empty subject.
|
|
||||||
#
|
|
||||||
# Default: false
|
|
||||||
#empty-subject-warning=false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Warn before sending an email that matches the specified regexp but does not
|
|
||||||
# have any attachments. Leave empty to disable this feature.
|
|
||||||
#
|
|
||||||
# Uses Go's regexp syntax, documented at https://golang.org/s/re2syntax. The
|
|
||||||
# "(?im)" flags are set by default (case-insensitive and multi-line).
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# no-attachment-warning=^[^>]*attach(ed|ment)
|
|
||||||
#
|
|
||||||
#no-attachment-warning=
|
|
||||||
|
|
||||||
#
|
|
||||||
# When set, aerc will generate "format=flowed" bodies with a content type of
|
|
||||||
# "text/plain; format=flowed" as described in RFC3676. This format is easier to
|
|
||||||
# handle for some mailing software, and generally just looks like ordinary
|
|
||||||
# text. To actually make use of this format's features, you'll need support in
|
|
||||||
# your editor.
|
|
||||||
#
|
|
||||||
#format-flowed=false
|
|
||||||
|
|
||||||
[multipart-converters]
|
|
||||||
#
|
|
||||||
# Converters allow to generate multipart/alternative messages by converting the
|
|
||||||
# main text/plain part into any other MIME type. Only exact MIME types are
|
|
||||||
# accepted. The commands are invoked with sh -c and are expected to output
|
|
||||||
# valid UTF-8 text.
|
|
||||||
#
|
|
||||||
# Example (obviously, this requires that you write your main text/plain body
|
|
||||||
# using the markdown syntax):
|
|
||||||
#text/html=pandoc -f markdown -t html --standalone
|
|
||||||
|
|
||||||
[filters]
|
|
||||||
#
|
|
||||||
# Filters allow you to pipe an email body through a shell command to render
|
|
||||||
# certain emails differently, e.g. highlighting them with ANSI escape codes.
|
|
||||||
#
|
|
||||||
# The commands are invoked with sh -c. The following folders are prepended to
|
|
||||||
# the system $PATH to allow referencing filters from their name only:
|
|
||||||
#
|
|
||||||
# ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
|
|
||||||
# ~/.local/libexec/aerc/filters
|
|
||||||
# ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
|
|
||||||
# $PREFIX/libexec/aerc/filters
|
|
||||||
# $PREFIX/share/aerc/filters
|
|
||||||
# /usr/libexec/aerc/filters
|
|
||||||
# /usr/share/aerc/filters
|
|
||||||
#
|
|
||||||
# If you want to run a program in your default $PATH which has the same name
|
|
||||||
# as a builtin filter (e.g. /usr/bin/colorize), use its absolute path.
|
|
||||||
#
|
|
||||||
# The following variables are defined in the filter command environment:
|
|
||||||
#
|
|
||||||
# AERC_MIME_TYPE the part MIME type/subtype
|
|
||||||
# AERC_FORMAT the part content type format= parameter
|
|
||||||
# AERC_FILENAME the attachment filename (if any)
|
|
||||||
# AERC_SUBJECT the message Subject header value
|
|
||||||
# AERC_FROM the message From header value
|
|
||||||
#
|
|
||||||
# The first filter which matches the email's mimetype will be used, so order
|
|
||||||
# them from most to least specific.
|
|
||||||
#
|
|
||||||
# You can also match on non-mimetypes, by prefixing with the header to match
|
|
||||||
# against (non-case-sensitive) and a comma, e.g. subject,text will match a
|
|
||||||
# subject which contains "text". Use header,~regex to match against a regex.
|
|
||||||
#
|
|
||||||
text/plain=colorize
|
|
||||||
text/calendar=calendar
|
|
||||||
message/delivery-status=colorize
|
|
||||||
message/rfc822=colorize
|
|
||||||
#text/html=pandoc -f html -t plain | colorize
|
|
||||||
text/html=! html
|
|
||||||
#text/html=! w3m -T text/html -I UTF-8
|
|
||||||
#text/*=bat -fP --file-name="$AERC_FILENAME"
|
|
||||||
#application/x-sh=bat -fP -l sh
|
|
||||||
#image/*=catimg -w $(tput cols) -
|
|
||||||
#subject,~Git(hub|lab)=lolcat -f
|
|
||||||
#from,thatguywhodoesnothardwraphismessages=wrap -w 100 | colorize
|
|
||||||
|
|
||||||
# This special filter is only used to post-process email headers when
|
|
||||||
# [viewer].show-headers=true
|
|
||||||
# By default, headers are piped directly into the pager.
|
|
||||||
#
|
|
||||||
.headers=colorize
|
|
||||||
|
|
||||||
[openers]
|
|
||||||
#
|
|
||||||
# Openers allow you to specify the command to use for the :open and :open-link
|
|
||||||
# actions on a per-MIME-type basis. The :open-link URL scheme is used to
|
|
||||||
# determine the MIME type as follows: x-scheme-handler/<scheme>.
|
|
||||||
#
|
|
||||||
# {} is expanded as the temporary filename or URL to be opened with proper
|
|
||||||
# shell quoting. If it is not encountered in the command, the filename/URL will
|
|
||||||
# be appended to the end of the command. The command will then be executed with
|
|
||||||
# `sh -c`.
|
|
||||||
#
|
|
||||||
# Like [filters], openers support basic shell globbing. The first opener which
|
|
||||||
# matches the part's MIME type (or URL scheme handler MIME type) will be used,
|
|
||||||
# so order them from most to least specific.
|
|
||||||
#
|
|
||||||
# Examples:
|
|
||||||
# x-scheme-handler/irc=hexchat
|
|
||||||
# x-scheme-handler/http*=printf '%s' {} | wl-copy
|
|
||||||
# text/html=surf -dfgms
|
|
||||||
# text/plain=gvim {} +125
|
|
||||||
# message/rfc822=thunderbird
|
|
||||||
|
|
||||||
[hooks]
|
|
||||||
#
|
|
||||||
# Hooks are triggered whenever the associated event occurs.
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when a new email arrives in the selected folder
|
|
||||||
#mail-received=notify-send "[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME" "$AERC_SUBJECT"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when mail is deleted from a folder
|
|
||||||
#mail-deleted=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when aerc adds mail to a folder
|
|
||||||
#mail-added=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when aerc starts
|
|
||||||
#aerc-startup=aerc :terminal calcurse && aerc :next-tab
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when aerc shuts down.
|
|
||||||
#aerc-shutdown=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when notmuch tags are modified.
|
|
||||||
#tag-modified=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Executed when flags are changed on a message.
|
|
||||||
#flag-changed=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
|
|
||||||
|
|
||||||
[templates]
|
|
||||||
# Templates are used to populate email bodies automatically.
|
|
||||||
#
|
|
||||||
|
|
||||||
# The directories where the templates are stored. It takes a colon-separated
|
|
||||||
# list of directories. If this is unset or if a template cannot be found, the
|
|
||||||
# following paths will be used as a fallback in that order:
|
|
||||||
#
|
|
||||||
# ${XDG_CONFIG_HOME:-~/.config}/aerc/templates
|
|
||||||
# ${XDG_DATA_HOME:-~/.local/share}/aerc/templates
|
|
||||||
# /usr/local/share/aerc/templates
|
|
||||||
# /usr/share/aerc/templates
|
|
||||||
#
|
|
||||||
#template-dirs=
|
|
||||||
|
|
||||||
# The default template to be used for new messages.
|
|
||||||
#
|
|
||||||
# default: new_message
|
|
||||||
#new-message=new_message
|
|
||||||
|
|
||||||
# The default template to be used for quoted replies.
|
|
||||||
#
|
|
||||||
# default: quoted_reply
|
|
||||||
#quoted-reply=quoted_reply
|
|
||||||
|
|
||||||
# The default template to be used for forward as body.
|
|
||||||
#
|
|
||||||
# default: forward_as_body
|
|
||||||
#forwards=forward_as_body
|
|
||||||
|
|
||||||
# Compte de recherche (notmuch) : on ajoute une colonne "dossier" qui montre
|
|
||||||
# où chaque message est rangé, déduite du chemin du fichier (.Filename).
|
|
||||||
# Les longs noms de comptes sont raccourcis en bb / jb / ac.
|
|
||||||
[ui:account=recherche]
|
|
||||||
index-columns=flags:4,date>10,folder<16,name<22%,subject
|
|
||||||
column-folder={{.Filename | replace "^.*/Mail/" "" | replace "/(cur|new)/[^/]*$" "" | replace "benjamin.bertrand_opytex.org" "bb" | replace "jost_bertrand_opytex.org" "jb" | replace "benjamin.bertrand_ac-lyon.fr" "ac"}}
|
|
||||||
@@ -1,206 +0,0 @@
|
|||||||
# Binds are of the form <key sequence> = <command to run>
|
|
||||||
# To use '=' in a key sequence, substitute it with "Eq": "<Ctrl+Eq>"
|
|
||||||
# If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit
|
|
||||||
<C-p> = :prev-tab<Enter>
|
|
||||||
<C-PgUp> = :prev-tab<Enter>
|
|
||||||
<C-n> = :next-tab<Enter>
|
|
||||||
<C-PgDn> = :next-tab<Enter>
|
|
||||||
\[t = :prev-tab<Enter>
|
|
||||||
\]t = :next-tab<Enter>
|
|
||||||
<C-t> = :term<Enter>
|
|
||||||
? = :help keys<Enter>
|
|
||||||
<C-c> = :prompt 'Quit?' quit<Enter>
|
|
||||||
<C-q> = :prompt 'Quit?' quit<Enter>
|
|
||||||
<C-z> = :suspend<Enter>
|
|
||||||
|
|
||||||
[messages]
|
|
||||||
q = :prompt 'Quit?' quit<Enter>
|
|
||||||
|
|
||||||
ga = :archive year<Enter>
|
|
||||||
gd = :delete<Enter>
|
|
||||||
gt = :move Todo<Enter>
|
|
||||||
gw = :move Attente<Enter>
|
|
||||||
|
|
||||||
j = :next<Enter>
|
|
||||||
<Down> = :next<Enter>
|
|
||||||
<C-d> = :next 50%<Enter>
|
|
||||||
<C-f> = :next 100%<Enter>
|
|
||||||
<PgDn> = :next 100%<Enter>
|
|
||||||
|
|
||||||
k = :prev<Enter>
|
|
||||||
<Up> = :prev<Enter>
|
|
||||||
<C-u> = :prev 50%<Enter>
|
|
||||||
<C-b> = :prev 100%<Enter>
|
|
||||||
<PgUp> = :prev 100%<Enter>
|
|
||||||
g = :select 0<Enter>
|
|
||||||
G = :select -1<Enter>
|
|
||||||
|
|
||||||
J = :next-folder<Enter>
|
|
||||||
<C-Down> = :next-folder<Enter>
|
|
||||||
K = :prev-folder<Enter>
|
|
||||||
<C-Up> = :prev-folder<Enter>
|
|
||||||
H = :collapse-folder<Enter>
|
|
||||||
<C-Left> = :collapse-folder<Enter>
|
|
||||||
L = :expand-folder<Enter>
|
|
||||||
<C-Right> = :expand-folder<Enter>
|
|
||||||
|
|
||||||
v = :mark -t<Enter>
|
|
||||||
<Space> = :mark -t<Enter>:next<Enter>
|
|
||||||
V = :mark -v<Enter>
|
|
||||||
|
|
||||||
T = :toggle-threads<Enter>
|
|
||||||
zc = :fold<Enter>
|
|
||||||
zo = :unfold<Enter>
|
|
||||||
za = :fold -t<Enter>
|
|
||||||
zM = :fold -a<Enter>
|
|
||||||
zR = :unfold -a<Enter>
|
|
||||||
<tab> = :fold -t<Enter>
|
|
||||||
|
|
||||||
zz = :align center<Enter>
|
|
||||||
zt = :align top<Enter>
|
|
||||||
zb = :align bottom<Enter>
|
|
||||||
|
|
||||||
<Enter> = :view<Enter>
|
|
||||||
d = :choose -o y 'Really delete this message' delete-message<Enter>
|
|
||||||
D = :delete<Enter>
|
|
||||||
a = :archive year<Enter>
|
|
||||||
A = :unmark -a<Enter>:mark -T<Enter>:archive flat<Enter>
|
|
||||||
|
|
||||||
C = :compose<Enter>
|
|
||||||
m = :compose<Enter>
|
|
||||||
|
|
||||||
b = :bounce<space>
|
|
||||||
|
|
||||||
rr = :reply -q<Enter>
|
|
||||||
rq = :reply<Enter>
|
|
||||||
Rr = :reply -aq<Enter>
|
|
||||||
Rq = :reply -a<Enter>
|
|
||||||
|
|
||||||
<F5> = :exec tmux split-window -h -l 25% 'msmtp-queue -r; mbsync -a && notmuch new'<Enter>
|
|
||||||
|
|
||||||
c = :cf<space>
|
|
||||||
$ = :term<space>
|
|
||||||
! = :term<space>
|
|
||||||
| = :pipe<space>
|
|
||||||
|
|
||||||
/ = :search<space>
|
|
||||||
\ = :filter<space>
|
|
||||||
n = :next-result<Enter>
|
|
||||||
N = :prev-result<Enter>
|
|
||||||
<Esc> = :clear<Enter>
|
|
||||||
|
|
||||||
s = :split<Enter>
|
|
||||||
S = :vsplit<Enter>
|
|
||||||
|
|
||||||
pl = :patch list<Enter>
|
|
||||||
pa = :patch apply <Tab>
|
|
||||||
pd = :patch drop <Tab>
|
|
||||||
pb = :patch rebase<Enter>
|
|
||||||
pt = :patch term<Enter>
|
|
||||||
ps = :patch switch <Tab>
|
|
||||||
|
|
||||||
[messages:account=recherche]
|
|
||||||
# / : recherche notmuch GLOBALE (tous comptes/dossiers). Crée un dossier
|
|
||||||
# d'historique nommé d'après la requête, rangé sous les dossiers fixes.
|
|
||||||
/ = :query<space>
|
|
||||||
# \ : affine la liste déjà affichée (= "and")
|
|
||||||
\ = :filter<space>
|
|
||||||
|
|
||||||
[messages:folder=Drafts]
|
|
||||||
<Enter> = :recall<Enter>
|
|
||||||
|
|
||||||
[view]
|
|
||||||
/ = :toggle-key-passthrough<Enter>/
|
|
||||||
q = :close<Enter>
|
|
||||||
O = :open<Enter>
|
|
||||||
o = :open<Enter>
|
|
||||||
S = :save<space>
|
|
||||||
| = :pipe<space>
|
|
||||||
D = :delete<Enter>
|
|
||||||
A = :archive year<Enter>
|
|
||||||
|
|
||||||
ga = :archive year<Enter>
|
|
||||||
gd = :delete<Enter>
|
|
||||||
gt = :move Todo<Enter>
|
|
||||||
gw = :move Attente<Enter>
|
|
||||||
|
|
||||||
<C-y> = :copy-link <space>
|
|
||||||
<C-l> = :open-link <space>
|
|
||||||
|
|
||||||
f = :forward<Enter>
|
|
||||||
rr = :reply -q<Enter>
|
|
||||||
rq = :reply<Enter>
|
|
||||||
Rr = :reply -aq<Enter>
|
|
||||||
Rq = :reply -a<Enter>
|
|
||||||
|
|
||||||
H = :toggle-headers<Enter>
|
|
||||||
<C-k> = :prev-part<Enter>
|
|
||||||
<C-Up> = :prev-part<Enter>
|
|
||||||
<C-j> = :next-part<Enter>
|
|
||||||
<C-Down> = :next-part<Enter>
|
|
||||||
J = :next<Enter>
|
|
||||||
<C-Right> = :next<Enter>
|
|
||||||
K = :prev<Enter>
|
|
||||||
<C-Left> = :prev<Enter>
|
|
||||||
|
|
||||||
[view::passthrough]
|
|
||||||
$noinherit = true
|
|
||||||
$ex = <C-x>
|
|
||||||
<Esc> = :toggle-key-passthrough<Enter>
|
|
||||||
|
|
||||||
[compose]
|
|
||||||
# Keybindings used when the embedded terminal is not selected in the compose
|
|
||||||
# view
|
|
||||||
$noinherit = true
|
|
||||||
$ex = <C-x>
|
|
||||||
$complete = <C-o>
|
|
||||||
<C-k> = :prev-field<Enter>
|
|
||||||
<C-Up> = :prev-field<Enter>
|
|
||||||
<C-j> = :next-field<Enter>
|
|
||||||
<C-Down> = :next-field<Enter>
|
|
||||||
<A-p> = :switch-account -p<Enter>
|
|
||||||
<C-Left> = :switch-account -p<Enter>
|
|
||||||
<A-n> = :switch-account -n<Enter>
|
|
||||||
<C-Right> = :switch-account -n<Enter>
|
|
||||||
<tab> = :next-field<Enter>
|
|
||||||
<backtab> = :prev-field<Enter>
|
|
||||||
<C-p> = :prev-tab<Enter>
|
|
||||||
<C-PgUp> = :prev-tab<Enter>
|
|
||||||
<C-n> = :next-tab<Enter>
|
|
||||||
<C-PgDn> = :next-tab<Enter>
|
|
||||||
|
|
||||||
[compose::editor]
|
|
||||||
# Keybindings used when the embedded terminal is selected in the compose view
|
|
||||||
$noinherit = true
|
|
||||||
$ex = <C-x>
|
|
||||||
<C-k> = :prev-field<Enter>
|
|
||||||
<C-Up> = :prev-field<Enter>
|
|
||||||
<C-j> = :next-field<Enter>
|
|
||||||
<C-Down> = :next-field<Enter>
|
|
||||||
<C-p> = :prev-tab<Enter>
|
|
||||||
<C-PgUp> = :prev-tab<Enter>
|
|
||||||
<C-n> = :next-tab<Enter>
|
|
||||||
<C-PgDn> = :next-tab<Enter>
|
|
||||||
|
|
||||||
[compose::review]
|
|
||||||
# Keybindings used when reviewing a message to be sent
|
|
||||||
# Inline comments are used as descriptions on the review screen
|
|
||||||
y = :send<Enter> # Send
|
|
||||||
n = :abort<Enter> # Abort (discard message, no confirmation)
|
|
||||||
s = :sign<Enter> # Toggle signing
|
|
||||||
x = :encrypt<Enter> # Toggle encryption to all recipients
|
|
||||||
v = :preview<Enter> # Preview message
|
|
||||||
p = :postpone<Enter> # Postpone
|
|
||||||
q = :choose -o d discard abort -o p postpone postpone<Enter> # Abort or postpone
|
|
||||||
e = :edit<Enter> # Edit (body and headers)
|
|
||||||
a = :attach<space> # Add attachment
|
|
||||||
d = :detach<space> # Remove attachment
|
|
||||||
|
|
||||||
[terminal]
|
|
||||||
$noinherit = true
|
|
||||||
$ex = <C-x>
|
|
||||||
|
|
||||||
<C-p> = :prev-tab<Enter>
|
|
||||||
<C-n> = :next-tab<Enter>
|
|
||||||
<C-PgUp> = :prev-tab<Enter>
|
|
||||||
<C-PgDn> = :next-tab<Enter>
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Query-map du compte notmuch « recherche » — voir aerc-notmuch(5).
|
|
||||||
# Format : <NOM AFFICHÉ>=<requête notmuch>
|
|
||||||
#
|
|
||||||
# Ce sont les dossiers FIXES, épinglés en haut de la barre (via folders-sort
|
|
||||||
# dans accounts.conf). Les recherches lancées avec « / » (:query) créent des
|
|
||||||
# dossiers nommés d'après la requête, qui s'accumulent EN DESSOUS (historique).
|
|
||||||
#
|
|
||||||
# Recherche globale (sujet/corps/expéditeur, tous comptes) : touche / puis termes
|
|
||||||
# /facture /from:dupont /subject:réunion /body:"compte rendu"
|
|
||||||
# / facture and path:benjamin.bertrand_ac-lyon.fr/** (un seul compte)
|
|
||||||
|
|
||||||
Tout=*
|
|
||||||
Non lus=tag:unread
|
|
||||||
Récents=date:1month..
|
|
||||||
bb_opytex=path:benjamin.bertrand_opytex.org/**
|
|
||||||
jb_opytex=path:jost_bertrand_opytex.org/**
|
|
||||||
ac_lyon=path:benjamin.bertrand_ac-lyon.fr/**
|
|
||||||
# Faux dossier servant de séparateur visuel (requête vide). Pas de virgule
|
|
||||||
# dans le nom (folders-sort est séparé par des virgules).
|
|
||||||
──── recherches ↓ ────=tag:_separateur_inexistant_
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
# vim: ft=dosini
|
|
||||||
# aerc gruvbox-dark styleset
|
|
||||||
# Palette: https://github.com/morhetz/gruvbox
|
|
||||||
#
|
|
||||||
# bg0_h=#1d2021 bg0=#282828 bg1=#3c3836 bg2=#504945
|
|
||||||
# bg3=#665c54 bg4=#7c6f64
|
|
||||||
# fg0=#fbf1c7 fg1=#ebdbb2 fg2=#d5c4a1 fg3=#bdae93 fg4=#a89984
|
|
||||||
# red=#cc241d bright-red=#fb4934
|
|
||||||
# green=#98971a bright-green=#b8bb26
|
|
||||||
# yellow=#d79921 bright-yellow=#fabd2f
|
|
||||||
# blue=#458588 bright-blue=#83a598
|
|
||||||
# purple=#b16286 bright-purple=#d3869b
|
|
||||||
# aqua=#689d6a bright-aqua=#8ec07c
|
|
||||||
# orange=#d65d0e bright-orange=#fe8019
|
|
||||||
# gray=#928374
|
|
||||||
|
|
||||||
*.default=true
|
|
||||||
*.normal=true
|
|
||||||
|
|
||||||
default.bg=#282828
|
|
||||||
default.fg=#ebdbb2
|
|
||||||
|
|
||||||
error.fg=#fb4934
|
|
||||||
error.bold=true
|
|
||||||
warning.fg=#fabd2f
|
|
||||||
warning.bold=true
|
|
||||||
success.fg=#b8bb26
|
|
||||||
success.bold=true
|
|
||||||
|
|
||||||
# Tabs
|
|
||||||
tab.bg=#1d2021
|
|
||||||
tab.fg=#a89984
|
|
||||||
tab.selected.bg=#3c3836
|
|
||||||
tab.selected.fg=#ebdbb2
|
|
||||||
tab.selected.bold=true
|
|
||||||
|
|
||||||
# Borders
|
|
||||||
border.fg=#504945
|
|
||||||
border.bold=false
|
|
||||||
|
|
||||||
# Headers (composer/viewer field labels)
|
|
||||||
header.fg=#83a598
|
|
||||||
header.bold=true
|
|
||||||
|
|
||||||
# Message list
|
|
||||||
msglist_unread.bold=true
|
|
||||||
msglist_unread.fg=#fabd2f
|
|
||||||
msglist_flagged.fg=#fe8019
|
|
||||||
msglist_flagged.bold=true
|
|
||||||
msglist_deleted.dim=true
|
|
||||||
msglist_marked.bg=#504945
|
|
||||||
msglist_marked.fg=#ebdbb2
|
|
||||||
msglist_result.fg=#83a598
|
|
||||||
msglist_result.bold=true
|
|
||||||
|
|
||||||
msglist_*.selected.bg=#504945
|
|
||||||
msglist_*.selected.bold=true
|
|
||||||
msglist_unread.selected.bg=#504945
|
|
||||||
msglist_unread.selected.fg=#fabd2f
|
|
||||||
|
|
||||||
# Directory list
|
|
||||||
dirlist_*.selected.bg=#504945
|
|
||||||
dirlist_*.selected.bold=true
|
|
||||||
dirlist_unread.fg=#fabd2f
|
|
||||||
dirlist_recent.fg=#fe8019
|
|
||||||
|
|
||||||
# Status line (matches tmux-gruvbox bar)
|
|
||||||
statusline_default.bg=#3c3836
|
|
||||||
statusline_default.fg=#a89984
|
|
||||||
statusline_error.bg=#cc241d
|
|
||||||
statusline_error.fg=#ebdbb2
|
|
||||||
statusline_error.bold=true
|
|
||||||
statusline_success.fg=#b8bb26
|
|
||||||
statusline_success.bold=true
|
|
||||||
|
|
||||||
# Completion popover
|
|
||||||
completion_default.bg=#282828
|
|
||||||
completion_default.fg=#ebdbb2
|
|
||||||
completion_default.selected.bg=#504945
|
|
||||||
completion_pill.bg=#458588
|
|
||||||
completion_pill.fg=#1d2021
|
|
||||||
completion_description.dim=true
|
|
||||||
|
|
||||||
# MIME type switcher
|
|
||||||
part_mimetype.fg=#928374
|
|
||||||
part_mimetype.selected.bg=#504945
|
|
||||||
part_mimetype.selected.fg=#ebdbb2
|
|
||||||
part_filename.selected.bold=true
|
|
||||||
part_filename.selected.bg=#504945
|
|
||||||
|
|
||||||
# Selector
|
|
||||||
selector_focused.bg=#504945
|
|
||||||
selector_focused.bold=true
|
|
||||||
selector_chooser.bold=true
|
|
||||||
|
|
||||||
[viewer]
|
|
||||||
*.default=true
|
|
||||||
*.normal=true
|
|
||||||
|
|
||||||
url.fg=#fabd2f
|
|
||||||
url.underline=true
|
|
||||||
|
|
||||||
header.bold=true
|
|
||||||
header.fg=#d3869b
|
|
||||||
|
|
||||||
signature.dim=true
|
|
||||||
signature.fg=#928374
|
|
||||||
|
|
||||||
diff_meta.bold=true
|
|
||||||
diff_meta.fg=#a89984
|
|
||||||
diff_chunk.fg=#83a598
|
|
||||||
diff_chunk.dim=true
|
|
||||||
diff_chunk_func.fg=#83a598
|
|
||||||
diff_chunk_func.dim=true
|
|
||||||
diff_add.fg=#b8bb26
|
|
||||||
diff_del.fg=#fb4934
|
|
||||||
|
|
||||||
quote_1.fg=#83a598
|
|
||||||
quote_2.fg=#8ec07c
|
|
||||||
quote_3.fg=#a89984
|
|
||||||
quote_3.dim=true
|
|
||||||
quote_4.fg=#928374
|
|
||||||
quote_4.dim=true
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
[general]
|
|
||||||
status_path = "~/.local/share/vdirsyncer/status/"
|
|
||||||
|
|
||||||
[pair cloud_opytex_contact]
|
|
||||||
a = "cloud_opytex_contact_local"
|
|
||||||
b = "cloud_opytex_contact_remote"
|
|
||||||
collections = ["from a", "from b"]
|
|
||||||
conflict_resolution = "b wins"
|
|
||||||
|
|
||||||
[storage cloud_opytex_contact_local]
|
|
||||||
type = "filesystem"
|
|
||||||
path = "~/.contacts/contacts/"
|
|
||||||
fileext = ".vcf"
|
|
||||||
|
|
||||||
[storage cloud_opytex_contact_remote]
|
|
||||||
type = "carddav"
|
|
||||||
url = "https://cloud.poneyworld.net/remote.php/dav/addressbooks/users/lafrite/contacts/"
|
|
||||||
username = "lafrite"
|
|
||||||
password.fetch = ["command", "pass", "OVH/Panais/docker/cloud.poneyworld.net/lafrite"]
|
|
||||||
|
|
||||||
[pair cloud_opytex_calendar]
|
|
||||||
a = "cloud_opytex_calendar_local"
|
|
||||||
b = "cloud_opytex_calendar_remote"
|
|
||||||
collections = ["from b"]
|
|
||||||
conflict_resolution = "b wins"
|
|
||||||
|
|
||||||
[storage cloud_opytex_calendar_local]
|
|
||||||
type = "filesystem"
|
|
||||||
path = "~/.calendars/"
|
|
||||||
fileext = ".ics"
|
|
||||||
|
|
||||||
[storage cloud_opytex_calendar_remote]
|
|
||||||
type = "caldav"
|
|
||||||
url = "https://cloud.poneyworld.net/remote.php/dav/calendars/lafrite/"
|
|
||||||
username = "lafrite"
|
|
||||||
password.fetch = ["command", "pass", "OVH/Panais/docker/cloud.poneyworld.net/lafrite"]
|
|
||||||
@@ -1,119 +0,0 @@
|
|||||||
|
|
||||||
[colors]
|
|
||||||
draw_bold_text_with_bright_colors = true
|
|
||||||
|
|
||||||
[colors.bright]
|
|
||||||
black = "#928374"
|
|
||||||
blue = "#83a598"
|
|
||||||
cyan = "#8ec07c"
|
|
||||||
green = "#b8bb26"
|
|
||||||
magenta = "#d3869b"
|
|
||||||
red = "#fb4934"
|
|
||||||
white = "#ebdbb2"
|
|
||||||
yellow = "#fabd2f"
|
|
||||||
|
|
||||||
[colors.normal]
|
|
||||||
black = "#282828"
|
|
||||||
blue = "#458588"
|
|
||||||
cyan = "#689d6a"
|
|
||||||
green = "#98971a"
|
|
||||||
magenta = "#b16286"
|
|
||||||
red = "#cc241d"
|
|
||||||
white = "#a89984"
|
|
||||||
yellow = "#d79921"
|
|
||||||
|
|
||||||
[colors.primary]
|
|
||||||
background = "#32302f"
|
|
||||||
foreground = "#ebdbb2"
|
|
||||||
|
|
||||||
[cursor]
|
|
||||||
style = "Block"
|
|
||||||
unfocused_hollow = true
|
|
||||||
|
|
||||||
[font]
|
|
||||||
size = 12.0
|
|
||||||
|
|
||||||
[font.bold]
|
|
||||||
family = "UbuntuMono Nerd Font"
|
|
||||||
style = "Bold"
|
|
||||||
|
|
||||||
[font.bold_italic]
|
|
||||||
family = "UbuntuMono Nerd Font"
|
|
||||||
style = "Bold Italic"
|
|
||||||
|
|
||||||
[font.glyph_offset]
|
|
||||||
x = 0
|
|
||||||
y = 0
|
|
||||||
|
|
||||||
[font.italic]
|
|
||||||
family = "UbuntuMono Nerd Font"
|
|
||||||
style = "Italic"
|
|
||||||
|
|
||||||
[font.normal]
|
|
||||||
family = "UbuntuMono Nerd Font"
|
|
||||||
style = "Regular"
|
|
||||||
|
|
||||||
[font.offset]
|
|
||||||
x = 0
|
|
||||||
y = 0
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "Paste"
|
|
||||||
key = "V"
|
|
||||||
mods = "Control|Shift"
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "Copy"
|
|
||||||
key = "C"
|
|
||||||
mods = "Control|Shift"
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "ResetFontSize"
|
|
||||||
key = "Key0"
|
|
||||||
mods = "Control"
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "IncreaseFontSize"
|
|
||||||
key = "Equals"
|
|
||||||
mods = "Control"
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "IncreaseFontSize"
|
|
||||||
key = "NumpadAdd"
|
|
||||||
mods = "Control"
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "DecreaseFontSize"
|
|
||||||
key = "NumpadSubtract"
|
|
||||||
mods = "Control"
|
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
|
||||||
action = "DecreaseFontSize"
|
|
||||||
key = "Minus"
|
|
||||||
mods = "Control"
|
|
||||||
|
|
||||||
[[mouse.bindings]]
|
|
||||||
action = "PasteSelection"
|
|
||||||
mouse = "Middle"
|
|
||||||
|
|
||||||
[scrolling]
|
|
||||||
history = 10000
|
|
||||||
multiplier = 10
|
|
||||||
|
|
||||||
[selection]
|
|
||||||
save_to_clipboard = true
|
|
||||||
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
|
|
||||||
|
|
||||||
[window]
|
|
||||||
decorations = "none"
|
|
||||||
|
|
||||||
[window.dimensions]
|
|
||||||
columns = 100
|
|
||||||
lines = 20
|
|
||||||
|
|
||||||
[window.padding]
|
|
||||||
x = 2
|
|
||||||
y = 2
|
|
||||||
|
|
||||||
[general]
|
|
||||||
live_config_reload = true
|
|
||||||
12
fish/.config/fish/config.fish
Normal file
12
fish/.config/fish/config.fish
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
if not functions -q fisher
|
||||||
|
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
|
||||||
|
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
|
||||||
|
fish -c fisher
|
||||||
|
end
|
||||||
|
|
||||||
|
set -Ux EDITOR vim
|
||||||
|
|
||||||
|
set -Ux FZF_DEFAULT_OPTS '--height 40% --layout=reverse --border'
|
||||||
|
|
||||||
|
#fisher add jethrokuan/fzf
|
||||||
|
|
||||||
2
fish/.config/fish/fishfile
Normal file
2
fish/.config/fish/fishfile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
jethrokuan/fzf
|
||||||
|
oh-my-fish/plugin-bang-bang
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
show-actions=yes
|
|
||||||
width=80
|
|
||||||
[colors]
|
|
||||||
background=1e1e2e99
|
|
||||||
text=cdd6f4ff
|
|
||||||
prompt=bac2deff
|
|
||||||
placeholder=7f849cff
|
|
||||||
input=cdd6f4ff
|
|
||||||
match=f38ba8ff
|
|
||||||
selection=585b70ff
|
|
||||||
selection-text=cdd6f4ff
|
|
||||||
selection-match=f38ba8ff
|
|
||||||
counter=7f849cff
|
|
||||||
border=f38ba8ff
|
|
||||||
@@ -3,5 +3,3 @@
|
|||||||
email = benjamin.bertrand@opytex.org
|
email = benjamin.bertrand@opytex.org
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
[fetch]
|
|
||||||
recurseSubmodules = false
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
# Verrouillage manuel de l'écran
|
|
||||||
# SUPER + X pour verrouiller, mot de passe pour déverrouiller
|
|
||||||
bind = $mainMod, x, exec, hyprlock
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# Voxtype compositor integration
|
|
||||||
# Fixes modifier key interference when using compositor keybindings
|
|
||||||
# Generated by: voxtype setup compositor hyprland
|
|
||||||
#
|
|
||||||
# Two submaps are used:
|
|
||||||
# - voxtype_recording: Active during recording/transcription. F12 cancels.
|
|
||||||
# - voxtype_suppress: Active during text output. Blocks modifier keys.
|
|
||||||
#
|
|
||||||
# NOTE: Do not bind Escape in voxtype_suppress. Binding Escape causes wtype's
|
|
||||||
# first character to be dropped. See: https://github.com/hyprwm/Hyprland/issues/3165
|
|
||||||
|
|
||||||
bind = $mainMod, v, exec, voxtype record toggle
|
|
||||||
# bindr = SUPER, V, exec, voxtype record stop
|
|
||||||
|
|
||||||
# Recording submap - active during recording and transcription
|
|
||||||
# F12 cancels recording/transcription and returns to normal
|
|
||||||
submap = voxtype_recording
|
|
||||||
bind = , F12, exec, voxtype record cancel
|
|
||||||
bind = , F12, submap, reset
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
# Output submap - blocks modifier keys during text output
|
|
||||||
submap = voxtype_suppress
|
|
||||||
bind = , SUPER_L, exec, true
|
|
||||||
bind = , SUPER_R, exec, true
|
|
||||||
bind = , Control_L, exec, true
|
|
||||||
bind = , Control_R, exec, true
|
|
||||||
bind = , Alt_L, exec, true
|
|
||||||
bind = , Alt_R, exec, true
|
|
||||||
bind = , Shift_L, exec, true
|
|
||||||
bind = , Shift_R, exec, true
|
|
||||||
bind = , F12, submap, reset # Emergency escape if voxtype crashes
|
|
||||||
submap = reset
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
general {
|
|
||||||
lock_cmd = pidof hyprlock || hyprlock
|
|
||||||
before_sleep_cmd = loginctl lock-session
|
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on
|
|
||||||
ignore_dbus_inhibit = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# 5 min → extinction écran
|
|
||||||
listener {
|
|
||||||
timeout = 300
|
|
||||||
on-timeout = hyprctl dispatch dpms off
|
|
||||||
on-resume = hyprctl dispatch dpms on
|
|
||||||
}
|
|
||||||
|
|
||||||
# 10 min → verrouillage
|
|
||||||
listener {
|
|
||||||
timeout = 600
|
|
||||||
on-timeout = loginctl lock-session
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,351 +0,0 @@
|
|||||||
|
|
||||||
################
|
|
||||||
### MONITORS ###
|
|
||||||
################
|
|
||||||
|
|
||||||
# Configuration dynamique des moniteurs via monitor-manager.sh
|
|
||||||
# See https://wiki.hypr.land/Configuring/Monitors/
|
|
||||||
source = ~/.config/hypr/monitors.conf
|
|
||||||
|
|
||||||
# Exécution du script de gestion automatique des moniteurs
|
|
||||||
exec-once = ~/.config/hypr/monitor-events.sh
|
|
||||||
|
|
||||||
# Configuration des workspaces (sera mise à jour dynamiquement)
|
|
||||||
source = ~/.config/hypr/workspaces.conf
|
|
||||||
|
|
||||||
###################
|
|
||||||
### MY PROGRAMS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
|
||||||
|
|
||||||
# Set programs that you use
|
|
||||||
$terminal = alacritty
|
|
||||||
$menu = fuzzel
|
|
||||||
$pass = tessen
|
|
||||||
|
|
||||||
|
|
||||||
#################
|
|
||||||
### AUTOSTART ###
|
|
||||||
#################
|
|
||||||
|
|
||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
# Or execute your favorite apps at launch like this:
|
|
||||||
|
|
||||||
# exec-once = $terminal
|
|
||||||
exec-once = nm-applet
|
|
||||||
exec-once = blueman-applet
|
|
||||||
exec-once = waybar -c ~/.config/waybar/config_hyprland &
|
|
||||||
exec-once = hyprpaper
|
|
||||||
exec-once = hyprsunset -t 4500
|
|
||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
||||||
exec-once = hypridle
|
|
||||||
exec-once = [workspace special silent] $terminal ncmpcpp
|
|
||||||
exec-once = [workspace 1] zen-browser
|
|
||||||
exec-once = [workspace 2 silent] thunderbird
|
|
||||||
exec-once = super-whisper-linux
|
|
||||||
|
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### PERMISSIONS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Permissions/
|
|
||||||
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
|
||||||
# for security reasons
|
|
||||||
|
|
||||||
# ecosystem {
|
|
||||||
# enforce_permissions = 1
|
|
||||||
# }
|
|
||||||
|
|
||||||
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
|
||||||
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
|
||||||
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
|
||||||
|
|
||||||
|
|
||||||
#####################
|
|
||||||
### LOOK AND FEEL ###
|
|
||||||
#####################
|
|
||||||
|
|
||||||
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
|
||||||
general {
|
|
||||||
gaps_in = 0
|
|
||||||
gaps_out = 0
|
|
||||||
|
|
||||||
border_size = 2
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
col.inactive_border = rgba(595959aa)
|
|
||||||
|
|
||||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
|
||||||
resize_on_border = true
|
|
||||||
|
|
||||||
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
|
|
||||||
allow_tearing = false
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
|
||||||
decoration {
|
|
||||||
rounding = 4
|
|
||||||
rounding_power = 2
|
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1.0
|
|
||||||
inactive_opacity = 1.0
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = true
|
|
||||||
range = 4
|
|
||||||
render_power = 3
|
|
||||||
color = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#blur
|
|
||||||
blur {
|
|
||||||
enabled = true
|
|
||||||
size = 8
|
|
||||||
passes = 2
|
|
||||||
|
|
||||||
vibrancy = 0.1696
|
|
||||||
special = true # Enable blur for special workspace background
|
|
||||||
popups = true # Enable blur for popups and layer surfaces
|
|
||||||
popups_ignorealpha = 0.2 # Apply blur even on semi-transparent popups
|
|
||||||
}
|
|
||||||
|
|
||||||
dim_special = 0.5 # Darken background behind special workspace (0.0 = no dim, 1.0 = black)
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#animations
|
|
||||||
animations {
|
|
||||||
enabled = yes, please :)
|
|
||||||
|
|
||||||
# Default animations, see https://wiki.hypr.land/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
bezier = easeOutQuint,0.23,1,0.32,1
|
|
||||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
|
||||||
bezier = linear,0,0,1,1
|
|
||||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
|
||||||
bezier = quick,0.15,0,0.1,1
|
|
||||||
|
|
||||||
animation = global, 1, 10, default
|
|
||||||
animation = border, 1, 5.39, easeOutQuint
|
|
||||||
animation = windows, 1, 4.79, easeOutQuint
|
|
||||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
|
||||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
|
||||||
animation = fadeIn, 1, 1.73, almostLinear
|
|
||||||
animation = fadeOut, 1, 1.46, almostLinear
|
|
||||||
animation = fade, 1, 3.03, quick
|
|
||||||
animation = layers, 1, 3.81, easeOutQuint
|
|
||||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
|
||||||
animation = layersOut, 1, 1.5, linear, fade
|
|
||||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
|
||||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
|
||||||
animation = workspaces, 1, 1.94, almostLinear, fade
|
|
||||||
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
|
||||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
|
||||||
}
|
|
||||||
|
|
||||||
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
|
|
||||||
# "Smart gaps" / "No gaps when only"
|
|
||||||
# uncomment all if you wish to use that.
|
|
||||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
|
||||||
# workspace = f[1], gapsout:0, gapsin:0
|
|
||||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
|
||||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
|
||||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
|
||||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
|
||||||
workspace = special, gapsout:100, gapsin:20
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
|
||||||
dwindle {
|
|
||||||
preserve_split = true # You probably want this
|
|
||||||
special_scale_factor = 0.8 # Scale factor for special workspace windows (0.8 = 80% with visible padding)
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
|
|
||||||
master {
|
|
||||||
new_status = master
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#misc
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
||||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#############
|
|
||||||
### INPUT ###
|
|
||||||
#############
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#input
|
|
||||||
input {
|
|
||||||
kb_layout = fr
|
|
||||||
kb_variant = azerty
|
|
||||||
# kb_variant = ergol
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Configuration souris multi-écrans
|
|
||||||
cursor {
|
|
||||||
no_break_fs_vrr = true
|
|
||||||
min_refresh_rate = 24
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#gestures
|
|
||||||
# gestures {
|
|
||||||
# workspace_swipe = true
|
|
||||||
# workspace_swipe_fingers = 3
|
|
||||||
# }
|
|
||||||
gesture = 3, horizontal, workspace
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### KEYBINDINGS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
# Exit
|
|
||||||
bind = $mainMod SHIFT, e, exec, hyprctl dispatch exit 0 # exit Hyprland
|
|
||||||
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
|
|
||||||
bind = $mainMod, Return, exec, $terminal
|
|
||||||
bind = $mainMod, q, killactive,
|
|
||||||
bind = $mainMod, f, fullscreen,
|
|
||||||
bind = $mainMod, d, exec, $menu
|
|
||||||
bind = $mainMod, p, exec, $pass
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, h, movefocus, l
|
|
||||||
bind = $mainMod, l, movefocus, r
|
|
||||||
bind = $mainMod, k, movefocus, u
|
|
||||||
bind = $mainMod, j, movefocus, d
|
|
||||||
bind = $mainMod, left, movefocus, l
|
|
||||||
bind = $mainMod, right, movefocus, r
|
|
||||||
bind = $mainMod, up, movefocus, u
|
|
||||||
bind = $mainMod, down, movefocus, d
|
|
||||||
|
|
||||||
# Navigate between monitors
|
|
||||||
bind = $mainMod CTRL, h, focusmonitor, l
|
|
||||||
bind = $mainMod CTRL, l, focusmonitor, r
|
|
||||||
bind = $mainMod CTRL, left, focusmonitor, l
|
|
||||||
bind = $mainMod CTRL, right, focusmonitor, r
|
|
||||||
|
|
||||||
# Move windows
|
|
||||||
bind = $mainMod SHIFT, left, movewindow, l
|
|
||||||
bind = $mainMod SHIFT, right, movewindow, r
|
|
||||||
bind = $mainMod SHIFT, up, movewindow, u
|
|
||||||
bind = $mainMod SHIFT, down, movewindow, d
|
|
||||||
bind = $mainMod SHIFT, h, movewindow, l
|
|
||||||
bind = $mainMod SHIFT, l, movewindow, r
|
|
||||||
bind = $mainMod SHIFT, k, movewindow, u
|
|
||||||
bind = $mainMod SHIFT, j, movewindow, d
|
|
||||||
|
|
||||||
# Move windows between monitors
|
|
||||||
bind = $mainMod SHIFT CTRL, h, movewindow, mon:l
|
|
||||||
bind = $mainMod SHIFT CTRL, l, movewindow, mon:r
|
|
||||||
bind = $mainMod SHIFT CTRL, left, movewindow, mon:l
|
|
||||||
bind = $mainMod SHIFT CTRL, right, movewindow, mon:r
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, code:10, workspace, 1
|
|
||||||
bind = $mainMod, code:11, workspace, 2
|
|
||||||
bind = $mainMod, code:12, workspace, 3
|
|
||||||
bind = $mainMod, code:13, workspace, 4
|
|
||||||
bind = $mainMod, code:14, workspace, 5
|
|
||||||
bind = $mainMod, code:15, workspace, 6
|
|
||||||
bind = $mainMod, code:16, workspace, 7
|
|
||||||
bind = $mainMod, code:17, workspace, 8
|
|
||||||
bind = $mainMod, code:18, workspace, 9
|
|
||||||
bind = $mainMod, code:19, workspace, 10
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, code:10, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, code:11, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, code:12, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, code:13, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, code:14, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, code:15, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, code:16, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, code:17, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, code:18, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, code:19, movetoworkspace, 10
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
bind = $mainMod, s, togglespecialworkspace, magic
|
|
||||||
bind = $mainMod SHIFT, s, movetoworkspace, special:magic
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, Space, workspace, previous
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
|
|
||||||
# printscreen
|
|
||||||
|
|
||||||
bind = , PRINT, exec, ~/.local/bin/sway/rofi_screenshot.sh 2>> ~/tmp/rofi_debug.log
|
|
||||||
|
|
||||||
bind = $mainMod, R, resizeactive, exact 66% 100%
|
|
||||||
|
|
||||||
# Couvercle laptop
|
|
||||||
bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/lid.sh
|
|
||||||
bindl = , switch:off:Lid Switch, exec, ~/.config/hypr/lid.sh
|
|
||||||
|
|
||||||
# Info moniteurs
|
|
||||||
bind = $mainMod SHIFT CTRL, M, exec, notify-send "Monitors" "$(hyprctl monitors | grep -E '^Monitor|^\s+at|^\s+resolution' | sed 's/^\s*/ /')"
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, R, exec, super-whisper-linux trigger toggle
|
|
||||||
|
|
||||||
##############################
|
|
||||||
### WINDOWS AND WORKSPACES ###
|
|
||||||
##############################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
|
||||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
|
||||||
|
|
||||||
windowrule = match:class nm-connection-editor, float on
|
|
||||||
windowrule = match:class blueman-manager, float on
|
|
||||||
|
|
||||||
source = ~/.config/hypr/hyprland-gui.conf
|
|
||||||
source = ~/.config/hypr/conf.d/*.conf
|
|
||||||
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
general {
|
|
||||||
hide_cursor = true
|
|
||||||
grace = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# Fond : screenshot flouté + assombri
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = screenshot
|
|
||||||
blur_size = 7
|
|
||||||
blur_passes = 3
|
|
||||||
brightness = 0.7
|
|
||||||
contrast = 0.9
|
|
||||||
vibrancy = 0.2
|
|
||||||
}
|
|
||||||
|
|
||||||
# Heure
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(date +'%H:%M')"
|
|
||||||
color = rgba(ffffffff)
|
|
||||||
font_size = 80
|
|
||||||
font_family = Noto Sans Mono Bold
|
|
||||||
position = 0, 120
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# Date
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:60000] LC_TIME=fr_FR.UTF-8 date +'%A %d %B'
|
|
||||||
color = rgba(ffffffbb)
|
|
||||||
font_size = 22
|
|
||||||
font_family = Noto Sans Mono
|
|
||||||
position = 0, 40
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# Champ de saisie
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 320, 52
|
|
||||||
outline_thickness = 2
|
|
||||||
dots_size = 0.25
|
|
||||||
dots_spacing = 0.2
|
|
||||||
dots_center = true
|
|
||||||
outer_color = rgba(ffffff44)
|
|
||||||
inner_color = rgba(00000099)
|
|
||||||
font_color = rgba(ffffffff)
|
|
||||||
fade_on_empty = true
|
|
||||||
placeholder_text = <i>Mot de passe</i>
|
|
||||||
check_color = rgba(00ff99cc)
|
|
||||||
fail_color = rgba(ff5555cc)
|
|
||||||
fail_text = <i>Raté ($ATTEMPTS)</i>
|
|
||||||
capslock_color = rgba(ffaa00cc)
|
|
||||||
numlock_color = -1
|
|
||||||
position = 0, -40
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
preload = /home/lafrite/Images/Wallpapers/coraill.jpg
|
|
||||||
|
|
||||||
wallpaper = ,/home/lafrite/Images/Wallpapers/coraill.jpg
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
~/.config/hypr/monitor-manager.sh
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Écoute les événements Hyprland IPC et reconfigure les moniteurs à chaud
|
|
||||||
|
|
||||||
MANAGER=~/.config/hypr/monitor-manager.sh
|
|
||||||
SOCKET="/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
|
|
||||||
|
|
||||||
# Attendre que Hyprland soit prêt
|
|
||||||
until [[ -S "$SOCKET" ]]; do sleep 0.2; done
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
# Configuration initiale
|
|
||||||
"$MANAGER"
|
|
||||||
|
|
||||||
# Debounce : annule et replanifie si plusieurs événements arrivent d'un coup (dock, etc.)
|
|
||||||
PENDING_PID=""
|
|
||||||
configure_debounced() {
|
|
||||||
[[ -n "$PENDING_PID" ]] && kill "$PENDING_PID" 2>/dev/null
|
|
||||||
(sleep 0.8; "$MANAGER") &
|
|
||||||
PENDING_PID=$!
|
|
||||||
}
|
|
||||||
|
|
||||||
# Écouter la socket IPC
|
|
||||||
socat -u "UNIX-CONNECT:$SOCKET" STDOUT | while IFS= read -r line; do
|
|
||||||
case "${line%%>>*}" in
|
|
||||||
monitoradded|monitorremoved)
|
|
||||||
configure_debounced
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Configure les moniteurs via hyprctl keyword (pas de reload, pas d'écriture de fichiers)
|
|
||||||
|
|
||||||
PHILIPS="PHL 223V5"
|
|
||||||
SAMSUNG="LS27A600U"
|
|
||||||
|
|
||||||
is_lid_closed() {
|
|
||||||
for path in /proc/acpi/button/lid/LID0/state \
|
|
||||||
/proc/acpi/button/lid/LID/state \
|
|
||||||
/proc/acpi/button/lid/LID1/state; do
|
|
||||||
[[ -r "$path" ]] && grep -q "closed" "$path" && return 0
|
|
||||||
done
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
main() {
|
|
||||||
local json
|
|
||||||
json=$(hyprctl monitors all -j 2>/dev/null)
|
|
||||||
|
|
||||||
local philips_name samsung_name
|
|
||||||
philips_name=$(echo "$json" | jq -r '[.[] | select(.description | contains("PHL 223V5"))][0].name // empty')
|
|
||||||
samsung_name=$(echo "$json" | jq -r '[.[] | select(.description | contains("LS27A600U"))][0].name // empty')
|
|
||||||
|
|
||||||
local -a others=()
|
|
||||||
while IFS= read -r name; do
|
|
||||||
[[ -n "$name" ]] && others+=("$name")
|
|
||||||
done < <(echo "$json" | jq -r '.[] | select(.name != "eDP-1") | select(.description | test("PHL 223V5|LS27A600U") | not) | .name')
|
|
||||||
|
|
||||||
local has_externals=false
|
|
||||||
[[ -n "$philips_name" || -n "$samsung_name" || ${#others[@]} -gt 0 ]] && has_externals=true
|
|
||||||
|
|
||||||
# Lid fermé + aucun externe → veille
|
|
||||||
if is_lid_closed && [[ "$has_externals" == false ]]; then
|
|
||||||
systemctl suspend
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# eDP-1 : actif si lid ouvert, désactivé si lid fermé
|
|
||||||
if is_lid_closed; then
|
|
||||||
hyprctl keyword monitor "eDP-1,disable"
|
|
||||||
else
|
|
||||||
hyprctl keyword monitor "eDP-1,preferred,0x0,1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Philips portrait (1920x0, à droite de eDP-1)
|
|
||||||
[[ -n "$philips_name" ]] && \
|
|
||||||
hyprctl keyword monitor "$philips_name,1920x1080@60,1920x0,1,transform,1"
|
|
||||||
|
|
||||||
# Samsung (3000x0 = 1920 eDP-1 + 1080 Philips portrait)
|
|
||||||
[[ -n "$samsung_name" ]] && \
|
|
||||||
hyprctl keyword monitor "$samsung_name,2560x1440@74.971,3000x0,1"
|
|
||||||
|
|
||||||
# Écrans inconnus (à droite de Samsung)
|
|
||||||
local x=5560
|
|
||||||
for name in "${others[@]}"; do
|
|
||||||
hyprctl keyword monitor "$name,preferred,${x}x0,1"
|
|
||||||
((x += 1920))
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
main
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
#!/usr/bin/env zsh
|
|
||||||
|
|
||||||
# Menu de sélection des modes d'affichage pour Hyprland
|
|
||||||
# Utilise fuzzel comme sélecteur
|
|
||||||
|
|
||||||
# Options du menu
|
|
||||||
menu_items="🏠 Internal - Écran portable seul
|
|
||||||
🖥️ Desk - Bureau (2 écrans externes)
|
|
||||||
🎒 Nomad - Portable + externe(s)
|
|
||||||
🔄 Auto - Détection automatique"
|
|
||||||
|
|
||||||
# Afficher le menu et capturer la sélection
|
|
||||||
selected=$(echo "$menu_items" | fuzzel --dmenu --prompt="Mode d'affichage: " --width=40 --lines=4)
|
|
||||||
|
|
||||||
# Extraire le mode de la sélection
|
|
||||||
case "$selected" in
|
|
||||||
*"Internal"*)
|
|
||||||
mode="internal"
|
|
||||||
;;
|
|
||||||
*"Desk"*)
|
|
||||||
mode="desk"
|
|
||||||
;;
|
|
||||||
*"Nomad"*)
|
|
||||||
mode="nomad"
|
|
||||||
;;
|
|
||||||
*"Auto"*)
|
|
||||||
mode="auto"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# Annulation ou sélection invalide
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Exécuter le changement de mode
|
|
||||||
~/.config/hypr/monitor-manager.sh "$mode"
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
# eDP-1 toujours à scale 1 dès le boot
|
|
||||||
monitor=eDP-1,preferred,auto,1
|
|
||||||
# Catch-all pour les autres
|
|
||||||
monitor=,preferred,auto,auto
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Quand un moniteur est absent, ses workspaces rejoignent eDP-1 automatiquement
|
|
||||||
# → tous les 10 workspaces sont toujours accessibles
|
|
||||||
|
|
||||||
# eDP-1 (laptop) : 1-4
|
|
||||||
workspace = 1, monitor:eDP-1, default:true
|
|
||||||
workspace = 2, monitor:eDP-1
|
|
||||||
workspace = 3, monitor:eDP-1
|
|
||||||
workspace = 4, monitor:eDP-1
|
|
||||||
|
|
||||||
# DVI-I-1 (Samsung) : 5-7
|
|
||||||
workspace = 5, monitor:DVI-I-1, default:true
|
|
||||||
workspace = 6, monitor:DVI-I-1
|
|
||||||
workspace = 7, monitor:DVI-I-1
|
|
||||||
|
|
||||||
# DVI-I-2 (Philips portrait) : 8-10
|
|
||||||
workspace = 8, monitor:DVI-I-2
|
|
||||||
workspace = 9, monitor:DVI-I-2
|
|
||||||
workspace = 10, monitor:DVI-I-2
|
|
||||||
|
|
||||||
workspace = special, gapsout:100, gapsin:20
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/kanata.service
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/msmtp-queue.path
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/lib/systemd/user/pipewire.service
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/voxtype.service
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Kanata keyboard remapper
|
|
||||||
Documentation=https://github.com/jtroo/kanata
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Environment=PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin
|
|
||||||
Environment=DISPLAY=:0
|
|
||||||
Environment=HOME=/home/lafrite/
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/kanata --cfg /home/lafrite/scripts/Cloned/arsenik/kanata/kanata.kbd
|
|
||||||
Restart=no
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=mbsync mail sync
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/mbsync -a
|
|
||||||
ExecStartPost=/usr/bin/notmuch new
|
|
||||||
ExecStartPost=/bin/sh -c 'date > ~/.local/share/mbsync/last-sync'
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=mbsync every 5 minutes
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnBootSec=1m
|
|
||||||
OnUnitActiveSec=5m
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Music Player Daemon
|
|
||||||
Documentation=man:mpd(1) man:mpd.conf(5)
|
|
||||||
After=network.target sound.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
ExecStart=/usr/bin/mpd --systemd %E/mpd/mdp.conf
|
|
||||||
|
|
||||||
#WatchdogSec=120
|
|
||||||
|
|
||||||
LimitRTPRIO=40
|
|
||||||
LimitRTTIME=infinity
|
|
||||||
LimitMEMLOCK=64M
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
Also=mpd.socket
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Socket]
|
|
||||||
ListenStream=%t/mpd/socket
|
|
||||||
ListenStream=6600
|
|
||||||
Backlog=5
|
|
||||||
KeepAlive=true
|
|
||||||
PassCredentials=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Watch msmtp queue and flush immediately
|
|
||||||
|
|
||||||
[Path]
|
|
||||||
PathChanged=%h/.msmtp/queue
|
|
||||||
Unit=msmtp-queue.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Flush msmtp queue
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/msmtp-queue --run
|
|
||||||
ExecStartPost=/usr/bin/maildir-rank-addr
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Flush msmtp queue every 10 minutes
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnBootSec=1m
|
|
||||||
OnUnitActiveSec=10m
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/mpd.socket
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/lib/systemd/user/pipewire.socket
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/mbsync.timer
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/msmtp-queue.timer
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/lafrite/.config/systemd/user/vdirsyncer.timer
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=vdirsyncer sync
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/vdirsyncer sync
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=vdirsyncer sync every 15 minutes
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnBootSec=2m
|
|
||||||
OnUnitActiveSec=15m
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Voxtype push-to-talk voice-to-text daemon
|
|
||||||
Documentation=https://voxtype.io
|
|
||||||
PartOf=graphical-session.target
|
|
||||||
After=graphical-session.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/voxtype daemon
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
# Ensure we have access to the display
|
|
||||||
Environment=XDG_RUNTIME_DIR=%t
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=graphical-session.target
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
[{
|
|
||||||
"layer": "top",
|
|
||||||
"output": ["eDP-1", "DVI-I-1"],
|
|
||||||
"height": 30,
|
|
||||||
"spacing": 0,
|
|
||||||
"modules-left": ["hyprland/workspaces"],
|
|
||||||
"modules-center": [],
|
|
||||||
"modules-right": ["mpris", "pulseaudio", "battery", "tray", "clock"],
|
|
||||||
"hyprland/workspaces": {
|
|
||||||
"on-click": "activate",
|
|
||||||
"disable-scroll": true,
|
|
||||||
"all-outputs": true,
|
|
||||||
"show-special": false,
|
|
||||||
"persistent-workspaces": {
|
|
||||||
"*": [1, 2, 3, 4]
|
|
||||||
},
|
|
||||||
"format": "{id}"
|
|
||||||
},
|
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
"warning": 20,
|
|
||||||
"critical": 10
|
|
||||||
},
|
|
||||||
"format": "{capacity}% {icon}",
|
|
||||||
"format-charging": "{capacity}% ",
|
|
||||||
"format-plugged": "{capacity}% ",
|
|
||||||
"format-alt": "{time} {icon}",
|
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
|
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
"format": "{:%a %d %b %H:%M}",
|
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
||||||
"on-click": "gnome-calendar"
|
|
||||||
},
|
|
||||||
"pulseaudio": {
|
|
||||||
"format": "{volume}% {icon}",
|
|
||||||
"format-bluetooth": "{volume}% {icon}",
|
|
||||||
"format-bluetooth-muted": " {icon}",
|
|
||||||
"format-muted": "",
|
|
||||||
"format-icons": {
|
|
||||||
"headphone": "",
|
|
||||||
"hands-free": "",
|
|
||||||
"headset": "",
|
|
||||||
"phone": "",
|
|
||||||
"portable": "",
|
|
||||||
"car": "",
|
|
||||||
"default": ["", "", ""]
|
|
||||||
},
|
|
||||||
"on-click": "pavucontrol"
|
|
||||||
},
|
|
||||||
"tray": {
|
|
||||||
"icon-size": 22,
|
|
||||||
"spacing": 10
|
|
||||||
},
|
|
||||||
"mpris": {
|
|
||||||
"format": "{player_icon} ",
|
|
||||||
"format-paused": "{player_icon} ",
|
|
||||||
"format-stopped": "",
|
|
||||||
"tooltip-format": "{title} — {artist}",
|
|
||||||
"player-icons": {
|
|
||||||
"default": "",
|
|
||||||
"spotify": "",
|
|
||||||
"firefox": "",
|
|
||||||
"chromium": "",
|
|
||||||
"mpv": "",
|
|
||||||
"vlc": ""
|
|
||||||
},
|
|
||||||
"on-click": "playerctl play-pause",
|
|
||||||
"on-scroll-up": "playerctl next",
|
|
||||||
"on-scroll-down": "playerctl previous"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
* {
|
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
|
||||||
font-family: "Noto Sans", "JetBrainsMono Nerd Font", monospace;
|
|
||||||
font-size: 16px;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "gruvbox.css";
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background: #32302f;
|
|
||||||
color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Workspaces */
|
|
||||||
#workspaces {
|
|
||||||
padding: 0 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
padding: 0 7px;
|
|
||||||
background: transparent;
|
|
||||||
color: @white;
|
|
||||||
border-radius: 6px;
|
|
||||||
min-width: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.empty {
|
|
||||||
color: rgba(168, 153, 132, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
background: rgba(214, 93, 14, 0.25);
|
|
||||||
color: @orange_b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.visible:not(.active) {
|
|
||||||
background: rgba(69, 133, 136, 0.25);
|
|
||||||
color: @blue_b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
background: rgba(168, 153, 132, 0.15);
|
|
||||||
color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mode (sway) */
|
|
||||||
#mode {
|
|
||||||
background: @red;
|
|
||||||
color: @foreground;
|
|
||||||
border-radius: 8px;
|
|
||||||
margin: 4px 2px;
|
|
||||||
padding: 0 10px;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Right modules */
|
|
||||||
#clock,
|
|
||||||
#battery,
|
|
||||||
#pulseaudio,
|
|
||||||
#mpris,
|
|
||||||
#tray {
|
|
||||||
padding: 0 8px;
|
|
||||||
margin: 0;
|
|
||||||
color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.charging {
|
|
||||||
color: @green;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.warning:not(.charging) {
|
|
||||||
color: @red_b;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink {
|
|
||||||
to {
|
|
||||||
color: @red;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio.muted {
|
|
||||||
color: @white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
padding: 0 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .passive {
|
|
||||||
-gtk-icon-effect: dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .needs-attention {
|
|
||||||
-gtk-icon-effect: highlight;
|
|
||||||
background-color: @red;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
[calendars]
|
|
||||||
|
|
||||||
[[perso]]
|
|
||||||
path = ~/.calendars/perso/
|
|
||||||
color = light cyan
|
|
||||||
|
|
||||||
[[famille]]
|
|
||||||
path = ~/.calendars/famille/
|
|
||||||
color = light green
|
|
||||||
|
|
||||||
[[personal_shared_by_margot]]
|
|
||||||
path = ~/.calendars/personal_shared_by_margot/
|
|
||||||
color = light magenta
|
|
||||||
|
|
||||||
[[contact_birthdays]]
|
|
||||||
path = ~/.calendars/contact_birthdays/
|
|
||||||
color = light red
|
|
||||||
|
|
||||||
[sqlite]
|
|
||||||
path = ~/.local/share/khal/khal.db
|
|
||||||
|
|
||||||
[locale]
|
|
||||||
local_timezone = Europe/Paris
|
|
||||||
default_timezone = Europe/Paris
|
|
||||||
timeformat = %H:%M
|
|
||||||
dateformat = %d/%m/%Y
|
|
||||||
datetimeformat = %d/%m/%Y %H:%M
|
|
||||||
longdateformat = %A %d %B %Y
|
|
||||||
longdatetimeformat = %A %d %B %Y %H:%M
|
|
||||||
weeknumbers = left
|
|
||||||
firstweekday = 0
|
|
||||||
|
|
||||||
[default]
|
|
||||||
highlight_event_days = true
|
|
||||||
|
|
||||||
[view]
|
|
||||||
bold_for_light_color = true
|
|
||||||
theme = dark
|
|
||||||
frame = color
|
|
||||||
event_view_always_visible = false
|
|
||||||
|
|
||||||
[highlight_days]
|
|
||||||
method = foreground
|
|
||||||
default_color = light cyan
|
|
||||||
multiple = light magenta
|
|
||||||
|
|
||||||
[keybindings]
|
|
||||||
new = a
|
|
||||||
view = e, enter
|
|
||||||
export = E
|
|
||||||
duplicate = p
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
maildir = "~/Mail"
|
|
||||||
addresses = [
|
|
||||||
"benjamin.bertrand@opyte.org",
|
|
||||||
]
|
|
||||||
filters = [
|
|
||||||
"no-reply",
|
|
||||||
"noreply",
|
|
||||||
"newsletter",
|
|
||||||
"mailer-daemon",
|
|
||||||
"postmaster",
|
|
||||||
"bounce",
|
|
||||||
"@.*\\.mailer\\.",
|
|
||||||
]
|
|
||||||
outputpath = "~/.cache/maildir-rank-addr/addressbook.tsv"
|
|
||||||
@@ -196,13 +196,13 @@ auto_update "yes"
|
|||||||
|
|
||||||
# Input #######################################################################
|
# Input #######################################################################
|
||||||
#
|
#
|
||||||
# input {
|
input {
|
||||||
# plugin "curl"
|
plugin "curl"
|
||||||
# proxy "proxy.isp.com:8080"
|
# proxy "proxy.isp.com:8080"
|
||||||
# proxy_user "user"
|
# proxy_user "user"
|
||||||
# proxy_password "password"
|
# proxy_password "password"
|
||||||
# }
|
}
|
||||||
#
|
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
@@ -215,10 +215,6 @@ auto_update "yes"
|
|||||||
#
|
#
|
||||||
# An example of an ALSA output:
|
# An example of an ALSA output:
|
||||||
#
|
#
|
||||||
audio_output {
|
|
||||||
type "pipewire"
|
|
||||||
name "PipeWire Sound Server"
|
|
||||||
}
|
|
||||||
#audio_output {
|
#audio_output {
|
||||||
# type "alsa"
|
# type "alsa"
|
||||||
# name "My ALSA Device"
|
# name "My ALSA Device"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
[addressbooks]
|
[addressbooks]
|
||||||
[[contacts]]
|
[[contacts]]
|
||||||
path = ~/.contacts/contacts/contacts/
|
path = ~/.contacts/contacts/
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debug = no
|
debug = no
|
||||||
@@ -16,11 +16,11 @@ tls on
|
|||||||
tls_starttls on
|
tls_starttls on
|
||||||
auth on
|
auth on
|
||||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||||
logfile ~/.local/share/msmtp/msmtp.log
|
logfile ~/.msmtp.log
|
||||||
|
|
||||||
account bb_opytex
|
account bb_opytex
|
||||||
user Takanuva
|
user Takanuva
|
||||||
passwordeval "pass mail/mailfence/Takanuva | grep smtp | awk '{print $2}'"
|
passwordeval "pass mail/mailfence/Takanuva | head -n1"
|
||||||
auth on
|
auth on
|
||||||
host smtp.mailfence.com
|
host smtp.mailfence.com
|
||||||
port 465
|
port 465
|
||||||
@@ -40,7 +40,7 @@ account jb_opytex
|
|||||||
|
|
||||||
account ac-lyon
|
account ac-lyon
|
||||||
user bbertrand
|
user bbertrand
|
||||||
passwordeval "pass Prof/aclyon/bbertrand | head -n1"
|
passwordeval "pass Prof/pronote/bbertrand | head -n1"
|
||||||
auth on
|
auth on
|
||||||
host smtps.ac-lyon.fr
|
host smtps.ac-lyon.fr
|
||||||
# Envelope-from address
|
# Envelope-from address
|
||||||
43
neomutt/.config/neomutt/accounts/ac-lyon
Normal file
43
neomutt/.config/neomutt/accounts/ac-lyon
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
unmailboxes *
|
||||||
|
|
||||||
|
set from = "benjamin.bertrand@ac-lyon.fr"
|
||||||
|
|
||||||
|
set sendmail = "/usr/bin/msmtp -a ac-lyon"
|
||||||
|
set folder = "~/.mail/ac_lyon"
|
||||||
|
|
||||||
|
set spoolfile = "+INBOX"
|
||||||
|
set postponed = "+Drafts"
|
||||||
|
set record = "+Sent"
|
||||||
|
set trash = "+Trash"
|
||||||
|
|
||||||
|
set mbox_type = Maildir
|
||||||
|
set ssl_starttls = yes
|
||||||
|
set ssl_force_tls = yes
|
||||||
|
|
||||||
|
color status blue default
|
||||||
|
|
||||||
|
#mailboxes =INBOX =Sent =Drafts =Junk
|
||||||
|
|
||||||
|
|
||||||
|
# set my_pass = "`pass Prof/pronote/bbertrand`"
|
||||||
|
# set folder = "imaps://mail.ac-lyon.fr"
|
||||||
|
# set imap_user = bbertrand
|
||||||
|
# set imap_pass = $my_pass
|
||||||
|
#
|
||||||
|
# set ssl_force_tls = yes
|
||||||
|
# set smtp_url = smtps://$imap_user@smtps.ac-lyon.fr:587
|
||||||
|
# set smtp_pass = $my_pass
|
||||||
|
# set ssl_starttls = yes
|
||||||
|
# set smtp_authenticators = "login"
|
||||||
|
#
|
||||||
|
# set spoolfile = +INBOX
|
||||||
|
# mailboxes = +INBOX
|
||||||
|
# set imap_check_subscribed
|
||||||
|
#
|
||||||
|
# set record = "+Sent"
|
||||||
|
# set trash = "+Trash"
|
||||||
|
# set postponed = "+Drafts"
|
||||||
|
#
|
||||||
|
# ## Hook -- IMPORTANT!
|
||||||
|
# account-hook $folder "set imap_pass=`pass Prof/pronote/bbertrand`"
|
||||||
43
neomutt/.config/neomutt/accounts/bb_opytex
Normal file
43
neomutt/.config/neomutt/accounts/bb_opytex
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
unmailboxes *
|
||||||
|
|
||||||
|
set from = "benjamin.bertrand@opytex.org"
|
||||||
|
|
||||||
|
set sendmail = "/usr/bin/msmtp -a bb_opytex"
|
||||||
|
set folder = "~/.mail/bb_opytex"
|
||||||
|
|
||||||
|
set spoolfile = "+INBOX"
|
||||||
|
set postponed = "+Drafts"
|
||||||
|
set record = "+Sent"
|
||||||
|
set trash = "+Junk"
|
||||||
|
|
||||||
|
|
||||||
|
set mbox_type = Maildir
|
||||||
|
set ssl_starttls = yes
|
||||||
|
set ssl_force_tls = yes
|
||||||
|
|
||||||
|
color status cyan default
|
||||||
|
|
||||||
|
# mailboxes =INBOX =Sent =Drafts =Junk
|
||||||
|
|
||||||
|
# set my_pass = "`pass mail/mailfence/Takanuva`"
|
||||||
|
# set folder = "imaps://imap.mailfence.com/"
|
||||||
|
# set imap_user = Takanuva
|
||||||
|
# set imap_pass = $my_pass
|
||||||
|
#
|
||||||
|
# set ssl_force_tls = yes
|
||||||
|
# set smtp_url = smtps://$imap_user@smtp.mailfence.com:465
|
||||||
|
# set smtp_pass = $my_pass
|
||||||
|
# set ssl_starttls = yes
|
||||||
|
# set smtp_authenticators = "login"
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# set spoolfile = +INBOX
|
||||||
|
#
|
||||||
|
# set record = "+Sent"
|
||||||
|
# set trash = "+Trash"
|
||||||
|
# set postponed = "+Drafts"
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# ## Hook -- IMPORTANT!
|
||||||
|
# account-hook $folder "set imap_pass=`pass mail/mailfence/Takanuva`"
|
||||||
44
neomutt/.config/neomutt/accounts/jb_opytex
Normal file
44
neomutt/.config/neomutt/accounts/jb_opytex
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
unmailboxes *
|
||||||
|
set imap_list_subscribed
|
||||||
|
set imap_check_subscribed
|
||||||
|
|
||||||
|
set from = "jost_bertrand@opytex.org"
|
||||||
|
|
||||||
|
set sendmail = "/usr/bin/msmtp -a jb_opytex"
|
||||||
|
set folder = "~/.mail/jb_opytex"
|
||||||
|
|
||||||
|
set spoolfile = "+INBOX"
|
||||||
|
set postponed = "+Drafts"
|
||||||
|
set record = "+Sent"
|
||||||
|
set trash = "+Junk"
|
||||||
|
|
||||||
|
set mbox_type = Maildir
|
||||||
|
set ssl_starttls = yes
|
||||||
|
set ssl_force_tls = yes
|
||||||
|
|
||||||
|
|
||||||
|
color status red default
|
||||||
|
|
||||||
|
# set my_pass = "`pass mail/mailfence/Takanuva`"
|
||||||
|
# set folder = "imaps://imap.mailfence.com/"
|
||||||
|
# set imap_user = Takanuva
|
||||||
|
# set imap_pass = $my_pass
|
||||||
|
#
|
||||||
|
# set ssl_force_tls = yes
|
||||||
|
# set smtp_url = smtps://$imap_user@smtp.mailfence.com:465
|
||||||
|
# set smtp_pass = $my_pass
|
||||||
|
# set ssl_starttls = yes
|
||||||
|
# set smtp_authenticators = "login"
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# set spoolfile = +INBOX
|
||||||
|
# set imap_check_subscribed
|
||||||
|
#
|
||||||
|
# set record = "+Sent"
|
||||||
|
# set trash = "+Trash"
|
||||||
|
# set postponed = "+Drafts"
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# ## Hook -- IMPORTANT!
|
||||||
|
# account-hook $folder "set imap_pass=`pass mail/mailfence/Takanuva`"
|
||||||
100
neomutt/.config/neomutt/colors
Normal file
100
neomutt/.config/neomutt/colors
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
# -*-muttrc-*-
|
||||||
|
|
||||||
|
# Screenshot http://trovao.droplinegnome.org/stuff/mutt-zenburnt.png
|
||||||
|
#
|
||||||
|
# This is a zenburn-based neomutt color scheme that is not (even by far)
|
||||||
|
# complete. There's no copyright involved. Do whatever you want with it.
|
||||||
|
# Just be aware that I won't be held responsible if the current color-scheme
|
||||||
|
# explodes your mail client. ;)
|
||||||
|
#
|
||||||
|
# Do notice that this color scheme requires a terminal emulator that supports
|
||||||
|
# 256 color. Any modern X terminal emulator should have support for that and
|
||||||
|
# you can enable it by calling neomutt as "TERM=xterm-256color neomutt" or, if you
|
||||||
|
# use screen, by adding "term screen-256color" to your .screenrc.
|
||||||
|
#
|
||||||
|
# This file is in the public domain.
|
||||||
|
#
|
||||||
|
|
||||||
|
# general-doesn't-fit stuff
|
||||||
|
color normal color188 color237
|
||||||
|
color error color115 color236
|
||||||
|
color markers color142 color238
|
||||||
|
color tilde color108 color237
|
||||||
|
color status color144 color234
|
||||||
|
|
||||||
|
# index stuff
|
||||||
|
color indicator color108 color236
|
||||||
|
color tree color109 color237
|
||||||
|
color index color188 color237 ~A
|
||||||
|
color index color188 color237 ~N
|
||||||
|
color index color188 color237 ~O
|
||||||
|
color index color174 color237 ~F
|
||||||
|
color index color174 color237 ~D
|
||||||
|
|
||||||
|
# Message Index ----------------------------------------------------------------
|
||||||
|
|
||||||
|
## Weak
|
||||||
|
color index color08 color00 "~R" # read messages
|
||||||
|
color index color08 color00 "~d >45d" # older than 45 days
|
||||||
|
color index color08 color00 "~v~(!~N)" # collapsed thread with no unread
|
||||||
|
color index color08 color00 "~Q" # messages that have been replied to
|
||||||
|
|
||||||
|
## Strong
|
||||||
|
color index color21 color00 "(~U|~N|~O)" # unread, new, old messages
|
||||||
|
color index color21 color00 "~v~(~U|~N|~O)" # collapsed thread with unread
|
||||||
|
|
||||||
|
## Highlight
|
||||||
|
### Trusted
|
||||||
|
color index color06 color00 "~g" # PGP signed messages
|
||||||
|
color index color06 color00 "~G" # PGP encrypted messages
|
||||||
|
### Odd
|
||||||
|
color index color01 color00 "~E" # past Expires: header date
|
||||||
|
color index color01 color00 "~=" # duplicated
|
||||||
|
color index color01 color00 "~S" # marked by Supersedes: header
|
||||||
|
### Flagged
|
||||||
|
color index color05 color00 "~F" # flagged messages
|
||||||
|
color index color02 color00 "~v~(~F)" # collapsed thread with flagged inside
|
||||||
|
|
||||||
|
# Selection
|
||||||
|
color index color02 color18 "~T" # tagged messages
|
||||||
|
color index color01 color18 "~D" # deleted messages
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
|
# header stuff
|
||||||
|
color hdrdefault color223 color237
|
||||||
|
color header color223 color237 "^Subject"
|
||||||
|
|
||||||
|
# gpg stuff
|
||||||
|
color body color188 color237 "^gpg: Good signature.*"
|
||||||
|
color body color115 color236 "^gpg: BAD signature.*"
|
||||||
|
color body color174 color237 "^gpg: Can't check signature.*"
|
||||||
|
color body color174 color237 "^-----BEGIN PGP SIGNED MESSAGE-----"
|
||||||
|
color body color174 color237 "^-----BEGIN PGP SIGNATURE-----"
|
||||||
|
color body color174 color237 "^-----END PGP SIGNED MESSAGE-----"
|
||||||
|
color body color174 color237 "^-----END PGP SIGNATURE-----"
|
||||||
|
color body color174 color237 "^Version: GnuPG.*"
|
||||||
|
color body color174 color237 "^Comment: .*"
|
||||||
|
|
||||||
|
# url, email and web stuff
|
||||||
|
color body color174 color237 "(finger|ftp|http|https|news|telnet)://[^ >]*"
|
||||||
|
color body color174 color237 "<URL:[^ ]*>"
|
||||||
|
color body color174 color237 "www\\.[-.a-z0-9]+\\.[a-z][a-z][a-z]?([-_./~a-z0-9]+)?"
|
||||||
|
color body color174 color237 "mailto: *[^ ]+\(\\i?subject=[^ ]+\)?"
|
||||||
|
color body color174 color237 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
|
||||||
|
|
||||||
|
# misc body stuff
|
||||||
|
color attachment color174 color237 #Add-ons to the message
|
||||||
|
color signature color223 color237
|
||||||
|
|
||||||
|
# quote levels
|
||||||
|
color quoted color108 color237
|
||||||
|
color quoted1 color116 color237
|
||||||
|
color quoted2 color247 color237
|
||||||
|
color quoted3 color108 color237
|
||||||
|
color quoted4 color116 color237
|
||||||
|
color quoted5 color247 color237
|
||||||
|
color quoted6 color108 color237
|
||||||
|
color quoted7 color116 color237
|
||||||
|
color quoted8 color247 color237
|
||||||
|
color quoted9 color108 color237
|
||||||
121
neomutt/.config/neomutt/colors_gruvbox
Normal file
121
neomutt/.config/neomutt/colors_gruvbox
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
# -*-muttrc-*-
|
||||||
|
# gruvbox dark (contrast dark):
|
||||||
|
|
||||||
|
# bg0 = 234
|
||||||
|
# bg1 = 237
|
||||||
|
# bg2 = 239
|
||||||
|
# bg3 = 241
|
||||||
|
# bg4 = 243
|
||||||
|
#
|
||||||
|
# gray = 245
|
||||||
|
#
|
||||||
|
# fg0 = 229
|
||||||
|
# fg1 = 223
|
||||||
|
# fg2 = 250
|
||||||
|
# fg3 = 248
|
||||||
|
# fg4 = 246
|
||||||
|
#
|
||||||
|
# red = 167
|
||||||
|
# green = 142
|
||||||
|
# yellow = 214
|
||||||
|
# blue = 109
|
||||||
|
# purple = 175
|
||||||
|
# aqua = 108
|
||||||
|
# orange = 208
|
||||||
|
|
||||||
|
|
||||||
|
# See http://www.mutt.org/doc/manual/#color
|
||||||
|
|
||||||
|
color attachment color109 color234
|
||||||
|
color bold color229 color234
|
||||||
|
color error color167 color234
|
||||||
|
color hdrdefault color246 color234
|
||||||
|
color indicator color223 color237
|
||||||
|
color markers color243 color234
|
||||||
|
color normal color223 color234
|
||||||
|
color quoted color250 color234
|
||||||
|
color quoted1 color108 color234
|
||||||
|
color quoted2 color250 color234
|
||||||
|
color quoted3 color108 color234
|
||||||
|
color quoted4 color250 color234
|
||||||
|
color quoted5 color108 color234
|
||||||
|
color search color234 color208
|
||||||
|
color signature color108 color234
|
||||||
|
color status color234 color250
|
||||||
|
color tilde color243 color234
|
||||||
|
color tree color142 color234
|
||||||
|
color underline color223 color239
|
||||||
|
|
||||||
|
color sidebar_divider color250 color234
|
||||||
|
color sidebar_new color142 color234
|
||||||
|
|
||||||
|
color index color142 color234 ~N
|
||||||
|
color index color108 color234 ~O
|
||||||
|
color index color109 color234 ~P
|
||||||
|
color index color214 color234 ~F
|
||||||
|
color index color175 color234 ~Q
|
||||||
|
color index color167 color234 ~=
|
||||||
|
color index color234 color223 ~T
|
||||||
|
color index color234 color167 ~D
|
||||||
|
|
||||||
|
color header color214 color234 "^(To:|From:)"
|
||||||
|
color header color142 color234 "^Subject:"
|
||||||
|
color header color108 color234 "^X-Spam-Status:"
|
||||||
|
color header color108 color234 "^Received:"
|
||||||
|
|
||||||
|
# Regex magic for URLs and hostnames
|
||||||
|
#
|
||||||
|
# Attention: BSD's regex has RE_DUP_MAX set to 255.
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
# http://some-service.example.com
|
||||||
|
# example.com
|
||||||
|
# a.example.com
|
||||||
|
# some-service.example.com
|
||||||
|
# example.com/
|
||||||
|
# example.com/datenschutz
|
||||||
|
# file:///tmp/foo
|
||||||
|
#
|
||||||
|
# Non-examples:
|
||||||
|
# 1.1.1900
|
||||||
|
# 14.02.2022/24:00
|
||||||
|
# 23.59
|
||||||
|
# w.l.o.g
|
||||||
|
# team.its
|
||||||
|
color body color142 color234 "[a-z]{3,255}://[[:graph:]]*"
|
||||||
|
color body color142 color234 "([-[:alnum:]]+\\.)+([0-9]{1,3}|[-[:alpha:]]+)/[[:graph:]]*"
|
||||||
|
color body color142 color234 "([-[:alnum:]]+\\.){2,255}[-[:alpha:]]{2,10}"
|
||||||
|
|
||||||
|
# IPv4 and IPv6 stolen from https://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
|
||||||
|
color body color142 color234 "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
|
||||||
|
color body color142 color234 "(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))"
|
||||||
|
|
||||||
|
# Mail addresses and mailto URLs
|
||||||
|
color body color208 color234 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
|
||||||
|
color body color208 color234 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
|
||||||
|
|
||||||
|
# some simleys and stuff
|
||||||
|
color body color234 color214 "[;:]-*[)>(<lt;|]"
|
||||||
|
color body color229 color234 "\\*[- A-Za-z]+\\*"
|
||||||
|
|
||||||
|
color body color214 color234 "^-.*PGP.*-*"
|
||||||
|
color body color142 color234 "^gpg: Good signature from"
|
||||||
|
color body color167 color234 "^gpg: Can't.*$"
|
||||||
|
color body color214 color234 "^gpg: WARNING:.*$"
|
||||||
|
color body color167 color234 "^gpg: BAD signature from"
|
||||||
|
color body color167 color234 "^gpg: Note: This key has expired!"
|
||||||
|
color body color214 color234 "^gpg: There is no indication that the signature belongs to the owner."
|
||||||
|
color body color214 color234 "^gpg: can't handle these multiple signatures"
|
||||||
|
color body color214 color234 "^gpg: signature verification suppressed"
|
||||||
|
color body color214 color234 "^gpg: invalid node with packet of type"
|
||||||
|
|
||||||
|
color body color142 color234 "^Good signature from:"
|
||||||
|
color body color167 color234 "^.?BAD.? signature from:"
|
||||||
|
color body color142 color234 "^Verification successful"
|
||||||
|
color body color167 color234 "^Verification [^s][^[:space:]]*$"
|
||||||
|
|
||||||
|
color compose header color223 color234
|
||||||
|
color compose security_encrypt color175 color234
|
||||||
|
color compose security_sign color109 color234
|
||||||
|
color compose security_both color142 color234
|
||||||
|
color compose security_none color208 color234
|
||||||
1
neomutt/.config/neomutt/mailboxes
Normal file
1
neomutt/.config/neomutt/mailboxes
Normal file
@@ -0,0 +1 @@
|
|||||||
|
mailboxes "+ac_lyon/Archives" "+ac_lyon/Archives.2019-2020" "+ac_lyon/Archives.2020-2021" "+ac_lyon/Archives.2021-2022" "+ac_lyon/Archives.2022-2023" "+ac_lyon/Archives/2019-2020" "+ac_lyon/Archives/2020-2021" "+ac_lyon/Archives/2021-2022" "+ac_lyon/Archives/2022-2023" "+ac_lyon/Brouillons" "+ac_lyon/Drafts" "+ac_lyon/Eleves" "+ac_lyon/Eleves.2nd1" "+ac_lyon/Eleves/2nd1" "+ac_lyon/Envoy&AOk-s" "+ac_lyon/INBOX" "+ac_lyon/Junk" "+ac_lyon/Sent" "+ac_lyon/TICE" "+ac_lyon/Trash" "+bb_opytex/Archive" "+bb_opytex/Drafts" "+bb_opytex/INBOX" "+bb_opytex/R&AOk-seautage" "+bb_opytex/Sent Items" "+bb_opytex/Spam?" "+bb_opytex/Trash" "+jb_opytex/2021" "+jb_opytex/2022" "+jb_opytex/Archive" "+jb_opytex/Drafts" "+jb_opytex/INBOX" "+jb_opytex/Sent Items" "+jb_opytex/Spam?" "+jb_opytex/Trash"
|
||||||
12
neomutt/.config/neomutt/mailcap
Normal file
12
neomutt/.config/neomutt/mailcap
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# xdg-open
|
||||||
|
application/msword; /usr/bin/xdg-open %s
|
||||||
|
application/pdf; /usr/bin/xdg-open %s
|
||||||
|
application/postscript ; /usr/bin/xdg-open %s
|
||||||
|
|
||||||
|
# HTML
|
||||||
|
text/html; w3m -I %{charset} -T text/html; copiousoutput;
|
||||||
|
text/plain; nvim %s
|
||||||
|
|
||||||
|
#Images
|
||||||
|
image/png; /usr/bin/vimiv %s
|
||||||
|
image/jpeg; /usr/bin/vimiv %s
|
||||||
56
neomutt/.config/neomutt/mappings
Normal file
56
neomutt/.config/neomutt/mappings
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
|
||||||
|
# sidebar mappings
|
||||||
|
bind index,pager \Ck sidebar-prev
|
||||||
|
bind index,pager \Cj sidebar-next
|
||||||
|
bind index,pager \Co sidebar-open
|
||||||
|
bind index,pager \Cp sidebar-prev-new
|
||||||
|
bind index,pager \Cn sidebar-next-new
|
||||||
|
bind index,pager B sidebar-toggle-visible
|
||||||
|
|
||||||
|
# global index and pager shortcuts
|
||||||
|
bind index,pager @ compose-to-sender
|
||||||
|
bind index,pager D purge-message
|
||||||
|
bind index <tab> sync-mailbox
|
||||||
|
bind index <space> collapse-thread
|
||||||
|
|
||||||
|
# Email completion bindings
|
||||||
|
bind editor <Tab> complete-query
|
||||||
|
bind editor ^T complete
|
||||||
|
|
||||||
|
|
||||||
|
# General rebindings
|
||||||
|
bind attach <return> view-mailcap
|
||||||
|
bind attach l view-mailcap
|
||||||
|
bind editor <space> noop
|
||||||
|
bind pager c imap-fetch-mail
|
||||||
|
bind index G last-entry
|
||||||
|
bind index g noop
|
||||||
|
bind index gg first-entry
|
||||||
|
bind pager,attach h exit
|
||||||
|
bind pager j next-line
|
||||||
|
bind pager k previous-line
|
||||||
|
bind pager l view-attachments
|
||||||
|
bind index D delete-message
|
||||||
|
bind index U undelete-message
|
||||||
|
bind index L limit
|
||||||
|
bind index h noop
|
||||||
|
bind index l display-message
|
||||||
|
bind browser h goto-parent
|
||||||
|
bind browser l select-entry
|
||||||
|
bind pager,browser gg top-page
|
||||||
|
bind pager,browser G bottom-page
|
||||||
|
bind index,pager,browser d half-down
|
||||||
|
bind index,pager,browser u half-up
|
||||||
|
bind index,pager R group-reply
|
||||||
|
bind index \031 previous-undeleted # Mouse wheel
|
||||||
|
bind index \005 next-undeleted # Mouse wheel
|
||||||
|
bind pager \031 previous-line # Mouse wheel
|
||||||
|
bind pager \005 next-line # Mouse wheel
|
||||||
|
bind editor <Tab> complete-query
|
||||||
|
#
|
||||||
|
## Shortcuts
|
||||||
|
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/ac-lyon<enter><change-folder>!<enter>'
|
||||||
|
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/bb_opytex<enter><change-folder>!<enter>'
|
||||||
|
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/jb_opytex<enter><change-folder>!<enter>'
|
||||||
|
|
||||||
15
neomutt/.config/neomutt/neomuttrc
Normal file
15
neomutt/.config/neomutt/neomuttrc
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
|
||||||
|
source ~/.config/neomutt/settings
|
||||||
|
source ~/.config/neomutt/colors_gruvbox
|
||||||
|
source ~/.config/neomutt/mappings
|
||||||
|
|
||||||
|
|
||||||
|
#source ~/.config/neomutt/accounts/jb_opytex
|
||||||
|
folder-hook jb_opytex/* 'source ~/.config/neomutt/accounts/jb_opytex'
|
||||||
|
#source ~/.config/neomutt/accounts/bb_opytex
|
||||||
|
folder-hook bb_opytex/* 'source ~/.config/neomutt/accounts/bb_opytex'
|
||||||
|
source ~/.config/neomutt/accounts/ac-lyon
|
||||||
|
folder-hook ac_lyon/* 'source ~/.config/neomutt/accounts/ac-lyon'
|
||||||
|
|
||||||
|
#source ~/.config/neomutt/mailboxes
|
||||||
72
neomutt/.config/neomutt/settings
Normal file
72
neomutt/.config/neomutt/settings
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
|
||||||
|
set editor = "nvim"
|
||||||
|
|
||||||
|
set realname = "Benjamin Bertrand"
|
||||||
|
set use_from = "yes"
|
||||||
|
|
||||||
|
# How often to check for new mail (time in seconds).
|
||||||
|
set mail_check = 120
|
||||||
|
|
||||||
|
# Allow Mutt to open a new IMAP connection automatically.
|
||||||
|
unset imap_passive
|
||||||
|
|
||||||
|
# Keep the IMAP connection alive by polling intermittently (time in seconds).
|
||||||
|
set imap_keepalive = 300
|
||||||
|
|
||||||
|
# main options
|
||||||
|
set envelope_from
|
||||||
|
set edit_headers # show headers when composing
|
||||||
|
set fast_reply # skip to compose when replying
|
||||||
|
set askcc # ask for CC:
|
||||||
|
set fcc_attach # save attachments with the body
|
||||||
|
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||||
|
set forward_decode # decode when forwarding
|
||||||
|
set attribution = "On %d, %n wrote:" # format of quoting header
|
||||||
|
set reply_to # reply to Reply to: field
|
||||||
|
set reverse_name # reply as whomever it was to
|
||||||
|
set include # include message in replies
|
||||||
|
set forward_quote # include message in forwards
|
||||||
|
set text_flowed
|
||||||
|
unset sig_dashes # no dashes before sig
|
||||||
|
unset mime_forward # forward attachments as part of body
|
||||||
|
unset help # No help bar at the top of index
|
||||||
|
# set status_on_top # Status bar on top of index
|
||||||
|
set tmpdir = ~/Programs/neomutt/temp # where to keep temp files
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# status bar, date format, finding stuff etc.
|
||||||
|
set status_chars = " *%A"
|
||||||
|
set status_format = "[ Folder: %f ] [%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]%>─%?p?( %p postponed )?"
|
||||||
|
set date_format = "%d.%m.%Y %H:%M"
|
||||||
|
set sort = threads
|
||||||
|
set sort_aux = reverse-last-date-received
|
||||||
|
set uncollapse_jump
|
||||||
|
set sort_re
|
||||||
|
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||||
|
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||||
|
set send_charset = "utf-8:iso-8859-1:us-ascii"
|
||||||
|
set charset = "utf-8"
|
||||||
|
set arrow_cursor = "no" # Change `color indicator` depending
|
||||||
|
|
||||||
|
|
||||||
|
# Pager View Options
|
||||||
|
set pager_index_lines = 20 # Shows 10 lines of index when pager is active
|
||||||
|
set pager_context = 3
|
||||||
|
set pager_stop
|
||||||
|
set menu_scroll
|
||||||
|
set tilde
|
||||||
|
unset markers
|
||||||
|
|
||||||
|
# Mailcal for attachments
|
||||||
|
set mailcap_path = ~/.config/neomutt/mailcap
|
||||||
|
set header_cache = "~/.cache/mutt"
|
||||||
|
set message_cachedir = "~/.cache/mutt"
|
||||||
|
|
||||||
|
# Contact with khard
|
||||||
|
set query_command = "khard email --parsable --search-in-source-files '%s'"
|
||||||
|
|
||||||
|
# Set preffered view modes
|
||||||
|
auto_view text/html text/calendar application/ics # view html automatically
|
||||||
|
alternative_order text/html text/plain text/enriched text/*
|
||||||
Binary file not shown.
67
neomutt/.config/offlineimap/config
Normal file
67
neomutt/.config/offlineimap/config
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
[general]
|
||||||
|
accounts = bb_opytex, jb_opytex, ac_lyon
|
||||||
|
pythonfile = ~/.config/offlineimap/offlineimap.py
|
||||||
|
maxsyncaccounts = 1
|
||||||
|
|
||||||
|
[mbnames]
|
||||||
|
enabled = yes
|
||||||
|
filename = ~/.config/neomutt/mailboxes
|
||||||
|
header = "mailboxes "
|
||||||
|
peritem = "+%(accountname)s/%(foldername)s"
|
||||||
|
sep = " "
|
||||||
|
footer = "\n"
|
||||||
|
|
||||||
|
|
||||||
|
[Account bb_opytex]
|
||||||
|
localrepository = Local-bb_opytex
|
||||||
|
remoterepository = Remote-bb_opytex
|
||||||
|
autorefresh = 1
|
||||||
|
quick = 10
|
||||||
|
|
||||||
|
[Repository Local-bb_opytex]
|
||||||
|
type = Maildir
|
||||||
|
localfolders = ~/.mail/bb_opytex
|
||||||
|
sep = /
|
||||||
|
|
||||||
|
[Repository Remote-bb_opytex]
|
||||||
|
type = IMAP
|
||||||
|
remotehost = imap.mailfence.com
|
||||||
|
remoteuser = Takanuva
|
||||||
|
remotepasseval = get_pass("mail/mailfence/Takanuva")
|
||||||
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
[Account jb_opytex]
|
||||||
|
localrepository = Local-jb_opytex
|
||||||
|
remoterepository = Remote-jb_opytex
|
||||||
|
autorefresh = 1
|
||||||
|
quick = 10
|
||||||
|
|
||||||
|
[Repository Local-jb_opytex]
|
||||||
|
type = Maildir
|
||||||
|
localfolders = ~/.mail/jb_opytex
|
||||||
|
sep = /
|
||||||
|
|
||||||
|
[Repository Remote-jb_opytex]
|
||||||
|
type = IMAP
|
||||||
|
remotehost = imap.mailfence.com
|
||||||
|
remoteuser = margot_benjamin
|
||||||
|
remotepasseval = get_pass("mail/jost_bertrand@opytex.org/margot_benjamin")
|
||||||
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
[Account ac_lyon]
|
||||||
|
localrepository = Local-ac_lyon
|
||||||
|
remoterepository = Remote-ac_lyon
|
||||||
|
autorefresh = 1
|
||||||
|
quick = 10
|
||||||
|
|
||||||
|
[Repository Local-ac_lyon]
|
||||||
|
type = Maildir
|
||||||
|
localfolders = ~/.mail/ac_lyon
|
||||||
|
sep = /
|
||||||
|
|
||||||
|
[Repository Remote-ac_lyon]
|
||||||
|
type = IMAP
|
||||||
|
remotehost = mail.ac-lyon.fr
|
||||||
|
remoteuser = bbertrand
|
||||||
|
remotepasseval = get_pass("Prof/pronote/bbertrand")
|
||||||
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
||||||
5
neomutt/.config/offlineimap/offlineimap.py
Normal file
5
neomutt/.config/offlineimap/offlineimap.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from subprocess import check_output
|
||||||
|
|
||||||
|
|
||||||
|
def get_pass(path):
|
||||||
|
return check_output("pass " + path, shell=True).splitlines()[0]
|
||||||
21
neomutt/.config/vdirsyncer/config
Normal file
21
neomutt/.config/vdirsyncer/config
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[general]
|
||||||
|
status_path = "~/.config/vdirsyncer/status/"
|
||||||
|
|
||||||
|
[pair cloud_opytex_contact]
|
||||||
|
a = "cloud_opytex_contact_local"
|
||||||
|
b = "cloud_opytex_contact_remote"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
conflict_resolution = "b wins"
|
||||||
|
|
||||||
|
[storage cloud_opytex_contact_local]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.contacts/"
|
||||||
|
fileext = ".vcf"
|
||||||
|
|
||||||
|
[storage cloud_opytex_contact_remote]
|
||||||
|
type = "carddav"
|
||||||
|
|
||||||
|
# We can simplify this URL here as well. In theory it shouldn't matter.
|
||||||
|
url = "https://cloud.poneyworld.net/remote.php/dav/addressbooks/users/lafrite/contacts/"
|
||||||
|
username = "lafrite"
|
||||||
|
password.fetch = ["command", "pass", "OVH/Panais/docker/cloud.poneyworld.net/lafrite"]
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
auto-reload yes
|
auto-reload yes
|
||||||
reload-time 30
|
reload-time 30
|
||||||
# browser "chromium --incognito"
|
browser "chromium --incognito"
|
||||||
browser "firefox --private-window"
|
macro y set browser "tmux new-window mpv %u"; open-in-browser ; set browser "chromium --incognito"
|
||||||
macro y set browser "tmux new-window mpv %u"; open-in-browser ; set browser "firefox --private-window"
|
|
||||||
macro Y set browser "mpv %u"; open-in-browser ; set browser "chromium --incognito"
|
macro Y set browser "mpv %u"; open-in-browser ; set browser "chromium --incognito"
|
||||||
|
|
||||||
unbind-key h
|
unbind-key h
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
|
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "Tech"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw "Tech"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw "Tech"
|
||||||
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCeeFfhMcJa1kjtfZAGskOCA "Tech"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCsRIv1fsbnQRIPKmUQbRzZg "Tech"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCsRIv1fsbnQRIPKmUQbRzZg "Tech"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCUQo7nzH1sXVpzL92VesANw "Tech"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCUQo7nzH1sXVpzL92VesANw "Tech"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCV0qA-eDDICsRR9rPcnG7tw "Tech"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCV0qA-eDDICsRR9rPcnG7tw "Tech"
|
||||||
@@ -20,11 +22,12 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC3-gwlrYQi5Q3t00Tyr2tmQ "Fe
|
|||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCSKdJoK73RLL-zOs4Sq_tTQ "Ferme" "Loic le jardineur"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCSKdJoK73RLL-zOs4Sq_tTQ "Ferme" "Loic le jardineur"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCJfcABj0bAqFrK3tjhGsSpw "Ferme" "Theud Bald"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCJfcABj0bAqFrK3tjhGsSpw "Ferme" "Theud Bald"
|
||||||
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCzVy7DiPyVvfiOvXF_XMs4Q "Apnée" "~Adam Freediver"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCL_r1ELEvAuN0peKUxI0Umw "Permaculture" "Geoff Lawton"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCmCDB-4GipeUL6N9o4gJLqA "Sport" "Running Addict"
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCG15zMwAB9qBpYrxL3z3byQ "Sport" "Quentin R Cycling"
|
|
||||||
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCRoFIKcVNGvv9Oimdb9FBGg "Jeux" "Hodgepodge"
|
|
||||||
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCzVy7DiPyVvfiOvXF_XMs4Q "Apnée" "~Adam Freediver"
|
||||||
|
|
||||||
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCRoFIKcVNGvv9Oimdb9FBGg "Apnée" "Hodgepodge"
|
||||||
|
|
||||||
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCvDpfkniGG6WkX5L7DwyGaA "Bois" "Olivier Verdier"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCvDpfkniGG6WkX5L7DwyGaA "Bois" "Olivier Verdier"
|
||||||
@@ -32,7 +35,9 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC7TiJ6Tnxc_dSE42byTPMug "Bo
|
|||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC9fGq2-6FaftcegcIadLf6A "Bois" "Samuel Mamias"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UC9fGq2-6FaftcegcIadLf6A "Bois" "Samuel Mamias"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuow_HIYmeaIqi42zVs3qg "Bois" "Kirby Meets Audio"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuow_HIYmeaIqi42zVs3qg "Bois" "Kirby Meets Audio"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC7FkqjV8SU5I8FCHXQSQe9Q "Bois" "Ishitani furniture"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UC7FkqjV8SU5I8FCHXQSQe9Q "Bois" "Ishitani furniture"
|
||||||
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCjaudhGC0gBfEtMyQYzT3pA "Bois" "Atelier Floky"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCJNItGjNhUx3Zz6W4OCVfHA "Chantier" "~Passion renovation"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCJNItGjNhUx3Zz6W4OCVfHA "Chantier" "~Passion renovation"
|
||||||
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCxiqy-VOYw6uBE4raFCz4Ow "Chantier" "LJVS"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCKt0CjXg6PRocxlCss90e8g "Chantier" "Clément Beraud"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCKt0CjXg6PRocxlCss90e8g "Chantier" "Clément Beraud"
|
||||||
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCRix1GJvSBNDpEFY561eSzw "DIY" "Laura Kampf"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCRix1GJvSBNDpEFY561eSzw "DIY" "Laura Kampf"
|
||||||
@@ -60,10 +65,6 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC8ENHE5xdFSwx71u3fDH5Xw "Vi
|
|||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXPHFM88IlFn68OmLwtPmZA "Vim" "Greg Hurrel"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCXPHFM88IlFn68OmLwtPmZA "Vim" "Greg Hurrel"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCs_AZuYXi6NA9tkdbhjItHQ "AdminSys" "Xavki"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCs_AZuYXi6NA9tkdbhjItHQ "AdminSys" "Xavki"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCOk-gHyjcWZNj3Br4oxwh0A "Homelab" "Techno Tim"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCOk-gHyjcWZNj3Br4oxwh0A "Homelab" "Techno Tim"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC9x0AN7BWHpCDHSm9NiJFJQ "Homelab" "NetworkChuck"
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCZNhwA1B5YqiY1nLzmM0ZRg "Homelab" "Christian Lempa"
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCWQaM7SpSECp9FELz-cHzuQ "Cording" "Dream of Code"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCWQaM7SpSECp9FELz-cHzuQ "Cording" "Dream of Code"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCYeiozh-4QwuC1sjgCmB92w "Cording" "DevOps Toolbox"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCYeiozh-4QwuC1sjgCmB92w "Cording" "DevOps Toolbox"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCgdTVe88YVSrOZ9qKumhULQ "Geek" "Hardware Haven"
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCLOAPb7ATQUs_nDs9ViLcMw "Programmation" "Benjamin Code"
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCLOAPb7ATQUs_nDs9ViLcMw "Programmation" "Benjamin Code"
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCiZxJB0xWfPBE2omVZeWPpQ "Programmation" "Mehdio DataTV"
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.uv.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
@@ -12,9 +12,6 @@ end
|
|||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
vim.g.mapleader = ' ' -- Leaderkey
|
vim.g.mapleader = ' ' -- Leaderkey
|
||||||
require("lazy").setup("plugins", {
|
require("lazy").setup("plugins")
|
||||||
concurrency = 5,
|
|
||||||
git = { filter = false },
|
|
||||||
})
|
|
||||||
require('settings')
|
require('settings')
|
||||||
require('mappings')
|
require('mappings')
|
||||||
|
|||||||
@@ -1,36 +1,36 @@
|
|||||||
{
|
{
|
||||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
||||||
"LuaSnip": { "branch": "master", "commit": "a62e1083a3cfe8b6b206e7d3d33a51091df25357" },
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "18aeab3d63d350dcf44d64c462cc489a3412af40" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "dd3f588bacbeb041be6facf1742e42097f62165d" },
|
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
|
||||||
"gruvbox": { "branch": "master", "commit": "697c00291db857ca0af00ec154e5bd514a79191f" },
|
"gitsigns.nvim": { "branch": "main", "commit": "ff01d34daaed72f271a8ffa088a7e839a60c640f" },
|
||||||
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
"gruvbox": { "branch": "master", "commit": "f1ecde848f0cdba877acb0c740320568252cc482" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "877c1db2bf957300097dd5348a665666a4d900cb" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
|
"lazy.nvim": { "branch": "main", "commit": "6b6f0a451200bb6abde85978c577c73ea1577758" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "7b01e2974a47d489bb92f47a41e4c0088ea8f86e" },
|
"lsp-zero.nvim": { "branch": "v3.x", "commit": "22677c535fdc11a73da67a186a30e360d8857497" },
|
||||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" },
|
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "8e921c2b68571e978db5d4d3fef9c9a7f8755473" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "e2705063f395b44f676cd26596a11007a2cbd3bd" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
"mason.nvim": { "branch": "main", "commit": "d66c60e17dd6fd8165194b1d14d21f7eb2c1697a" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
"noice.nvim": { "branch": "main", "commit": "7cf858c30841c9c41601ce58e5bc2023228037ef" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "7b9923abad60b903ece7c52940e1321d39eccc79" },
|
"nui.nvim": { "branch": "main", "commit": "c8de23342caf8d50b15d6b28368d36a56a69d76f" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
"nvim-autopairs": { "branch": "master", "commit": "de4f7138a68d5d5063170f2182fd27faf06b0b54" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "665525810630701b84181e4d9eefd24b49845b29" },
|
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "f9349d4d99e7d66403ae8bf4fbd357b154dca7a7" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
"nvim-lspconfig": { "branch": "master", "commit": "2b361e043810d5587d9af0787f8ce40da92ec5e9" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
|
"nvim-notify": { "branch": "master", "commit": "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "2795c26c916bb3c57dde308b82be51971fa92747" },
|
"nvim-treesitter": { "branch": "master", "commit": "10bfa4826f2235c600c073a82e0d78718aa7240e" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },
|
"nvim-web-devicons": { "branch": "master", "commit": "45d0237c427baba8cd05e0ab26d30e2ee58c2c82" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
"oil.nvim": { "branch": "master", "commit": "ac2928cca85ba3596e92f9f51940d46be2d606f8" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" },
|
"plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" },
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
"telescope.nvim": { "branch": "0.1.x", "commit": "54930e1abfc94409e1bb9266e752ef8379008592" },
|
||||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
|
||||||
"vim-abolish": { "branch": "master", "commit": "dcbfe065297d31823561ba787f51056c147aa682" },
|
"vim-abolish": { "branch": "master", "commit": "dcbfe065297d31823561ba787f51056c147aa682" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0" },
|
"vim-fugitive": { "branch": "master", "commit": "99db68d9b3304580bd383da7aaee05c7a954a344" },
|
||||||
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
|
"vim-highlightedyank": { "branch": "master", "commit": "fa3f57b097e9521ce41a66b6c7cf5d9adea70ea3" },
|
||||||
|
"vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" },
|
||||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||||
"vim-tmux-navigator": { "branch": "master", "commit": "e41c431a0c7b7388ae7ba341f01a0d217eb3a432" },
|
"vim-tmux-navigator": { "branch": "master", "commit": "7db70e08ea03b3e4d91f63713d76134512e28d7e" },
|
||||||
"vimtex": { "branch": "master", "commit": "182ad387e3f3107699483606c9a2b6648f8437b2" },
|
"vim-vsnip": { "branch": "master", "commit": "be277461265f1e5c7db470aa479f30956597ea9e" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }
|
||||||
}
|
}
|
||||||
@@ -17,8 +17,3 @@ vim.keymap.set("n", "N", "Nzzzv")
|
|||||||
-- Move block on visual mode
|
-- Move block on visual mode
|
||||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
|
|
||||||
-- Diagnostic (erreurs LSP)
|
|
||||||
vim.keymap.set('n', 'gl', vim.diagnostic.open_float, { desc = 'Show diagnostic' })
|
|
||||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Previous diagnostic' })
|
|
||||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Next diagnostic' })
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
'windwp/nvim-autopairs',
|
'windwp/nvim-autopairs',
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
opts = {
|
||||||
require("nvim-autopairs").setup({
|
disable_filetype = { "TelescopePrompt" , "vim" },
|
||||||
disable_filetype = { "TelescopePrompt", "vim" },
|
} -- this is equalent to setup({}) function
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,86 +1,69 @@
|
|||||||
return {
|
return {
|
||||||
"saghen/blink.cmp",
|
'hrsh7th/nvim-cmp',
|
||||||
-- optional: provides snippets for the snippet source
|
dependencies = {
|
||||||
dependencies = {
|
'neovim/nvim-lspconfig',
|
||||||
"rafamadriz/friendly-snippets",
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
{
|
'hrsh7th/cmp-buffer',
|
||||||
"L3MON4D3/LuaSnip",
|
'hrsh7th/cmp-path',
|
||||||
build = "make install_jsregexp",
|
'hrsh7th/cmp-cmdline',
|
||||||
config = function()
|
'hrsh7th/cmp-vsnip',
|
||||||
require("luasnip").setup({
|
'hrsh7th/vim-vsnip',
|
||||||
store_selection_keys = "<Tab>",
|
},
|
||||||
})
|
config = function ()
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
local cmp = require'cmp'
|
||||||
require("luasnip.loaders.from_lua").lazy_load({
|
cmp.setup({
|
||||||
paths = { "~/.config/nvim/snippets" },
|
snippet = {
|
||||||
})
|
expand = function(args)
|
||||||
end,
|
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
|
||||||
},
|
end,
|
||||||
},
|
},
|
||||||
|
window = {
|
||||||
|
completion = cmp.config.window.bordered(),
|
||||||
|
documentation = cmp.config.window.bordered(),
|
||||||
|
},
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'nvim_lsp' },
|
||||||
|
{ name = 'vsnip' }, -- For vsnip users.
|
||||||
|
{ name = 'path' },
|
||||||
|
{
|
||||||
|
name = 'buffer',
|
||||||
|
option = {
|
||||||
|
keyword_length = 3,
|
||||||
|
get_bufnrs = function()
|
||||||
|
return vim.api.nvim_list_bufs()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
{ name = 'buffer' },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
-- use a release tag to download pre-built binaries
|
-- Set configuration for specific filetype.
|
||||||
version = "1.*",
|
cmp.setup.filetype('gitcommit', {
|
||||||
-- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
|
sources = cmp.config.sources({
|
||||||
-- build = 'cargo build --release',
|
{ name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
||||||
-- If you use nix, you can build from source using latest nightly rust with:
|
}, {
|
||||||
-- build = 'nix run .#build-plugin',
|
{ name = 'buffer' },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
---@module 'blink.cmp'
|
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||||
---@type blink.cmp.Config
|
cmp.setup.cmdline({ '/', '?' }, {
|
||||||
opts = {
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
|
sources = {
|
||||||
-- 'super-tab' for mappings similar to vscode (tab to accept)
|
{ name = 'buffer' }
|
||||||
-- 'enter' for enter to accept
|
}
|
||||||
-- 'none' for no mappings
|
})
|
||||||
--
|
|
||||||
-- All presets have the following mappings:
|
|
||||||
-- C-space: Open menu or open docs if already open
|
|
||||||
-- C-n/C-p or Up/Down: Select next/previous item
|
|
||||||
-- C-e: Hide menu
|
|
||||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
|
||||||
--
|
|
||||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
|
||||||
keymap = { preset = "default" },
|
|
||||||
|
|
||||||
appearance = {
|
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
cmp.setup.cmdline(':', {
|
||||||
-- Adjusts spacing to ensure icons are aligned
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
nerd_font_variant = "mono",
|
sources = cmp.config.sources({
|
||||||
},
|
{ name = 'path' }
|
||||||
|
}, {
|
||||||
-- (Default) Only show the documentation popup when manually triggered
|
{ name = 'cmdline' }
|
||||||
completion = {
|
})
|
||||||
documentation = {
|
})
|
||||||
auto_show = true,
|
end
|
||||||
auto_show_delay_ms = 200,
|
|
||||||
},
|
|
||||||
ghost_text = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Default list of enabled providers defined so that you can extend it
|
|
||||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
|
||||||
sources = {
|
|
||||||
default = { "lsp", "path", "snippets", "buffer" },
|
|
||||||
providers = {
|
|
||||||
buffer = {
|
|
||||||
min_keyword_length = 3,
|
|
||||||
score_offset = -10,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
snippets = {
|
|
||||||
preset = "luasnip",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
|
||||||
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
|
||||||
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
|
||||||
--
|
|
||||||
-- See the fuzzy documentation for more information
|
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
|
||||||
},
|
|
||||||
opts_extend = { "sources.default" },
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,19 +18,18 @@ return {
|
|||||||
markdown = { "prettier" },
|
markdown = { "prettier" },
|
||||||
graphql = { "prettier" },
|
graphql = { "prettier" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
-- python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
python = { "ruff_fix", "ruff_format" },
|
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
lsp_format = "fallback",
|
lsp_fallback = true,
|
||||||
async = false,
|
async = false,
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
vim.keymap.set({ "n", "v" }, "<leader>mp", function()
|
vim.keymap.set({ "n", "v" }, "<leader>mp", function()
|
||||||
conform.format({
|
conform.format({
|
||||||
lsp_format = "fallback",
|
lsp_fallback = true,
|
||||||
async = true,
|
async = false,
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
})
|
})
|
||||||
end, { desc = "Format file or range (in visual mode)" })
|
end, { desc = "Format file or range (in visual mode)" })
|
||||||
|
|||||||
@@ -1,153 +0,0 @@
|
|||||||
-- plugins/h-- plugins/harpoon.lua
|
|
||||||
return {
|
|
||||||
"ThePrimeagen/harpoon",
|
|
||||||
branch = "harpoon2",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
|
||||||
local harpoon = require("harpoon")
|
|
||||||
|
|
||||||
-- Setup Harpoon pour sessions temporaires (pas de persistence)
|
|
||||||
harpoon:setup({
|
|
||||||
settings = {
|
|
||||||
save_on_toggle = false, -- Pas de sauvegarde automatique
|
|
||||||
sync_on_ui_close = false, -- Pas de sync à la fermeture
|
|
||||||
save_on_change = true, -- Sauvegarde les changements dans la session
|
|
||||||
excluded_filetypes = { "harpoon", "alpha", "dashboard", "gitcommit", "fugitive" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- === Fonction helper pour arrêter VimTeX ===
|
|
||||||
local function stop_all_vimtex()
|
|
||||||
-- Récupérer tous les buffers LaTeX ouverts
|
|
||||||
local latex_buffers = {}
|
|
||||||
for _, buf in ipairs(vim.api.nvim_list_bufs()) do
|
|
||||||
if vim.api.nvim_buf_is_loaded(buf) then
|
|
||||||
local filetype = vim.api.nvim_buf_get_option(buf, "filetype")
|
|
||||||
if filetype == "tex" or filetype == "latex" then
|
|
||||||
table.insert(latex_buffers, buf)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Arrêter VimTeX pour chaque buffer LaTeX
|
|
||||||
for _, buf in ipairs(latex_buffers) do
|
|
||||||
-- Switcher temporairement vers ce buffer pour exécuter VimtexStop
|
|
||||||
local current_buf = vim.api.nvim_get_current_buf()
|
|
||||||
vim.api.nvim_set_current_buf(buf)
|
|
||||||
|
|
||||||
if vim.fn.exists(":VimtexStop") == 2 then
|
|
||||||
pcall(vim.cmd, "VimtexStop") -- pcall pour éviter les erreurs
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Revenir au buffer original
|
|
||||||
if vim.api.nvim_buf_is_valid(current_buf) then
|
|
||||||
vim.api.nvim_set_current_buf(current_buf)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Alternative plus robuste: tuer directement les processus latexmk
|
|
||||||
local handle = io.popen("pgrep -f latexmk")
|
|
||||||
if handle then
|
|
||||||
local result = handle:read("*a")
|
|
||||||
handle:close()
|
|
||||||
if result and result ~= "" then
|
|
||||||
os.execute("pkill -f latexmk")
|
|
||||||
print("Killed background latexmk processes")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Keymaps AZERTY-friendly groupés sous <leader>h
|
|
||||||
local keymap = vim.keymap.set
|
|
||||||
|
|
||||||
-- === Gestion de session ===
|
|
||||||
keymap("n", "<leader>ha", function()
|
|
||||||
harpoon:list():append()
|
|
||||||
print("Added: " .. vim.fn.expand("%:t"))
|
|
||||||
end, { desc = "Harpoon: Add file to session" })
|
|
||||||
|
|
||||||
keymap("n", "<leader>hm", function()
|
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
||||||
end, { desc = "Harpoon: Toggle menu" })
|
|
||||||
|
|
||||||
keymap("n", "<leader>hc", function()
|
|
||||||
-- Confirmation simple
|
|
||||||
local choice = vim.fn.confirm("Clear session and stop VimTeX?", "&Yes\n&No", 2)
|
|
||||||
|
|
||||||
-- Si No, on fait rien
|
|
||||||
if choice ~= 1 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Arrêter toutes les compilations VimTeX
|
|
||||||
stop_all_vimtex()
|
|
||||||
|
|
||||||
-- Clear Harpoon
|
|
||||||
harpoon:list():clear()
|
|
||||||
|
|
||||||
-- Fermer tous les buffers
|
|
||||||
vim.cmd("silent! %bdelete")
|
|
||||||
|
|
||||||
print("Session cleared, VimTeX stopped, buffers closed!")
|
|
||||||
end, { desc = "Harpoon: Clear session & stop VimTeX" })
|
|
||||||
|
|
||||||
-- === Navigation directe (rangée de base AZERTY) ===
|
|
||||||
local nav_keys = {
|
|
||||||
{ key = "q", pos = 1 },
|
|
||||||
{ key = "s", pos = 2 },
|
|
||||||
{ key = "d", pos = 3 },
|
|
||||||
{ key = "f", pos = 4 },
|
|
||||||
{ key = "g", pos = 5 },
|
|
||||||
{ key = "h", pos = 6 },
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, mapping in ipairs(nav_keys) do
|
|
||||||
keymap("n", "<leader>h" .. mapping.key, function()
|
|
||||||
harpoon:list():select(mapping.pos)
|
|
||||||
end, { desc = "Harpoon: Go to file " .. mapping.pos })
|
|
||||||
end
|
|
||||||
|
|
||||||
-- === Navigation cyclique ===
|
|
||||||
keymap("n", "<leader>hn", function()
|
|
||||||
harpoon:list():next()
|
|
||||||
end, { desc = "Harpoon: Next file" })
|
|
||||||
|
|
||||||
keymap("n", "<leader>hp", function()
|
|
||||||
harpoon:list():prev()
|
|
||||||
end, { desc = "Harpoon: Previous file" })
|
|
||||||
|
|
||||||
-- === Commandes utiles ===
|
|
||||||
vim.api.nvim_create_user_command("HarpoonClear", function()
|
|
||||||
harpoon:list():clear()
|
|
||||||
print("Harpoon session cleared!")
|
|
||||||
end, { desc = "Clear current Harpoon session" })
|
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("HarpoonList", function()
|
|
||||||
local list = harpoon:list()
|
|
||||||
if #list.items == 0 then
|
|
||||||
print("No files in Harpoon session")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
print("Current Harpoon session:")
|
|
||||||
for i, item in ipairs(list.items) do
|
|
||||||
print(string.format(" %d. %s", i, item.value))
|
|
||||||
end
|
|
||||||
end, { desc = "List files in current Harpoon session" })
|
|
||||||
end,
|
|
||||||
|
|
||||||
-- Chargement paresseux: seulement quand on utilise les keymaps
|
|
||||||
keys = {
|
|
||||||
{ "<leader>ha", desc = "Harpoon: Add file" },
|
|
||||||
{ "<leader>hm", desc = "Harpoon: Menu" },
|
|
||||||
{ "<leader>hc", desc = "Harpoon: Clear & stop VimTeX" },
|
|
||||||
{ "<leader>hq", desc = "Harpoon: File 1" },
|
|
||||||
{ "<leader>hs", desc = "Harpoon: File 2" },
|
|
||||||
{ "<leader>hd", desc = "Harpoon: File 3" },
|
|
||||||
{ "<leader>hf", desc = "Harpoon: File 4" },
|
|
||||||
{ "<leader>hg", desc = "Harpoon: File 5" },
|
|
||||||
{ "<leader>hh", desc = "Harpoon: File 6" },
|
|
||||||
{ "<leader>hn", desc = "Harpoon: Next" },
|
|
||||||
{ "<leader>hp", desc = "Harpoon: Previous" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
10
nvim/.config/nvim/lua/plugins/indentation.lua
Normal file
10
nvim/.config/nvim/lua/plugins/indentation.lua
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
return {
|
||||||
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
|
main = "ibl",
|
||||||
|
config = function ()
|
||||||
|
vim.opt.list = true
|
||||||
|
vim.opt.listchars:append("eol:↴")
|
||||||
|
require("ibl").setup {
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@ return {
|
|||||||
typescript = { "eslint_d" },
|
typescript = { "eslint_d" },
|
||||||
javascriptreact = { "eslint_d" },
|
javascriptreact = { "eslint_d" },
|
||||||
typescriptreact = { "eslint_d" },
|
typescriptreact = { "eslint_d" },
|
||||||
python = { "ruff" },
|
python = { "flake8" },
|
||||||
}
|
}
|
||||||
|
|
||||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||||
|
|||||||
@@ -1,41 +1,37 @@
|
|||||||
return {
|
return {
|
||||||
"neovim/nvim-lspconfig",
|
"VonHeikemen/lsp-zero.nvim",
|
||||||
|
branch = "v3.x",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
{ "neovim/nvim-lspconfig" },
|
||||||
{ "williamboman/mason.nvim" },
|
{ "williamboman/mason.nvim" },
|
||||||
{ "williamboman/mason-lspconfig.nvim" },
|
{ "williamboman/mason-lspconfig.nvim" },
|
||||||
{ "WhoIsSethDaniel/mason-tool-installer.nvim" },
|
{ "WhoIsSethDaniel/mason-tool-installer.nvim" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_create_autocmd("LspAttach", {
|
local lsp_zero = require("lsp-zero")
|
||||||
callback = function(args)
|
lsp_zero.on_attach(function(client, bufnr)
|
||||||
local opts = { buffer = args.buf, silent = true }
|
-- see :help lsp-zero-keybindings
|
||||||
|
-- to learn the available actions
|
||||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition, vim.tbl_extend("force", opts, { desc = "Go to definition" }))
|
lsp_zero.default_keymaps({ buffer = bufnr })
|
||||||
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, vim.tbl_extend("force", opts, { desc = "Go to declaration" }))
|
end)
|
||||||
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, vim.tbl_extend("force", opts, { desc = "Go to implementation" }))
|
|
||||||
vim.keymap.set("n", "gr", vim.lsp.buf.references, vim.tbl_extend("force", opts, { desc = "Show references" }))
|
|
||||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, vim.tbl_extend("force", opts, { desc = "Hover documentation" }))
|
|
||||||
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, vim.tbl_extend("force", opts, { desc = "Rename symbol" }))
|
|
||||||
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, vim.tbl_extend("force", opts, { desc = "Code action" }))
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
require("mason").setup({})
|
require("mason").setup({})
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = {},
|
ensure_installed = {},
|
||||||
handlers = {
|
handlers = {
|
||||||
function(server_name)
|
lsp_zero.default_setup,
|
||||||
vim.lsp.enable(server_name)
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
local mason_tool_installer = require("mason-tool-installer")
|
||||||
|
|
||||||
require("mason-tool-installer").setup({
|
mason_tool_installer.setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"prettier",
|
"prettier", -- prettier formatter
|
||||||
"stylua",
|
"stylua", -- lua formatter
|
||||||
"ruff",
|
"isort", -- python formatter
|
||||||
"eslint_d",
|
"black", -- python formatter
|
||||||
|
"flake8", -- python linter
|
||||||
|
"eslint_d", -- js linter
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,235 +1,222 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
"nvim-tree/nvim-web-devicons",
|
'nvim-tree/nvim-web-devicons',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function ()
|
||||||
local colors = {
|
local colors = {
|
||||||
bg = "#202328",
|
bg = '#202328',
|
||||||
fg = "#bbc2cf",
|
fg = '#bbc2cf',
|
||||||
yellow = "#ECBE7B",
|
yellow = '#ECBE7B',
|
||||||
cyan = "#008080",
|
cyan = '#008080',
|
||||||
darkblue = "#081633",
|
darkblue = '#081633',
|
||||||
green = "#98be65",
|
green = '#98be65',
|
||||||
orange = "#FF8800",
|
orange = '#FF8800',
|
||||||
violet = "#a9a1e1",
|
violet = '#a9a1e1',
|
||||||
magenta = "#c678dd",
|
magenta = '#c678dd',
|
||||||
blue = "#51afef",
|
blue = '#51afef',
|
||||||
red = "#ec5f67",
|
red = '#ec5f67'
|
||||||
}
|
}
|
||||||
|
|
||||||
local conditions = {
|
local conditions = {
|
||||||
buffer_not_empty = function()
|
buffer_not_empty = function() return vim.fn.empty(vim.fn.expand('%:t')) ~= 1 end,
|
||||||
return vim.fn.empty(vim.fn.expand("%:t")) ~= 1
|
hide_in_width = function() return vim.fn.winwidth(0) > 80 end,
|
||||||
end,
|
check_git_workspace = function()
|
||||||
hide_in_width = function()
|
local filepath = vim.fn.expand('%:p:h')
|
||||||
return vim.fn.winwidth(0) > 80
|
local gitdir = vim.fn.finddir('.git', filepath .. ';')
|
||||||
end,
|
return gitdir and #gitdir > 0 and #gitdir < #filepath
|
||||||
check_git_workspace = function()
|
end
|
||||||
local filepath = vim.fn.expand("%:p:h")
|
}
|
||||||
local gitdir = vim.fn.finddir(".git", filepath .. ";")
|
|
||||||
return gitdir and #gitdir > 0 and #gitdir < #filepath
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Config
|
-- Config
|
||||||
local config = {
|
local config = {
|
||||||
options = {
|
options = {
|
||||||
-- Disable sections and component separators
|
-- Disable sections and component separators
|
||||||
component_separators = "",
|
component_separators = "",
|
||||||
section_separators = "",
|
section_separators = "",
|
||||||
-- theme = 'gruvbox',
|
-- theme = 'gruvbox',
|
||||||
theme = {
|
theme = {
|
||||||
-- We are going to use lualine_c an lualine_x as left and
|
-- We are going to use lualine_c an lualine_x as left and
|
||||||
-- right section. both are highlighted by c theme . so we
|
-- right section. both are highlighted by c theme . so we
|
||||||
-- are just setting default looks o statusline
|
-- are just setting default looks o statusline
|
||||||
normal = { c = { fg = colors.fg, bg = colors.bg } },
|
normal = {c = {fg = colors.fg, bg = colors.bg}},
|
||||||
inactive = { c = { fg = colors.fg, bg = colors.bg } },
|
inactive = {c = {fg = colors.fg, bg = colors.bg}}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
-- these are to remove the defaults
|
-- these are to remove the defaults
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
-- these will be filled later
|
-- these will be filled later
|
||||||
lualine_c = {},
|
lualine_c = {},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
{
|
{
|
||||||
require("noice").api.statusline.mode.get,
|
require("noice").api.statusline.mode.get,
|
||||||
cond = require("noice").api.statusline.mode.has,
|
cond = require("noice").api.statusline.mode.has,
|
||||||
color = { fg = "#ff9e64" },
|
color = { fg = "#ff9e64" },
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
-- these are to remove the defaults
|
-- these are to remove the defaults
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_v = {},
|
lualine_v = {},
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
lualine_c = {},
|
lualine_c = {},
|
||||||
lualine_x = {},
|
lualine_x = {}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- inserts a component in lualine_c at left section
|
-- inserts a component in lualine_c at left section
|
||||||
local function ins_left(component)
|
local function ins_left(component)
|
||||||
table.insert(config.sections.lualine_c, component)
|
table.insert(config.sections.lualine_c, component)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- inserts a component in lualine_x ot right section
|
-- inserts a component in lualine_x ot right section
|
||||||
local function ins_right(component)
|
local function ins_right(component)
|
||||||
table.insert(config.sections.lualine_x, component)
|
table.insert(config.sections.lualine_x, component)
|
||||||
end
|
end
|
||||||
|
|
||||||
local mode_color = {
|
local mode_color = {
|
||||||
n = colors.red,
|
n = colors.red,
|
||||||
i = colors.green,
|
i = colors.green,
|
||||||
v = colors.blue,
|
v = colors.blue,
|
||||||
[""] = colors.blue,
|
[''] = colors.blue,
|
||||||
v = colors.blue,
|
v = colors.blue,
|
||||||
c = colors.magenta,
|
c = colors.magenta,
|
||||||
no = colors.red,
|
no = colors.red,
|
||||||
s = colors.orange,
|
s = colors.orange,
|
||||||
s = colors.orange,
|
s = colors.orange,
|
||||||
[""] = colors.orange,
|
[''] = colors.orange,
|
||||||
ic = colors.yellow,
|
ic = colors.yellow,
|
||||||
r = colors.violet,
|
r = colors.violet,
|
||||||
rv = colors.violet,
|
rv = colors.violet,
|
||||||
cv = colors.red,
|
cv = colors.red,
|
||||||
ce = colors.red,
|
ce = colors.red,
|
||||||
r = colors.cyan,
|
r = colors.cyan,
|
||||||
rm = colors.cyan,
|
rm = colors.cyan,
|
||||||
["r?"] = colors.cyan,
|
['r?'] = colors.cyan,
|
||||||
["!"] = colors.red,
|
['!'] = colors.red,
|
||||||
t = colors.red,
|
t = colors.red
|
||||||
}
|
}
|
||||||
|
|
||||||
ins_left({
|
ins_left {
|
||||||
-- mode component
|
-- mode component
|
||||||
function()
|
function()
|
||||||
-- auto change color according to neovims mode
|
-- auto change color according to neovims mode
|
||||||
vim.api.nvim_command("hi! lualinemode guifg=" .. mode_color[vim.fn.mode()] .. " guibg=" .. colors.bg)
|
vim.api.nvim_command(
|
||||||
return ""
|
'hi! lualinemode guifg=' .. mode_color[vim.fn.mode()] .. " guibg=" .. colors.bg)
|
||||||
end,
|
return ''
|
||||||
color = "lualinemode",
|
end,
|
||||||
left_padding = 0,
|
color = "lualinemode",
|
||||||
})
|
left_padding = 0
|
||||||
|
}
|
||||||
|
|
||||||
ins_left({
|
ins_left {
|
||||||
"mode",
|
"mode",
|
||||||
color = { fg = colors.green, gui = "bold" },
|
color = {fg = colors.green, gui = 'bold'}
|
||||||
})
|
}
|
||||||
|
|
||||||
ins_left({
|
ins_left {
|
||||||
-- filesize component
|
-- filesize component
|
||||||
function()
|
function()
|
||||||
local function format_file_size(file)
|
local function format_file_size(file)
|
||||||
local size = vim.fn.getfsize(file)
|
local size = vim.fn.getfsize(file)
|
||||||
if size <= 0 then
|
if size <= 0 then return '' end
|
||||||
return ""
|
local sufixes = {'b', 'k', 'm', 'g'}
|
||||||
end
|
local i = 1
|
||||||
local sufixes = { "b", "k", "m", "g" }
|
while size > 1024 do
|
||||||
local i = 1
|
size = size / 1024
|
||||||
while size > 1024 do
|
i = i + 1
|
||||||
size = size / 1024
|
end
|
||||||
i = i + 1
|
return string.format('%.1f%s', size, sufixes[i])
|
||||||
end
|
end
|
||||||
return string.format("%.1f%s", size, sufixes[i])
|
local file = vim.fn.expand('%:p')
|
||||||
end
|
if string.len(file) == 0 then return '' end
|
||||||
local file = vim.fn.expand("%:p")
|
return format_file_size(file)
|
||||||
if string.len(file) == 0 then
|
end,
|
||||||
return ""
|
condition = conditions.buffer_not_empty
|
||||||
end
|
}
|
||||||
return format_file_size(file)
|
ins_left {
|
||||||
end,
|
-- Lsp server name .
|
||||||
condition = conditions.buffer_not_empty,
|
function()
|
||||||
})
|
local msg = 'No Active Lsp'
|
||||||
ins_left({
|
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
||||||
-- Lsp server name .
|
local clients = vim.lsp.get_active_clients()
|
||||||
function()
|
if next(clients) == nil then return msg end
|
||||||
local msg = "No Active Lsp"
|
for _, client in ipairs(clients) do
|
||||||
local buf_ft = vim.bo.filetype
|
local filetypes = client.config.filetypes
|
||||||
local clients = vim.lsp.get_clients()
|
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
||||||
if next(clients) == nil then
|
return client.name
|
||||||
return msg
|
end
|
||||||
end
|
end
|
||||||
for _, client in ipairs(clients) do
|
return msg
|
||||||
local filetypes = client.config.filetypes
|
end,
|
||||||
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
icon = ' LSP:',
|
||||||
return client.name
|
color = {fg = '#ffffff', gui = 'bold'}
|
||||||
end
|
}
|
||||||
end
|
|
||||||
return msg
|
|
||||||
end,
|
|
||||||
icon = " LSP:",
|
|
||||||
color = { fg = "#ffffff", gui = "bold" },
|
|
||||||
})
|
|
||||||
|
|
||||||
ins_left({
|
ins_left {
|
||||||
"diagnostics",
|
'diagnostics',
|
||||||
sources = { "nvim_diagnostic" },
|
sources = {'nvim_diagnostic'},
|
||||||
symbols = { error = " ", warn = " ", info = " " },
|
symbols = {error = ' ', warn = ' ', info = ' '},
|
||||||
color_error = colors.red,
|
color_error = colors.red,
|
||||||
color_warn = colors.yellow,
|
color_warn = colors.yellow,
|
||||||
color_info = colors.cyan,
|
color_info = colors.cyan
|
||||||
})
|
}
|
||||||
|
|
||||||
-- Insert mid section. You can make any number of sections in neovim :)
|
-- Insert mid section. You can make any number of sections in neovim :)
|
||||||
-- for lualine it's any number greater then 2
|
-- for lualine it's any number greater then 2
|
||||||
ins_left({
|
ins_left {function() return '%=' end}
|
||||||
function()
|
|
||||||
return "%="
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
ins_left({
|
ins_left {
|
||||||
"filename",
|
'filename',
|
||||||
file_status = true,
|
file_status = true,
|
||||||
path = 1,
|
path = 1,
|
||||||
condition = conditions.buffer_not_empty,
|
condition = conditions.buffer_not_empty,
|
||||||
color = { fg = colors.magenta, gui = "bold" },
|
color = {fg = colors.magenta, gui = 'bold'}
|
||||||
})
|
}
|
||||||
|
|
||||||
-- Add components to right sections
|
-- Add components to right sections
|
||||||
ins_right({
|
ins_right {
|
||||||
"o:encoding", -- option component same as &encoding in viml
|
'o:encoding', -- option component same as &encoding in viml
|
||||||
upper = true, -- I'm not sure why it's upper case either ;)
|
upper = true, -- I'm not sure why it's upper case either ;)
|
||||||
condition = conditions.hide_in_width,
|
condition = conditions.hide_in_width,
|
||||||
color = { fg = colors.green, gui = "bold" },
|
color = {fg = colors.green, gui = 'bold'}
|
||||||
})
|
}
|
||||||
|
|
||||||
ins_right({
|
ins_right {
|
||||||
"fileformat",
|
'fileformat',
|
||||||
upper = true,
|
upper = true,
|
||||||
icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
|
icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
|
||||||
color = { fg = colors.green, gui = "bold" },
|
color = {fg = colors.green, gui = 'bold'}
|
||||||
})
|
}
|
||||||
|
|
||||||
ins_right({
|
ins_right {
|
||||||
"branch",
|
'branch',
|
||||||
icon = "",
|
icon = '',
|
||||||
condition = conditions.check_git_workspace,
|
condition = conditions.check_git_workspace,
|
||||||
color = { fg = colors.violet, gui = "bold" },
|
color = {fg = colors.violet, gui = 'bold'}
|
||||||
})
|
}
|
||||||
|
|
||||||
ins_right({
|
ins_right {
|
||||||
"diff",
|
'diff',
|
||||||
-- Is it me or the symbol for modified us really weird
|
-- Is it me or the symbol for modified us really weird
|
||||||
symbols = { added = " ", modified = "柳 ", removed = " " },
|
symbols = {added = ' ', modified = '柳 ', removed = ' '},
|
||||||
color_added = colors.green,
|
color_added = colors.green,
|
||||||
color_modified = colors.orange,
|
color_modified = colors.orange,
|
||||||
color_removed = colors.red,
|
color_removed = colors.red,
|
||||||
condition = conditions.hide_in_width,
|
condition = conditions.hide_in_width
|
||||||
})
|
}
|
||||||
|
|
||||||
ins_right({ "location" })
|
ins_right {'location'}
|
||||||
|
|
||||||
ins_right({ "progress", color = { fg = colors.fg, gui = "bold" } })
|
ins_right {'progress', color = {fg = colors.fg, gui = 'bold'}}
|
||||||
|
|
||||||
require("lualine").setup(config)
|
require('lualine').setup(config)
|
||||||
end,
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,4 +2,5 @@ return {
|
|||||||
'tpope/vim-surround',
|
'tpope/vim-surround',
|
||||||
'tpope/vim-repeat',
|
'tpope/vim-repeat',
|
||||||
'tpope/vim-abolish',
|
'tpope/vim-abolish',
|
||||||
|
'machakann/vim-highlightedyank'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,15 @@
|
|||||||
return {
|
return {
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {},
|
opts = {
|
||||||
dependencies = {
|
-- add any options here
|
||||||
"MunifTanjim/nui.nvim",
|
},
|
||||||
-- "rcarriga/nvim-notify",
|
dependencies = {
|
||||||
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
-- OPTIONAL:
|
||||||
|
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||||
|
-- If not available, we use `mini` as the fallback
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
},
|
},
|
||||||
config = function()
|
|
||||||
require("noice").setup({
|
|
||||||
lsp = {
|
|
||||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
|
||||||
override = {
|
|
||||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
|
||||||
["vim.lsp.util.stylize_markdown"] = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- you can enable a preset for easier configuration
|
|
||||||
presets = {
|
|
||||||
bottom_search = true, -- use a classic bottom cmdline for search
|
|
||||||
command_palette = true, -- position the cmdline and popupmenu together
|
|
||||||
long_message_to_split = true, -- long messages will be sent to a split
|
|
||||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
|
||||||
lsp_doc_border = false, -- add a border to hover docs and signature help
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,71 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/snacks.nvim",
|
|
||||||
priority = 1000,
|
|
||||||
lazy = false,
|
|
||||||
---@type snacks.Config
|
|
||||||
opts = {
|
|
||||||
indent = {
|
|
||||||
enabled = true,
|
|
||||||
char = "|",
|
|
||||||
},
|
|
||||||
input = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
notifier = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
git = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
bigfile = { enabled = true },
|
|
||||||
dashboard = { enabled = true },
|
|
||||||
quickfile = { enabled = true },
|
|
||||||
scroll = { enabled = true },
|
|
||||||
statuscolumn = { enabled = true },
|
|
||||||
words = { enabled = false },
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>ns",
|
|
||||||
function()
|
|
||||||
Snacks.notifier.show_history()
|
|
||||||
end,
|
|
||||||
desc = "Notification History",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>nh",
|
|
||||||
function()
|
|
||||||
Snacks.notifier.hide()
|
|
||||||
end,
|
|
||||||
desc = "Dismiss All Notifications",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>gb",
|
|
||||||
function()
|
|
||||||
Snacks.git.blame_line()
|
|
||||||
end,
|
|
||||||
desc = "Git Blame Line",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>gf",
|
|
||||||
function()
|
|
||||||
Snacks.lazygit.log_file()
|
|
||||||
end,
|
|
||||||
desc = "Lazygit Current File History",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>gg",
|
|
||||||
function()
|
|
||||||
Snacks.lazygit()
|
|
||||||
end,
|
|
||||||
desc = "Lazygit",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>gl",
|
|
||||||
function()
|
|
||||||
Snacks.lazygit.log()
|
|
||||||
end,
|
|
||||||
desc = "Lazygit Log (cwd)",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,70 +1,27 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
'nvim-telescope/telescope.nvim', branch = '0.1.x',
|
||||||
branch = "0.1.x",
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
dependencies = {
|
opts = {
|
||||||
"nvim-lua/plenary.nvim",
|
defaults = {
|
||||||
{
|
file_ignore_patterns = { "**/*.pdf" },
|
||||||
"nvim-telescope/telescope-fzf-native.nvim",
|
layout_strategy = "horizontal",
|
||||||
build = "make",
|
layout_config = { prompt_position = "top" },
|
||||||
},
|
sorting_strategy = "ascending",
|
||||||
},
|
winblend = 0,
|
||||||
opts = {
|
},
|
||||||
defaults = {
|
},
|
||||||
file_ignore_patterns = { "**/*.pdf" },
|
keys = {
|
||||||
layout_strategy = "horizontal",
|
{"<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files"},
|
||||||
layout_config = {
|
{"<leader>fe", "<cmd>Telescope git_files<cr>", desc = "Find file respecting .gitignore"},
|
||||||
horizontal = {
|
{"<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Grep file in file"},
|
||||||
prompt_position = "top",
|
{"<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Search through buffers"},
|
||||||
preview_width = 0.55,
|
{"<leader>ft", "<cmd>Telescope tags<cr>", desc = "Search through tags"},
|
||||||
},
|
{"<leader>fm", "<cmd>Telescope marks<cr>", desc = "Search through marks"},
|
||||||
width = 0.87,
|
{"<leader>fs", "<cmd>Telescope search_history<cr>", desc = "Search through search"},
|
||||||
height = 0.80,
|
},
|
||||||
preview_cutoff = 120,
|
config = function()
|
||||||
},
|
require('telescope').setup(
|
||||||
sorting_strategy = "ascending",
|
|
||||||
borderchars = { "█", "█", "█", "█", "█", "█", "█", "█" },
|
|
||||||
prompt_prefix = " 🔍 ",
|
|
||||||
selection_caret = " ➜ ",
|
|
||||||
entry_prefix = " ",
|
|
||||||
winblend = 0,
|
|
||||||
results_title = "",
|
|
||||||
prompt_title = "",
|
|
||||||
preview_title = "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
|
||||||
local telescope = require("telescope")
|
|
||||||
local actions = require("telescope.actions")
|
|
||||||
opts.defaults.mappings = {
|
|
||||||
i = { ["<C-d>"] = actions.delete_buffer },
|
|
||||||
n = { ["<C-d>"] = actions.delete_buffer },
|
|
||||||
}
|
|
||||||
telescope.setup(opts)
|
|
||||||
telescope.load_extension("fzf")
|
|
||||||
|
|
||||||
local bg = vim.api.nvim_get_hl(0, { name = "CursorColumn" }).bg
|
)
|
||||||
if type(bg) == "number" then
|
end
|
||||||
bg = string.format("#%06x", bg)
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopeNormal", { bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopePromptNormal", { bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopeResultsNormal", { bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopePreviewNormal", { bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopePromptBorder", { fg = bg, bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopeResultsBorder", { fg = bg, bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopePreviewBorder", { fg = bg, bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopePromptTitle", { fg = bg, bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopeResultsTitle", { fg = bg, bg = bg })
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopePreviewTitle", { fg = bg, bg = bg })
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" },
|
|
||||||
{ "<leader>fe", "<cmd>Telescope git_files<cr>", desc = "Find file respecting .gitignore" },
|
|
||||||
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Grep file in file" },
|
|
||||||
{ "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Search through buffers" },
|
|
||||||
{ "<leader>ft", "<cmd>Telescope tags<cr>", desc = "Search through tags" },
|
|
||||||
{ "<leader>fm", "<cmd>Telescope marks<cr>", desc = "Search through marks" },
|
|
||||||
{ "<leader>fs", "<cmd>Telescope search_history<cr>", desc = "Search through search" },
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,106 +1,14 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
dependencies = {
|
config = function ()
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
local configs = require("nvim-treesitter.configs")
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
-- Compatibility shim for plugins using the old parsers.ft_to_lang API (e.g. telescope)
|
|
||||||
local ok, parsers = pcall(require, "nvim-treesitter.parsers")
|
|
||||||
if ok and not parsers.ft_to_lang then
|
|
||||||
parsers.ft_to_lang = function(ft)
|
|
||||||
return vim.treesitter.language.get_lang(ft) or ft
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
require("nvim-treesitter").setup({
|
configs.setup({
|
||||||
ensure_installed = {
|
ensure_installed = { "lua", "vim", "vimdoc", "javascript", "html", "python", "dockerfile", "latex", "yaml", "regex", "bash", "markdown", "markdown_inline" },
|
||||||
"lua",
|
sync_install = false,
|
||||||
"vim",
|
highlight = { enable = true },
|
||||||
"vimdoc",
|
indent = { enable = true },
|
||||||
"javascript",
|
})
|
||||||
"html",
|
end
|
||||||
"python",
|
|
||||||
"dockerfile",
|
|
||||||
"yaml",
|
|
||||||
"regex",
|
|
||||||
"bash",
|
|
||||||
"markdown",
|
|
||||||
"markdown_inline",
|
|
||||||
},
|
|
||||||
sync_install = false,
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
disable = { "latex" },
|
|
||||||
},
|
|
||||||
indent = { enable = true },
|
|
||||||
|
|
||||||
-- Configuration des text objects intelligents
|
|
||||||
textobjects = {
|
|
||||||
select = {
|
|
||||||
enable = true,
|
|
||||||
lookahead = false, -- Ne cherche PAS vers l'avant (résout votre problème!)
|
|
||||||
|
|
||||||
keymaps = {
|
|
||||||
-- Délimiteurs syntaxiques
|
|
||||||
["i{"] = "@block.inner",
|
|
||||||
["a{"] = "@block.outer",
|
|
||||||
["i("] = "@call.inner",
|
|
||||||
["a("] = "@call.outer",
|
|
||||||
["i["] = "@call.inner",
|
|
||||||
["a["] = "@call.outer",
|
|
||||||
|
|
||||||
-- Strings/Guillemets
|
|
||||||
['i"'] = "@string.inner",
|
|
||||||
['a"'] = "@string.outer",
|
|
||||||
["i'"] = "@string.inner",
|
|
||||||
["a'"] = "@string.outer",
|
|
||||||
["i`"] = "@string.inner",
|
|
||||||
["a`"] = "@string.outer",
|
|
||||||
|
|
||||||
-- Délimiteurs sémantiques
|
|
||||||
["if"] = "@function.inner",
|
|
||||||
["af"] = "@function.outer",
|
|
||||||
["iC"] = "@class.inner", -- Majuscule pour éviter conflit avec VimTeX
|
|
||||||
["aC"] = "@class.outer",
|
|
||||||
["ib"] = "@block.inner",
|
|
||||||
["ab"] = "@block.outer",
|
|
||||||
["ii"] = "@conditional.inner",
|
|
||||||
["ai"] = "@conditional.outer",
|
|
||||||
["il"] = "@loop.inner",
|
|
||||||
["al"] = "@loop.outer",
|
|
||||||
["ia"] = "@parameter.inner",
|
|
||||||
["aa"] = "@parameter.outer",
|
|
||||||
["i/"] = "@comment.inner",
|
|
||||||
["a/"] = "@comment.outer",
|
|
||||||
["ir"] = "@return.inner",
|
|
||||||
["ar"] = "@return.outer",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Mode de sélection (v = charwise)
|
|
||||||
selection_modes = {
|
|
||||||
['@parameter.outer'] = 'v',
|
|
||||||
['@function.outer'] = 'V', -- linewise pour fonctions
|
|
||||||
['@class.outer'] = 'V', -- linewise pour classes
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Ne pas inclure les espaces (comportement précis)
|
|
||||||
include_surrounding_whitespace = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
-- opts = function(_, opts)
|
|
||||||
-- vim.treesitter.language.register("markdown", "mdx")
|
|
||||||
-- vim.list_extend(opts.highlight.disable, { "tsx" })
|
|
||||||
-- if type(opts.ensure_installed) == "table" then
|
|
||||||
-- vim.list_extend(opts.ensure_installed, {
|
|
||||||
-- "bibtex",
|
|
||||||
-- -- you can add more here
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
-- if type(opts.highlight.disable) == "table" then
|
|
||||||
-- else
|
|
||||||
-- end
|
|
||||||
-- end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
8
nvim/.config/nvim/lua/plugins/ui.lua
Normal file
8
nvim/.config/nvim/lua/plugins/ui.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"folke/noice.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
dependencies = {
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"lervag/vimtex",
|
|
||||||
lazy = false, -- lazy-loading will disable inverse search
|
|
||||||
config = function()
|
|
||||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
|
||||||
group = vim.api.nvim_create_augroup("lazyvim_vimtex_conceal", { clear = true }),
|
|
||||||
pattern = { "bib", "tex" },
|
|
||||||
callback = function()
|
|
||||||
vim.wo.conceallevel = 0
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
|
|
||||||
vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"
|
|
||||||
|
|
||||||
vim.g.vimtex_view_method = "zathura" -- <== macos specific, you can use zathura or sumatra or something else.
|
|
||||||
vim.g.vimtex_view_skim_sync = 1
|
|
||||||
vim.g.vimtex_view_skim_activate = 1
|
|
||||||
vim.g.vimtex_view_skim_reading_bar = 1
|
|
||||||
|
|
||||||
vim.g.vimtex_compiler_latexmk = {
|
|
||||||
aux_dir = "./aux",
|
|
||||||
out_dir = "./",
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,18 +1,13 @@
|
|||||||
return {
|
return {
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
init = function()
|
||||||
-- your configuration comes here
|
vim.o.timeout = true
|
||||||
-- or leave it empty to use the default settings
|
vim.o.timeoutlen = 300
|
||||||
-- refer to the configuration section below
|
end,
|
||||||
},
|
opts = {
|
||||||
keys = {
|
-- your configuration comes here
|
||||||
{
|
-- or leave it empty to use the default settings
|
||||||
"<leader>?",
|
-- refer to the configuration section below
|
||||||
function()
|
}
|
||||||
require("which-key").show({ global = false })
|
|
||||||
end,
|
|
||||||
desc = "Buffer Local Keymaps (which-key)",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +1,52 @@
|
|||||||
local cmd = vim.cmd
|
local cmd = vim.cmd -- execute Vim commands
|
||||||
local g = vim.g
|
local exec = vim.api.nvim_exec -- execute Vimscript
|
||||||
local opt = vim.opt
|
-- local fn = vim.fn -- call Vim functions
|
||||||
|
local g = vim.g -- global variables
|
||||||
|
local opt = vim.opt -- global/buffer/windows-scoped options
|
||||||
|
|
||||||
opt.mouse = "a"
|
g.showmode = true
|
||||||
opt.clipboard = "unnamedplus"
|
g.hidden = true -- Required to keep multiple buffers open multiple buffers
|
||||||
opt.swapfile = false
|
opt.mouse = 'a' -- enable mouse
|
||||||
|
opt.clipboard = 'unnamedplus' -- copy/paste with system
|
||||||
|
opt.swapfile = false -- no swapfile
|
||||||
|
|
||||||
opt.wrap = true
|
opt.wrap = true -- Display long lines as just one line
|
||||||
opt.expandtab = true
|
opt.expandtab = true -- Use space instead of tabs
|
||||||
opt.tabstop = 4
|
opt.tabstop = 4 -- Insert 4 spaces for a tab
|
||||||
opt.shiftwidth = 4
|
opt.shiftwidth = 4 -- Change the number of space characters inserted for indentation
|
||||||
opt.smarttab = true
|
opt.smarttab = true -- Makes tabbing smarter will realize you have 2 vs 4
|
||||||
opt.autoindent = true
|
opt.autoindent = true -- Good auto indent
|
||||||
opt.foldmethod = "indent"
|
opt.foldmethod='indent'
|
||||||
|
|
||||||
opt.number = true
|
opt.number = true -- show line number
|
||||||
opt.relativenumber = true
|
opt.relativenumber = true -- show relative line number
|
||||||
opt.cursorline = true
|
opt.cursorline = true -- highlight current line
|
||||||
|
|
||||||
opt.scrolloff = 8
|
opt.ignorecase = true -- Ignore case on search
|
||||||
opt.ignorecase = true
|
opt.smartcase = true -- ignore lowercse for the whoel pattern
|
||||||
opt.smartcase = true
|
|
||||||
|
|
||||||
opt.completeopt = "menuone,noselect,popup"
|
opt.completeopt = 'menuone,noselect,noinsert' -- completion options
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
opt.spell = true
|
||||||
pattern = { "markdown", "text", "tex", "gitcommit" },
|
opt.spelllang = {'fr', 'en'}
|
||||||
callback = function()
|
|
||||||
vim.opt_local.spell = true
|
|
||||||
vim.opt_local.spelllang = { "fr", "en" }
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
opt.nrformats = opt.nrformats + "alpha"
|
opt.nrformats = opt.nrformats + 'alpha'
|
||||||
opt.showmatch = true
|
|
||||||
|
|
||||||
cmd([[au BufEnter * set fo-=c fo-=r fo-=o]])
|
g.showtabline = true
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
-- don't auto commenting new lines
|
||||||
callback = function()
|
cmd[[au BufEnter * set fo-=c fo-=r fo-=o]]
|
||||||
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 700 })
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
g.python3_host_prog = vim.fn.expand("~/.venv/nvim/bin/python")
|
opt.showmatch = true -- show parenthethis match
|
||||||
|
|
||||||
vim.filetype.add({
|
-- Highlight on yank
|
||||||
extension = {
|
exec([[
|
||||||
tf = "terraform",
|
augroup YankHighlight
|
||||||
},
|
autocmd!
|
||||||
})
|
autocmd TextYankPost * silent! lua vim.highlight.on_yank{higroup="IncSearch", timeout=700}
|
||||||
|
augroup end
|
||||||
|
]], false)
|
||||||
|
|
||||||
|
|
||||||
|
-- Python 3
|
||||||
|
g.python3_host_prog="~/.venv/nvim/bin/python"
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "custom-latex-snippets",
|
|
||||||
"contributes": {
|
|
||||||
"snippets": [
|
|
||||||
{
|
|
||||||
"language": "tex",
|
|
||||||
"path": "./snippets/latex.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "latex",
|
|
||||||
"path": "./snippets/latex.json"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
local t = ls.text_node
|
|
||||||
local i = ls.insert_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
|
|
||||||
return {
|
|
||||||
-- Minipage avec texte sélectionné
|
|
||||||
s({ trig = "minipage", dscr = "Minipage environment" }, {
|
|
||||||
t("\\begin{minipage}{"),
|
|
||||||
i(1, "0.5"),
|
|
||||||
t("\\textwidth}"),
|
|
||||||
t({ "", "\t" }),
|
|
||||||
d(2, function(_, snip)
|
|
||||||
return sn(nil, i(1, snip.env.LS_SELECT_RAW or ""))
|
|
||||||
end),
|
|
||||||
t({ "", "\\end{minipage}" }),
|
|
||||||
}),
|
|
||||||
|
|
||||||
-- Multicols avec texte sélectionné
|
|
||||||
s({ trig = "multicols", dscr = "Multicols environment" }, {
|
|
||||||
t("\\begin{multicols}{"),
|
|
||||||
i(1, "2"),
|
|
||||||
t("}"),
|
|
||||||
t({ "", "\t" }),
|
|
||||||
d(2, function(_, snip)
|
|
||||||
return sn(nil, i(1, snip.env.LS_SELECT_RAW or ""))
|
|
||||||
end),
|
|
||||||
t({ "", "\\end{multicols}" }),
|
|
||||||
}),
|
|
||||||
|
|
||||||
-- Deux minipages côte à côte
|
|
||||||
s({ trig = "minipage2", dscr = "Two minipages side by side" }, {
|
|
||||||
t("\\begin{minipage}{"),
|
|
||||||
i(1, "0.48"),
|
|
||||||
t("\\textwidth}"),
|
|
||||||
t({ "", "\t" }),
|
|
||||||
i(2),
|
|
||||||
t({ "", "\\end{minipage}" }),
|
|
||||||
t({ "", "\\hfill" }),
|
|
||||||
t({ "", "\\begin{minipage}{" }),
|
|
||||||
f(function(args)
|
|
||||||
local width = tonumber(args[1][1])
|
|
||||||
if width then
|
|
||||||
return tostring(1 - width)
|
|
||||||
else
|
|
||||||
return "0.48"
|
|
||||||
end
|
|
||||||
end, { 1 }),
|
|
||||||
t("\\textwidth}"),
|
|
||||||
t({ "", "\t" }),
|
|
||||||
i(0),
|
|
||||||
t({ "", "\\end{minipage}" }),
|
|
||||||
}),
|
|
||||||
}
|
|
||||||
5
qtile/.config/qtile/autostart.sh
Executable file
5
qtile/.config/qtile/autostart.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
nm-applet &
|
||||||
|
pasystray &
|
||||||
|
nextcloud &
|
||||||
|
xrandr --output VGA-1 --off --output HDMI-1 --mode 1920x1080 --pos 1080x420 --rotate normal --output DP-1 --off --output HDMI-2 --mode 1920x1080 --pos 0x0 --rotate left --output DP-2 --off
|
||||||
267
qtile/.config/qtile/config.py
Normal file
267
qtile/.config/qtile/config.py
Normal file
@@ -0,0 +1,267 @@
|
|||||||
|
# Copyright (c) 2010 Aldo Cortesi
|
||||||
|
# Copyright (c) 2010, 2014 dequis
|
||||||
|
# Copyright (c) 2012 Randall Ma
|
||||||
|
# Copyright (c) 2012-2014 Tycho Andersen
|
||||||
|
# Copyright (c) 2012 Craig Barnes
|
||||||
|
# Copyright (c) 2013 horsik
|
||||||
|
# Copyright (c) 2013 Tao Sauvage
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
from libqtile.config import Key, Screen, Group, Drag, Click, ScratchPad, DropDown
|
||||||
|
from libqtile.command import lazy
|
||||||
|
from libqtile import layout, bar, widget, extension, hook
|
||||||
|
from libqtile.log_utils import logger
|
||||||
|
from os.path import expanduser
|
||||||
|
from subprocess import call
|
||||||
|
|
||||||
|
|
||||||
|
from typing import List # noqa: F401
|
||||||
|
|
||||||
|
wmname = "???"
|
||||||
|
MOD = "mod4"
|
||||||
|
TERM = "urxvt"
|
||||||
|
|
||||||
|
# Base16 - hybrid (with 5 and 13 from jmbi)
|
||||||
|
colors = {
|
||||||
|
# special
|
||||||
|
"FG": "#c5c8c6",
|
||||||
|
"BG": "#1d1f21",
|
||||||
|
"C": "#c5c8c6",
|
||||||
|
# black
|
||||||
|
0: "#282a2e",
|
||||||
|
8: "#373b41",
|
||||||
|
# red
|
||||||
|
1: "#a54242",
|
||||||
|
9: "#cc6666",
|
||||||
|
# green
|
||||||
|
2: "#8c9440",
|
||||||
|
10: "#b5bd68",
|
||||||
|
# yellow
|
||||||
|
3: "#de935f",
|
||||||
|
11: "#f0c674",
|
||||||
|
# blue
|
||||||
|
4: "#5f819d",
|
||||||
|
12: "#81a2be",
|
||||||
|
# magenta
|
||||||
|
5: "#d13516",
|
||||||
|
13: "#c25431",
|
||||||
|
# cyan
|
||||||
|
6: "#5e8d87",
|
||||||
|
14: "#8abeb7",
|
||||||
|
# white
|
||||||
|
7: "#707880",
|
||||||
|
15: "#c5c8c6",
|
||||||
|
}
|
||||||
|
|
||||||
|
keys = [
|
||||||
|
Key([MOD], "f", lazy.window.toggle_floating()),
|
||||||
|
# Moving inside a screen
|
||||||
|
Key([MOD], "Tab", lazy.layout.next()),
|
||||||
|
Key([MOD], "j", lazy.layout.down()),
|
||||||
|
Key([MOD], "k", lazy.layout.up()),
|
||||||
|
Key([MOD, "shift"], "Tab", lazy.layout.rotate()),
|
||||||
|
# Key([MOD, "shift"], "Tab", lazy.spawncmd()), # circle inside layout
|
||||||
|
Key([MOD, "shift"], "k", lazy.layout.shuffle_up()),
|
||||||
|
Key([MOD, "shift"], "j", lazy.layout.shuffle_down()),
|
||||||
|
# Move between screens
|
||||||
|
Key([MOD], "l", lazy.to_screen(0)),
|
||||||
|
Key([MOD], "h", lazy.to_screen(1)),
|
||||||
|
# Key([MOD, "shift"], "l", move to screen 1),
|
||||||
|
# Key([MOD, "shift"], "h", move to screen 0),
|
||||||
|
# Toggle between different layouts as defined below
|
||||||
|
Key([MOD], "space", lazy.next_layout()),
|
||||||
|
# Toggle between split and unsplit sides of stack.
|
||||||
|
# Split = all windows displayed
|
||||||
|
# Unsplit = 1 window displayed, like Max layout, but still with
|
||||||
|
# multiple stack panes
|
||||||
|
# Key([MOD, "shift"], "Return", lazy.layout.toggle_split()),
|
||||||
|
# Swap panes of split stack
|
||||||
|
# Key([MOD, "shift"], "space", lazy.layout.rotate()),
|
||||||
|
# Screens
|
||||||
|
Key([MOD], "r", lazy.spawncmd()),
|
||||||
|
# Key([MOD], 'r', lazy.run_extension(extension.DmenuRun(
|
||||||
|
# dmenu_prompt=">",
|
||||||
|
# dmenu_font="Andika-8",
|
||||||
|
# background="#15181a",
|
||||||
|
# foreground="#00ff00",
|
||||||
|
# selected_background="#079822",
|
||||||
|
# selected_foreground="#fff",
|
||||||
|
# dmenu_height=24, # Only supported by some dmenu forks
|
||||||
|
# ))),
|
||||||
|
Key([MOD], "Return", lazy.spawn(TERM)),
|
||||||
|
Key([MOD], "q", lazy.window.kill()),
|
||||||
|
Key([MOD, "control"], "r", lazy.restart()),
|
||||||
|
Key([MOD, "control"], "q", lazy.shutdown()),
|
||||||
|
Key([MOD, "control"], "equal", lazy.spawn("systemctl suspend")),
|
||||||
|
# Change the volume if our keyboard has keys
|
||||||
|
Key([], "XF86AudioRaiseVolume", lazy.spawn("pamixer -i 2")),
|
||||||
|
Key([], "XF86AudioLowerVolume", lazy.spawn("pamixer -d 2")),
|
||||||
|
Key([], "XF86AudioMute", lazy.spawn("pamixer -t")),
|
||||||
|
]
|
||||||
|
|
||||||
|
groups = [
|
||||||
|
Group("t:", spawn="firefox", layout="Tall", persist=True),
|
||||||
|
Group("y:", spawn="thunderbird", layout="verticaltile", persist=True),
|
||||||
|
Group("u:", spawn=TERM+" -e sh -c tmuxp load enseignement", layout="TallRight", persist=True),
|
||||||
|
Group("i:", layout="Wide", persist=True),
|
||||||
|
Group("o:", layout="TallRight", persist=True),
|
||||||
|
Group("p:", layout="Wide", persist=True),
|
||||||
|
]
|
||||||
|
|
||||||
|
groups_keys = ["t", "y", "u", "i", "o", "p"]
|
||||||
|
|
||||||
|
for i, g in enumerate(groups):
|
||||||
|
k = groups_keys[i]
|
||||||
|
keys.extend(
|
||||||
|
[
|
||||||
|
# mod1 + letter of group = switch to group
|
||||||
|
Key([MOD], k, lazy.group[g.name].toscreen()),
|
||||||
|
# mod1 + shift + letter of group = switch to & move focused window to group
|
||||||
|
Key(
|
||||||
|
[MOD, "shift"], k, lazy.window.togroup(g.name)
|
||||||
|
), # , lazy.group[g.name].toscreen()),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
groups.append(
|
||||||
|
ScratchPad(
|
||||||
|
"scratchpad",
|
||||||
|
[
|
||||||
|
DropDown(
|
||||||
|
"music", TERM+" -e sh -c mocp", x=0.25, y=0.25, height=0.5, width=0.5, opacity=0.8
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
keys.extend(
|
||||||
|
[
|
||||||
|
Key([MOD], "m", lazy.group["scratchpad"].dropdown_toggle("music")),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
borders = {
|
||||||
|
"border_focus": colors[13],
|
||||||
|
"border_normal": colors["BG"],
|
||||||
|
}
|
||||||
|
|
||||||
|
layouts = [
|
||||||
|
layout.Max(),
|
||||||
|
layout.VerticalTile(**borders),
|
||||||
|
layout.MonadTall(
|
||||||
|
name="Tall",
|
||||||
|
align=0,
|
||||||
|
ratio=0.5,
|
||||||
|
**borders,
|
||||||
|
),
|
||||||
|
layout.MonadTall(
|
||||||
|
name="TallRight",
|
||||||
|
align=0,
|
||||||
|
ratio=0.7,
|
||||||
|
**borders,
|
||||||
|
),
|
||||||
|
layout.MonadWide(
|
||||||
|
name="Wide",
|
||||||
|
ratio=0.8,
|
||||||
|
**borders,
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
widget_defaults = dict(
|
||||||
|
font="DroidSans",
|
||||||
|
fontsize=12,
|
||||||
|
padding=3,
|
||||||
|
)
|
||||||
|
extension_defaults = widget_defaults.copy()
|
||||||
|
|
||||||
|
screens = [
|
||||||
|
Screen(),
|
||||||
|
Screen(
|
||||||
|
top=bar.Bar(
|
||||||
|
[
|
||||||
|
widget.GroupBox(
|
||||||
|
active=colors["FG"],
|
||||||
|
foreground=colors[8],
|
||||||
|
highlight_color=[colors[1], colors[13]],
|
||||||
|
highlight_method="border",
|
||||||
|
this_current_screen_border=colors[13],
|
||||||
|
this_screen_border=colors[8],
|
||||||
|
other_current_screen_border=colors[13],
|
||||||
|
other_screen_border=colors[8],
|
||||||
|
),
|
||||||
|
widget.Prompt(
|
||||||
|
background=colors[13],
|
||||||
|
),
|
||||||
|
# widget.WindowName(),
|
||||||
|
widget.Spacer(bar.STRETCH),
|
||||||
|
widget.Clock(
|
||||||
|
format="%a %d %B %Y %H:%M",
|
||||||
|
background=colors[13],
|
||||||
|
foreground=colors[15],
|
||||||
|
),
|
||||||
|
widget.Systray(),
|
||||||
|
# widget.CurrentLayoutIcon(scale=0.5),
|
||||||
|
],
|
||||||
|
size=24,
|
||||||
|
background=colors["BG"],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
# Drag floating layouts.
|
||||||
|
mouse = [
|
||||||
|
Drag(
|
||||||
|
[MOD],
|
||||||
|
"Button1",
|
||||||
|
lazy.window.set_position_floating(),
|
||||||
|
start=lazy.window.get_position(),
|
||||||
|
),
|
||||||
|
Drag(
|
||||||
|
[MOD], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()
|
||||||
|
),
|
||||||
|
Click([MOD], "Button2", lazy.window.bring_to_front()),
|
||||||
|
]
|
||||||
|
|
||||||
|
dgroups_key_binder = None
|
||||||
|
dgroups_app_rules = [] # type: List
|
||||||
|
main = None
|
||||||
|
follow_mouse_focus = True
|
||||||
|
bring_front_click = False
|
||||||
|
cursor_warp = False
|
||||||
|
auto_fullscreen = True
|
||||||
|
focus_on_window_activation = "smart"
|
||||||
|
|
||||||
|
@hook.subscribe.client_new
|
||||||
|
def floating_dialogs(window):
|
||||||
|
dialog = window.window.get_wm_type() == 'dialog'
|
||||||
|
transient = window.window.get_wm_transient_for()
|
||||||
|
if dialog or transient:
|
||||||
|
window.floating = True
|
||||||
|
|
||||||
|
@hook.subscribe.startup_once
|
||||||
|
def autostart():
|
||||||
|
home = expanduser("~")
|
||||||
|
call([home + "/.config/qtile/autostart.sh"])
|
||||||
|
|
||||||
|
|
||||||
|
@hook.subscribe.screen_change
|
||||||
|
def restart_on_randr(qtile):
|
||||||
|
qtile.cmd_restart()
|
||||||
2
qtile/.config/qtile/dualscreen.sh
Executable file
2
qtile/.config/qtile/dualscreen.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
xrandr --output VGA-1 --off --output HDMI-1 --mode 1920x1080 --pos 1080x420 --rotate normal --output DP-1 --off --output HDMI-2 --mode 1920x1080 --pos 0x0 --rotate left --output DP-2 --off
|
||||||
25
sway/.config/kanshi/config
Normal file
25
sway/.config/kanshi/config
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
profile maison2 {
|
||||||
|
output eDP-1 disable
|
||||||
|
output "Dell Inc. DELL E2216H 2XT766B1AVTI" position 0,0 transform 90 mode 1920x1080
|
||||||
|
output "Samsung Electric Company LS27A600U HNMR502540" position 1080,240 mode 2560x1440
|
||||||
|
}
|
||||||
|
profile maison {
|
||||||
|
output eDP-1 disable
|
||||||
|
output "Philips Consumer Electronics Company PHL 223V5 ZV01622003292" position 0,0 transform 90 mode 1920x1080
|
||||||
|
output "Samsung Electric Company LS27A600U HNMR502540" position 1080,240 mode 2560x1440
|
||||||
|
}
|
||||||
|
|
||||||
|
profile atelier {
|
||||||
|
output eDP-1 enable scale 1 position 0,1080
|
||||||
|
output "ROW AAA Unknown" mode 1280x800
|
||||||
|
}
|
||||||
|
|
||||||
|
profile bdp {
|
||||||
|
output eDP-1 enable scale 1 position 320,1440
|
||||||
|
output "Dell Inc. DELL U3417W 660X87290G9L" position 0,0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
profile undocked {
|
||||||
|
output eDP-1 enable scale 1
|
||||||
|
}
|
||||||
@@ -122,6 +122,3 @@ action_menu="Alt+a"
|
|||||||
type_menu="Alt+t"
|
type_menu="Alt+t"
|
||||||
help="Alt+h"
|
help="Alt+h"
|
||||||
switch="Alt+x"
|
switch="Alt+x"
|
||||||
|
|
||||||
clipboard_backend=wl-clipboard
|
|
||||||
backend=wtype
|
|
||||||
@@ -15,4 +15,4 @@ configuration {
|
|||||||
sidebar-mode: false;
|
sidebar-mode: false;
|
||||||
auto-select: false;
|
auto-select: false;
|
||||||
}
|
}
|
||||||
@theme "/home/lafrite/.local/share/rofi/rofi-themes-collection/themes/spotlight-dark.rasi"
|
@theme "~/.local/share/rofi/themes/nord/nord.rasi"
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user