waybar: add click actions to turn bluetooth on/off

Adjust waybar battery module thresholds
This commit is contained in:
Evie Litherland-Smith 2024-02-17 09:52:29 +00:00
parent 75eb51310d
commit feea95fa72

View file

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