diff --git a/clangd/.config/clangd/config.yaml b/clangd/.config/clangd/config.yaml new file mode 100644 index 00000000..cfbd4470 --- /dev/null +++ b/clangd/.config/clangd/config.yaml @@ -0,0 +1,3 @@ +CompileFlags: + Add: + - "-std=c17" diff --git a/gtk-3.0/.config/gtk-3.0/bookmarks b/gtk-3.0/.config/gtk-3.0/bookmarks index adda6f14..3b11a0eb 100644 --- a/gtk-3.0/.config/gtk-3.0/bookmarks +++ b/gtk-3.0/.config/gtk-3.0/bookmarks @@ -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/ diff --git a/hyprwhspr/.config/hyprwhspr/.recovery_notification_lock/lock b/hyprwhspr/.config/hyprwhspr/.recovery_notification_lock/lock index b265ce97..cdb32fd6 100644 --- a/hyprwhspr/.config/hyprwhspr/.recovery_notification_lock/lock +++ b/hyprwhspr/.config/hyprwhspr/.recovery_notification_lock/lock @@ -1 +1 @@ -1779375494:success:suspend_resume +1779574356:success:suspend_resume diff --git a/hyprwhspr/.config/hyprwhspr/mic_osd.pid b/hyprwhspr/.config/hyprwhspr/mic_osd.pid index c674a154..c72dd61e 100644 --- a/hyprwhspr/.config/hyprwhspr/mic_osd.pid +++ b/hyprwhspr/.config/hyprwhspr/mic_osd.pid @@ -1 +1 @@ -4360 \ No newline at end of file +2009713 \ No newline at end of file diff --git a/mango/.config/mango/autostart.conf b/mango/.config/mango/autostart.conf index 1c6e0cf6..d6c305be 100644 --- a/mango/.config/mango/autostart.conf +++ b/mango/.config/mango/autostart.conf @@ -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' diff --git a/mango/.config/mango/bind_sys.conf b/mango/.config/mango/bind_sys.conf index 6ecd21a2..3522aaf7 100644 --- a/mango/.config/mango/bind_sys.conf +++ b/mango/.config/mango/bind_sys.conf @@ -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 diff --git a/mango/.config/mango/rules.conf b/mango/.config/mango/rules.conf index 84c2b179..aed67803 100644 --- a/mango/.config/mango/rules.conf +++ b/mango/.config/mango/rules.conf @@ -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 diff --git a/mango/.config/mango/scripts/copypast b/mango/.config/mango/scripts/copypast index 202b106b..0a3d44da 100755 --- a/mango/.config/mango/scripts/copypast +++ b/mango/.config/mango/scripts/copypast @@ -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 <' $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 l’ID (premier champ) de la ligne choisie - clip_id="$(printf '%s\n' "$choice" | awk '{print $1}')" -fi -# récupérer l’entré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 diff --git a/mango/.config/mango/scripts/screenshot-clip.sh b/mango/.config/mango/scripts/screenshot-clip.sh index ff8226f2..507a0d60 100755 --- a/mango/.config/mango/scripts/screenshot-clip.sh +++ b/mango/.config/mango/scripts/screenshot-clip.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -grim -g "$(slurp)" - | wl-copy -t image/png +grim -g "$(slurp)" - | wl-copy diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 6879d821..d2ad53e4 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -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" }, diff --git a/nvim/.config/nvim/lua/config/lsp-setup.lua b/nvim/.config/nvim/lua/config/lsp-setup.lua index a6c571c5..b851a34d 100644 --- a/nvim/.config/nvim/lua/config/lsp-setup.lua +++ b/nvim/.config/nvim/lua/config/lsp-setup.lua @@ -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" }) diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index ff51aa0f..c6be51b8 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,4 +1,4 @@ - ################################## +################################## # # # Generals settings # # # @@ -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 diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index 545baa26..e5c6db35 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -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 {