diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2025-06-17 04:39:19 +0200 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2025-06-17 04:40:52 +0200 |
commit | a3bb1315f922dc106fc027ba7ed8f935e6864750 (patch) | |
tree | ec589b184ceb0efc0e2e554829caac3755484fac /home-config | |
parent | 3e08a7547760d9ade0231bb4d5ed27fa41a7f3a1 (diff) |
added waybar entry for second battery
Diffstat (limited to 'home-config')
-rw-r--r-- | home-config/waybar/config | 15 | ||||
-rw-r--r-- | home-config/waybar/style.css | 6 |
2 files changed, 17 insertions, 4 deletions
diff --git a/home-config/waybar/config b/home-config/waybar/config index 375835e..abe0762 100644 --- a/home-config/waybar/config +++ b/home-config/waybar/config | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | "modules-left": ["hyprland/workspaces", "hyprland/submap"], | 6 | "modules-left": ["hyprland/workspaces", "hyprland/submap"], |
7 | "modules-center": ["hyprland/window"], | 7 | "modules-center": ["hyprland/window"], |
8 | "modules-right": ["tray", "custom/spotify", "privacy", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"], | 8 | "modules-right": ["tray", "custom/spotify", "privacy", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "battery#num2", "clock"], |
9 | "hyprland/submap": { | 9 | "hyprland/submap": { |
10 | "format": " {}" | 10 | "format": " {}" |
11 | }, | 11 | }, |
@@ -34,6 +34,19 @@ | |||
34 | "critical": 10 | 34 | "critical": 10 |
35 | }, | 35 | }, |
36 | "tooltip": false, | 36 | "tooltip": false, |
37 | "bat":"BAT0" | ||
38 | }, | ||
39 | "battery#num2": { | ||
40 | "format": "{capacity}% {icon}", | ||
41 | "format-alt": "{time} {icon}", | ||
42 | "format-icons": ["", "", "", "", ""], | ||
43 | "format-charging": "{capacity}% ", | ||
44 | "interval": 30, | ||
45 | "states": { | ||
46 | "warning": 25, | ||
47 | "critical": 10 | ||
48 | }, | ||
49 | "tooltip": false, | ||
37 | "bat":"BAT1" | 50 | "bat":"BAT1" |
38 | }, | 51 | }, |
39 | "bluetooth": { | 52 | "bluetooth": { |
diff --git a/home-config/waybar/style.css b/home-config/waybar/style.css index 548056f..682a14e 100644 --- a/home-config/waybar/style.css +++ b/home-config/waybar/style.css | |||
@@ -56,15 +56,15 @@ window#waybar.solo { | |||
56 | min-width: 140px; | 56 | min-width: 140px; |
57 | } | 57 | } |
58 | 58 | ||
59 | #battery.warning { | 59 | #battery.warning #battery.num2.warning { |
60 | color: rgba(255, 210, 4, 1); | 60 | color: rgba(255, 210, 4, 1); |
61 | } | 61 | } |
62 | 62 | ||
63 | #battery.critical { | 63 | #battery.critical #battery.bat2.critical { |
64 | color: rgba(238, 46, 36, 1); | 64 | color: rgba(238, 46, 36, 1); |
65 | } | 65 | } |
66 | 66 | ||
67 | #battery.charging { | 67 | #battery.charging #battery.bat2.charging { |
68 | color: rgba(217, 216, 216, 1); | 68 | color: rgba(217, 216, 216, 1); |
69 | } | 69 | } |
70 | 70 | ||