config nvim + modif config mangowm

This commit is contained in:
grayTerminal-sh 2026-05-24 00:48:17 +02:00
parent f2b0849175
commit c5bef5dcd0
13 changed files with 102 additions and 60 deletions

View file

@ -0,0 +1,3 @@
CompileFlags:
Add:
- "-std=c17"

View file

@ -5,3 +5,4 @@ file:///home/fy59/Images
file:///home/fy59/Vid%C3%A9os
file:///home/fy59/T%C3%A9l%C3%A9chargements
file:///home/fy59/Pictures/Assets/
file:///home/fy59/Share/

View file

@ -1 +1 @@
1779375494:success:suspend_resume
1779574356:success:suspend_resume

View file

@ -1 +1 @@
4360
2009713

View file

@ -19,19 +19,22 @@
exec-once=swaybg -i ~/.wallpapers/662412-vanilla-arch-wallpaper-linuxart.png
# Lancement au démarrage
exec-once=kitty --class kitty-1 --directory $HOME
exec-once=perplexity
exec-once=kitty --class kitty-2 --directory $HOME
exec-once=kitty --class kitty-1 --directory $HOME sh -c "tmux"
# exec-once=perplexity
# exec-once=kitty --class kitty-2 --directory $HOME
exec-once=kitty --class kitty-mon --directory $HOME
exec-once=chromium
exec-once=gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default
exec-once=gtk-launch
exec-once=thunderbird
exec-once=spotify-launcher
exec-once=waybar
exec-once=proton-pass
# Presse-papier
exec=wl-paste --watch clipvault store
exec=wl-paste --type image/png --watch clipvault store
exec-once=wl-paste --type text --watch cliphist store
exec-once=wl-paste --type image --watch cliphist store
# Idle
exec-once=swayidle -w timeout 300 'swaylock -f -c 000000' timeout 301 'systemctl suspend' before-sleep 'swaylock -f -c 000000'

View file

@ -12,7 +12,7 @@
# scrolle5 layout
binds=ALT,e,set_proportion,0.5
binds=ALT+SHIFT,e,set_proportion,1
binds=ALT,x,switch_proportion_preset,
binds=SUPER,x,switch_proportion_preset,
# switch layou5
binds=SUPER,n,switch_layout

View file

@ -5,16 +5,19 @@
##############################
# Tag 1 : shell / terminaux / Perplexity
windowrule=tags:1,scroller_proportion:0.5,appid:kitty-1
windowrule=tags:1,scroller_proportion:0.5,appid:perplexity
windowrule=tags:1,scroller_proportion:0.5,appid:kitty-2
windowrule=tags:1,scroller_proportion:1,appid:kitty-1
# windowrule=tags:1,scroller_proportion:0.5,appid:perplexity
# windowrule=tags:1,scroller_proportion:0.5,appid:kitty-2
# Tag 2 : web
windowrule=tags:2,scroller_proportion:0.8,appid:chromium
windowrule=tags:2,appid:firefox
# Tag 6 : web
windowrule=tags:6,scroller_proportion:1,appid:kitty-mon
# Tag 7 : web
windowrule=tags:7,scroller_proportion:0.8,appid:kitty-mon
windowrule=tags:7,scroller_proportion:1,appid:chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default
# Tag 8 : mail
windowrule=tags:8,scroller_proportion:0.5,appid:proton-bridge

View file

@ -1,37 +1,41 @@
#!/usr/bin/env bash
thumb_dir="${XDG_CACHE_HOME:-$HOME/.cache}/clipvault/thumbs"
thumb_dir="${XDG_CACHE_HOME:-$HOME/.cache}/cliphist/thumbs"
mkdir -p "$thumb_dir"
clip_list="$(clipvault list)"
clip_list="$(cliphist list)"
# nettoyer les vignettes orphelines
# Nettoyer les vignettes orphelines
for thumb in "$thumb_dir"/*; do
[ -e "$thumb" ] || continue
clip_id="${thumb##*/}"
clip_id="${clip_id%.*}"
check=$(printf '%s\n' "$clip_list" | rg "^${clip_id}\s")
if [ -z "$check" ]; then
if ! printf '%s\n' "$clip_list" | rg -q "^${clip_id}[[:space:]]"; then
rm -f "$thumb"
fi
done
# programme gawk : détecter les entrées image, générer les thumbs, préfixer par img:
read -r -d '' prog <<EOF
match(\$0, /^([0-9]+)\s\[\[ binary data .*image\/(jpeg|jpg|png|bmp|webp)/, grp) {
match(\$0, /^([0-9]+)[[:space:]]+\\[\\[ binary data .* (png|jpeg|jpg|bmp|webp) [0-9]+x[0-9]+ \\]\\]/, grp) {
id = grp[1]
ext = grp[2]
if (ext == "jpeg") ext = "jpg"
image = id "." ext
cmd = "[ -f $thumb_dir/" image " ] || printf \"" id "\\n\" | clipvault get | magick - -resize '256x256>' $thumb_dir/" image
thumb = "$thumb_dir/" image
cmd = "[ -f '" thumb "' ] || printf '%s\\n' '" \$0 "' | cliphist decode | magick - -resize '256x256>' '" thumb "'"
system(cmd)
print "img:$thumb_dir/" image
print "img:" thumb
next
}
1
EOF
choice=$(
gawk <<< "$clip_list" "$prog" |
gawk "$prog" <<< "$clip_list" |
wofi -I --dmenu --cache-file=/dev/null \
-Dimage_size=100 -Dynamic_lines=true \
--xoffset=600 --yoffset=20 --width=45% --height=45% --gtk-dark
@ -43,10 +47,14 @@ if [ "${choice:0:4}" = "img:" ]; then
thumb_file="${choice:4}"
clip_id="${thumb_file##*/}"
clip_id="${clip_id%.*}"
else
# on prend lID (premier champ) de la ligne choisie
clip_id="$(printf '%s\n' "$choice" | awk '{print $1}')"
fi
# récupérer lentrée choisie et la remettre dans le clipboard
printf '%s\n' "$clip_id" | clipvault get | wl-copy
printf '%s\n' "$clip_list" |
rg "^${clip_id}[[:space:]]" |
head -n 1 |
cliphist decode |
wl-copy
else
printf '%s\n' "$choice" |
cliphist decode |
wl-copy
fi

View file

@ -1,2 +1,2 @@
#!/usr/bin/env bash
grim -g "$(slurp)" - | wl-copy -t image/png
grim -g "$(slurp)" - | wl-copy

View file

@ -1,7 +1,7 @@
{
"LuaSnip": { "branch": "master", "commit": "0abc8f390b278c3b4aabc4c004ac8a088b65cf24" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"catppuccin": { "branch": "main", "commit": "426dbebe06b5c69fd846ceb17b42e12f890aedf1" },
"catppuccin": { "branch": "main", "commit": "8edd468af4d63212b84d69b2ddb5ffc9023ef5eb" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
@ -11,7 +11,7 @@
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "7b01e2974a47d489bb92f47a41e4c0088ea8f86e" },
"mason.nvim": { "branch": "main", "commit": "cbf8d285e1462dd24acf3507817be2bbcb035919" },
"mason.nvim": { "branch": "main", "commit": "bb639d4bf385a4d89f478b83af4d770be05ab7eb" },
"mini.icons": { "branch": "main", "commit": "520995f1d75da0e4cc901ee95080b1ff2bc46b94" },
"mini.map": { "branch": "stable", "commit": "234eaf5cbcaee320d87e96465fbb534aa05b301e" },
"mini.starter": { "branch": "main", "commit": "a7d8b353cf120fee32bb5d88e7a9de5eaec746e7" },
@ -22,11 +22,11 @@
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
"nvim-colorizer.lua": { "branch": "master", "commit": "5cfe7fffbd01e17b3c1e14af85d5febdef88bd8c" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" },
"nvim-lspconfig": { "branch": "master", "commit": "246572944c2a1e2a646c2e7609ff619b0fe74c18" },
"nvim-lspconfig": { "branch": "master", "commit": "a4ed4e761c400849e8c9f8bda33e5083f890268c" },
"nvim-tcss": { "branch": "main", "commit": "bf9001416158f32fe7e92c42de94de3595aa13e5" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
"nvim-web-devicons": { "branch": "master", "commit": "7d8dad2c837fcdf2e65997e68657c1a21c568074" },
"nvim-web-devicons": { "branch": "master", "commit": "0d7d35fa946837b8738b17c18d1faa1ac351e7f9" },
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
"outline.nvim": { "branch": "main", "commit": "c293eb56db880a0539bf9d85b4a27816960b863e" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },

View file

@ -25,9 +25,19 @@ vim.api.nvim_create_autocmd("LspAttach", {
map("]d", function() vim.diagnostic.jump({ count = 1 }) end, "LSP: Next diagnostic")
-- Format on save
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- buffer = bufnr,
-- callback = function()
-- vim.lsp.buf.format({ async = false })
-- end,
-- })
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = bufnr,
callback = function()
local ft = vim.bo.filetype
if ft == "c" or ft == "cpp" then
return
end
vim.lsp.buf.format({ async = false })
end,
})
@ -35,11 +45,6 @@ vim.api.nvim_create_autocmd("LspAttach", {
})
-- Config des serveurs via la nouvelle API vim.lsp.config
vim.lsp.config("clangd", {
capabilities = capabilities,
cmd = { "clangd", "--background-index", "--clang-tidy" },
})
vim.lsp.config("pyright", {
capabilities = capabilities,
})
@ -57,6 +62,14 @@ vim.lsp.config("lua_ls", {
},
})
vim.lsp.config("clangd", {
cmd = { "clangd", "--background-index", "--clang-tidy" },
on_attach = function(client, bufnr)
client.server_capabilities.semanticTokensProvider = nil
end,
})
-- Activation des serveurs
vim.lsp.enable({ "clangd", "pyright", "bashls", "lua_ls" })

View file

@ -23,8 +23,17 @@ set -s escape-time 10
# #
##################################
# Catppuccin-mocha
set-option -g status-position top
# Barre simple sans plugin
set -g status-bg colour238
set -g status-fg colour255
set -g status-left-length 40
set -g status-right-length 80
# Gauche : [session] fenetre:pane
set -g status-left '#[bold] #S #[default]#I:#P '
# Droite : user@host | path | heure
set -g status-right '#(whoami)@#H | #{pane_current_path} | %H:%M '
##################################
# #
@ -57,6 +66,8 @@ set -g @catppuccin_flavor 'mocha'
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
set -g status-position top
set -g status-right '#[fg=#{@thm_crust},bg=#{@thm_lavender}] #(whoami)@#H | #{pane_current_path} | %H:%M | session: #S '
set -g status-right-length 120
set -g status-left '#[fg=#{@thm_teal},bg=#{@thm_lavender},bold] #S #[fg=#{@thm_crust},bg=#{@thm_lavender}] #I:#P #[default]'
set -g status-left '#[fg=#{@thm_teal},bg=#{@thm_lavender},bold] #S #[fg=#{@thm_crust},bg=#{@thm_lavender}] #I:#W #[default]'
set -g status-left-length 120

View file

@ -29,32 +29,32 @@ window#waybar {
#custom-updates,
#custom-power,
#custom-tlp {
background: alpha(@base, 0.82);
background: alpha(@base, 0.32);
color: @text;
margin: 4px 4px 4px 0;
padding: 4px 10px;
border: 1px solid alpha(@surface2, 0.9);
border-radius: 8px;
border-bottom: 2px solid alpha(@surface2, 0.9);
/*border-radius: 8px;*/
}
/* Workspaces */
#workspaces {
margin-left: 6px;
padding: 2px 6px;
background: alpha(@mantle, 0.88);
border: 1px solid alpha(@lavender, 0.35);
background: alpha(@mantle, 0.32);
border-bottom: 2px solid alpha(@lavender, 0.35);
}
#workspaces button {
padding: 2px 8px;
margin: 2px 3px;
border-radius: 6px;
border-radius: 4px;
color: @subtext0;
background: transparent;
}
#workspaces button:hover {
background: alpha(@surface0, 0.95);
background: alpha(@surface0, 0.65);
color: @text;
}
@ -72,7 +72,7 @@ window#waybar {
#mpris {
min-width: 140px;
color: @green;
background: alpha(@mantle, 0.9);
background: alpha(@mantle, 0.32);
border-color: alpha(@green, 0.35);
}
@ -120,17 +120,17 @@ window#waybar {
#systemd-failed-units {
color: @red;
border-color: alpha(@red, 0.4);
background: alpha(@mantle, 0.92);
background: alpha(@mantle, 0.32);
}
/* Hardware group */
#hardware {
background: alpha(@base, 0.82);
background: alpha(@base, 0.32);
color: @text;
margin: 4px 4px 4px 0;
padding: 4px 10px;
border: 1px solid alpha(@lavender, 0.9);
border-radius: 8px;
border-bottom: 2px solid alpha(@lavender, 0.9);
/*border-radius: 8px;*/
}
/* modules internes transparents, sans bordure */
@ -179,7 +179,7 @@ window#waybar {
#clock {
margin-right: 6px;
color: @rosewater;
background: alpha(@mantle, 0.92);
background: alpha(@mantle, 0.32);
border-color: alpha(@rosewater, 0.35);
font-weight: bold;
padding-left: 12px;
@ -202,14 +202,14 @@ tooltip label {
/* Base styles - same icon for all states, only colors change */
#custom-hyprwhspr {
font-size: 18px;
font-size: 16px;
font-weight: bold;
margin: 4px;
padding-left: 14px;
padding-right: 14px;
background: alpha(@mantle, 0.88);
border: 1px solid alpha(@lavender, 0.35);
border-radius: 8px;
background: alpha(@mantle, 0.32);
border-bottom: 2px solid alpha(@lavender, 0.35);
/*border-radius: 8px;*/
}
#custom-hyprwhspr.ready {