Skip to content

Commit

Permalink
waybar: add battery module
Browse files Browse the repository at this point in the history
I'm not exactly sure how this is gonna play with my desktop right now,
because it obviously does not have a battery and I would like it to not
show if I can avoid it.

If it turns out it can't be trusted, I'll have to do something about it,
like differentiating by hostnames, or something. Hopefully this works
out well without many changes
  • Loading branch information
anachronic committed Jan 5, 2024
1 parent e52f31b commit db9038e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/link/.config/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@
// "modules-left": ["wlr/workspaces", "hyprland/window"],
// sway
"modules-left": ["sway/workspaces", "sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "custom/dunst", "clock"],
"modules-right": ["battery", "idle_inhibitor", "pulseaudio", "custom/dunst", "clock"],
"hyprland/window": {
"format": "{}"
},
"battery": {
"format": "{icon} {capacity}%",
"format-full": "󱟢 {capacity}%",
"format-charging": "{icon}󱐋 {capacity}%",
// "format-not charging": "󱟢 {capacity}%",
"full-at": 98,
"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
},
"clock": {
"format": "<span color='#cba6f7'> 󱛡 </span>{:%a %d %b %H:%M}"
},
Expand Down

0 comments on commit db9038e

Please sign in to comment.