From feea95fa72913b99050c1eab2f5a7479e75921b5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 17 Feb 2024 09:52:29 +0000 Subject: [PATCH] waybar: add click actions to turn bluetooth on/off Adjust waybar battery module thresholds --- home/waybar/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/home/waybar/default.nix b/home/waybar/default.nix index 1309e89a..d1d93b84 100644 --- a/home/waybar/default.nix +++ b/home/waybar/default.nix @@ -139,6 +139,8 @@ format-on = "󰂯 "; format-connected = "󰂱 "; tooltip-format = "{status} | {device_alias}"; + on-click = "${pkgs.bluez}/bin/bluetoothctl power on"; + on-click-right = "${pkgs.bluez}/bin/bluetoothctl power off"; }; "clock#calendar" = { format = "{:󰃭 %Y-%m-%d}"; @@ -167,18 +169,18 @@ backlight = { format = "{icon} "; tooltip-format = "{percent}%"; - format-icons = ["" "" "" "" "" "" "" "" ""]; + format-icons = [" " " " " " " " " " " " " " " " " "]; }; battery = { states = { warning = 30; - critical = 15; + critical = 20; }; - format = "{icon} "; + format = "{icon}"; format-charging = "󰂄 "; format-plugged = "󰚥 "; tooltip-format = "{capacity}% {time}"; - format-icons = ["󱃍" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"]; + format-icons = ["󱃍 " "󰁺 " "󰁻 " "󰁼 " "󰁽 " "󰁾 " "󰁿 " "󰂀 " "󰂁 " "󰂂 " "󰁹 "]; }; "custom/notification" = let swaync = pkgs.swaynotificationcenter;