mango config update

This commit is contained in:
grayTerminal-sh 2026-05-19 10:40:36 +02:00
parent 5924ebea78
commit 0706188e65
8 changed files with 60 additions and 11 deletions

View file

@ -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=kitty --class kitty-1 --directory $HOME
exec-once=perplexity exec-once=perplexity
exec-once=kitty --class kitty-2 --directory $HOME 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=chromium
exec-once=thunderbird exec-once=thunderbird
exec-once=spotify-launcher exec-once=spotify-launcher

View file

@ -8,9 +8,8 @@
binds=SUPER,Return,spawn,kitty binds=SUPER,Return,spawn,kitty
binds=SUPER+Shift,b,spawn,blueman-manager binds=SUPER+Shift,b,spawn,blueman-manager
binds=SUPER,b,spawn,chromium binds=SUPER,b,spawn,chromium
binds=SUPER,g,spawn,google-chrome-stable
binds=SUPER+Shift,f,spawn,firefox 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,m,spawn,spotify-launcher
binds=SUPER+Shift,b,spawn,blueman-manager binds=SUPER+Shift,b,spawn,blueman-manager
binds=SUPER+Ctrl,l,spawn,swaylock 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=SUPER,v,spawn,~/.config/mango/scripts/copypast
binds=NONE,Print,spawn,~/.config/mango/scripts/screenshot-clip.sh binds=NONE,Print,spawn,~/.config/mango/scripts/screenshot-clip.sh

View file

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

View file

@ -7,11 +7,14 @@
# Tag 1 : shell / terminaux / Perplexity # Tag 1 : shell / terminaux / Perplexity
windowrule=tags:1,scroller_proportion:0.5,appid:kitty-1 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:perplexity
windowrule=tags:1,appid:kitty-2 windowrule=tags:1,scroller_proportion:0.5,appid:kitty-2
# Tag 2 : web # Tag 2 : Ssh serveur
windowrule=tags:2,scroller_proportion:0.8,appid:chromium windowrule=tags:2,scroller_proportion:1,appid:kitty-3
windowrule=tags:2,appid:firefox
# Tag 3 : web
windowrule=tags:3,scroller_proportion:0.8,appid:chromium
windowrule=tags:3,appid:firefox
# Tag 8 : mail # Tag 8 : mail
windowrule=tags:8,scroller_proportion:0.5,appid:proton-bridge windowrule=tags:8,scroller_proportion:0.5,appid:proton-bridge

View file

@ -11,7 +11,7 @@
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" }, "lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "7b01e2974a47d489bb92f47a41e4c0088ea8f86e" }, "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.icons": { "branch": "main", "commit": "9c7b1b90b15bdd69c52f6e31889dbc9987c30ec4" },
"mini.map": { "branch": "stable", "commit": "234eaf5cbcaee320d87e96465fbb534aa05b301e" }, "mini.map": { "branch": "stable", "commit": "234eaf5cbcaee320d87e96465fbb534aa05b301e" },
"mini.starter": { "branch": "main", "commit": "35b018a035794e341ac01cb2091bbd71b3f823d0" }, "mini.starter": { "branch": "main", "commit": "35b018a035794e341ac01cb2091bbd71b3f823d0" },
@ -22,7 +22,7 @@
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" }, "nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" }, "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-tcss": { "branch": "main", "commit": "bf9001416158f32fe7e92c42de94de3595aa13e5" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" }, "nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },

View file

@ -10,6 +10,7 @@
"backlight", "backlight",
"custom/updates", "custom/updates",
"systemd-failed-units", "systemd-failed-units",
"custom/tlp",
"group/hardware", "group/hardware",
"clock", "clock",
"custom/power" "custom/power"
@ -27,6 +28,12 @@
"disk" "disk"
] ]
}, },
"custom/tlp": {
"format": "{}",
"exec": "~/.config/waybar/scripts/tlp-profile.sh",
"interval": 20,
"return-type": "json",
},
"custom/power": { "custom/power": {
"format": "⏻", "format": "⏻",
"tooltip": false, "tooltip": false,
@ -38,7 +45,7 @@
"format-icons": ["", ""], "format-icons": ["", ""],
"reverse-scrolling": true, "reverse-scrolling": true,
"on-scroll-up": "brightnessctl set +2%", "on-scroll-up": "brightnessctl set +2%",
"on-scroll-down": "brightnessctl set 2%-", "on-scroll-down": "brightnessctl set 2%-"
}, },
"systemd-failed-units": { "systemd-failed-units": {
"hide-on-ok": false, // Do not hide if there is zero failed units. "hide-on-ok": false, // Do not hide if there is zero failed units.

View file

@ -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"

View file

@ -27,7 +27,8 @@ window#waybar {
#battery, #battery,
#backlight, #backlight,
#custom-updates, #custom-updates,
#custom-power { #custom-power,
#custom-tlp {
background: alpha(@base, 0.82); background: alpha(@base, 0.82);
color: @text; color: @text;
margin: 4px 4px 4px 0; margin: 4px 4px 4px 0;
@ -81,6 +82,11 @@ window#waybar {
border-color: alpha(@blue, 0.35); border-color: alpha(@blue, 0.35);
} }
#custom-tlp {
color: @pink;
border-color: alpha(@pink, 0.35);
}
#network { #network {
color: @sky; color: @sky;
border-color: alpha(@sky, 0.35); border-color: alpha(@sky, 0.35);