diff --git a/mango/.config/mango/autostart.conf b/mango/.config/mango/autostart.conf index 26708f96..2e55274a 100644 --- a/mango/.config/mango/autostart.conf +++ b/mango/.config/mango/autostart.conf @@ -22,6 +22,7 @@ exec-once=swaybg -i ~/.wallpapers/662412-vanilla-arch-wallpaper-linuxart.png exec-once=kitty --class kitty-1 --directory $HOME exec-once=perplexity exec-once=kitty --class kitty-2 --directory $HOME +exec-once=kitty --class kitty-3 --directory $HOME -- sh -c "ssh srv-admin-ext" exec-once=chromium exec-once=thunderbird exec-once=spotify-launcher diff --git a/mango/.config/mango/bind_apps.conf b/mango/.config/mango/bind_apps.conf index e282d515..d13adcd2 100644 --- a/mango/.config/mango/bind_apps.conf +++ b/mango/.config/mango/bind_apps.conf @@ -8,9 +8,8 @@ binds=SUPER,Return,spawn,kitty binds=SUPER+Shift,b,spawn,blueman-manager binds=SUPER,b,spawn,chromium -binds=SUPER,g,spawn,google-chrome-stable binds=SUPER+Shift,f,spawn,firefox -binds=SUPER,p,spawn,perplexity +binds=SUPER+Shift,XF86Assistant,spawn,perplexity binds=SUPER,m,spawn,spotify-launcher binds=SUPER+Shift,b,spawn,blueman-manager binds=SUPER+Ctrl,l,spawn,swaylock @@ -24,4 +23,3 @@ binds=alt,p,toggle_named_scratchpad,Proton Pass,none,proton-pass binds=SUPER,v,spawn,~/.config/mango/scripts/copypast binds=NONE,Print,spawn,~/.config/mango/scripts/screenshot-clip.sh - diff --git a/mango/.config/mango/bind_sys.conf b/mango/.config/mango/bind_sys.conf index 434d4151..8a71c90c 100644 --- a/mango/.config/mango/bind_sys.conf +++ b/mango/.config/mango/bind_sys.conf @@ -11,6 +11,7 @@ # Layout Bindings # scrolle5 layout binds=ALT,e,set_proportion,0.5 +binds=ALT+SHIFT,e,set_proportion,1 binds=ALT,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 29f62ed4..be2870b4 100644 --- a/mango/.config/mango/rules.conf +++ b/mango/.config/mango/rules.conf @@ -7,11 +7,14 @@ # 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,appid:kitty-2 +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 2 : Ssh serveur +windowrule=tags:2,scroller_proportion:1,appid:kitty-3 + +# Tag 3 : web +windowrule=tags:3,scroller_proportion:0.8,appid:chromium +windowrule=tags:3,appid:firefox # Tag 8 : mail windowrule=tags:8,scroller_proportion:0.5,appid:proton-bridge diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 9ea146a3..61719e8f 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -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": "8e921c2b68571e978db5d4d3fef9c9a7f8755473" }, + "mason.nvim": { "branch": "main", "commit": "cbf8d285e1462dd24acf3507817be2bbcb035919" }, "mini.icons": { "branch": "main", "commit": "9c7b1b90b15bdd69c52f6e31889dbc9987c30ec4" }, "mini.map": { "branch": "stable", "commit": "234eaf5cbcaee320d87e96465fbb534aa05b301e" }, "mini.starter": { "branch": "main", "commit": "35b018a035794e341ac01cb2091bbd71b3f823d0" }, @@ -22,7 +22,7 @@ "nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, "nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" }, - "nvim-lspconfig": { "branch": "master", "commit": "3de240997fc3208eb29df5e5c17ba4665961bd84" }, + "nvim-lspconfig": { "branch": "master", "commit": "246572944c2a1e2a646c2e7609ff619b0fe74c18" }, "nvim-tcss": { "branch": "main", "commit": "bf9001416158f32fe7e92c42de94de3595aa13e5" }, "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" }, diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc index 6c073d35..bf9f8fe2 100644 --- a/waybar/.config/waybar/config.jsonc +++ b/waybar/.config/waybar/config.jsonc @@ -10,6 +10,7 @@ "backlight", "custom/updates", "systemd-failed-units", + "custom/tlp", "group/hardware", "clock", "custom/power" @@ -27,6 +28,12 @@ "disk" ] }, + "custom/tlp": { + "format": "{}", + "exec": "~/.config/waybar/scripts/tlp-profile.sh", + "interval": 20, + "return-type": "json", + }, "custom/power": { "format": "⏻", "tooltip": false, @@ -38,7 +45,7 @@ "format-icons": ["", ""], "reverse-scrolling": true, "on-scroll-up": "brightnessctl set +2%", - "on-scroll-down": "brightnessctl set 2%-", + "on-scroll-down": "brightnessctl set 2%-" }, "systemd-failed-units": { "hide-on-ok": false, // Do not hide if there is zero failed units. diff --git a/waybar/.config/waybar/scripts/tlp-profile.sh b/waybar/.config/waybar/scripts/tlp-profile.sh new file mode 100755 index 00000000..a757fa9a --- /dev/null +++ b/waybar/.config/waybar/scripts/tlp-profile.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +# Récupère le profil TLP courant (AC ou BAT) +profile=$(tlp-stat -s 2>/dev/null | awk '/Power source/ {print $4}') + +# Si TLP n'est pas dispo +if [ -z "$profile" ]; then + echo '{"text": "TLP?", "tooltip": "TLP not available", "class": "tlp-unknown"}' + exit 0 +fi + +case "$profile" in + AC) + text="AC" + icon="󱐋" # icône optionnelle, change selon ta police + class="tlp-ac" + tooltip="TLP profile: AC (performance)" + ;; + battery|BAT) + text="BAT" + icon="󰁹" + class="tlp-bat" + tooltip="TLP profile: Battery (powersave)" + ;; + *) + text="$profile" + icon="󰂄" + class="tlp-unknown" + tooltip="TLP profile: $profile" + ;; +esac + +printf '{"text": "%s %s", "tooltip": "%s", "class": "%s"}\n' "$icon" "$text" "$tooltip" "$class" diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index 1700259b..01b66dec 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -27,7 +27,8 @@ window#waybar { #battery, #backlight, #custom-updates, -#custom-power { +#custom-power, +#custom-tlp { background: alpha(@base, 0.82); color: @text; margin: 4px 4px 4px 0; @@ -81,6 +82,11 @@ window#waybar { border-color: alpha(@blue, 0.35); } +#custom-tlp { + color: @pink; + border-color: alpha(@pink, 0.35); +} + #network { color: @sky; border-color: alpha(@sky, 0.35);