feat: add bluetooth to waybar and fix battery max loading

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-27 12:32:59 +01:00
parent 0801cb17aa
commit 539cb58493
5 changed files with 130 additions and 2 deletions

View file

@ -11,7 +11,7 @@ let
'';
charge-limit-menu = pkgs.writeShellScriptBin "charge-limit-menu" ''
choice=$(printf "80%%\n100%%" | ${pkgs.wofi}/bin/wofi --dmenu --prompt "Charge limit")
choice=$(printf "80%%\n100%%" | ${pkgs.fzf}/bin/fzf --prompt="Charge limit > " --reverse --no-info)
case "$choice" in
"80%") /run/wrappers/bin/sudo ${charge-limit-apply}/bin/charge-limit-apply 80 ;;
"100%") /run/wrappers/bin/sudo ${charge-limit-apply}/bin/charge-limit-apply 100 ;;