From 8dba231b04356da53c51c60b5f973aa42bc33bf5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 22 Jan 2024 14:34:40 +0000 Subject: [PATCH] waybar: move battery capacity to tooltip, add backlight back --- home/hyprland/waybar/default.nix | 11 ++++++----- home/hyprland/waybar/style.css | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/home/hyprland/waybar/default.nix b/home/hyprland/waybar/default.nix index 137f34b5..be5d1890 100644 --- a/home/hyprland/waybar/default.nix +++ b/home/hyprland/waybar/default.nix @@ -21,6 +21,7 @@ "custom/notification" "clock" "custom/separator" + "backlight" "battery" "tray" ]; @@ -126,7 +127,7 @@ }; }; backlight = { - format = "{icon}"; + format = "{icon} "; tooltip-format = "{percent}%"; format-icons = [ "" "" "" "" "" "" "" "" "" ]; }; @@ -135,10 +136,10 @@ warning = 30; critical = 15; }; - format = "{icon} {capacity}%"; - format-charging = "󰂄 {capacity}%"; - format-plugged = "󰚥"; - tooltip-format = "{time}"; + format = "{icon} "; + format-charging = "󰂄 "; + format-plugged = "󰚥 "; + tooltip-format = "{capacity}% {time}"; format-icons = [ "󱃍" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; }; "custom/notification" = { diff --git a/home/hyprland/waybar/style.css b/home/hyprland/waybar/style.css index 17ca8839..e93008a6 100644 --- a/home/hyprland/waybar/style.css +++ b/home/hyprland/waybar/style.css @@ -73,6 +73,7 @@ tooltip { #window, #mpris, #pulseaudio, +#backlight, #battery, #clock, #custom-notification, @@ -114,6 +115,7 @@ tooltip { #clock { color: @blue; } +#backlight, #battery { color: @lavender; }