diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-04 10:38:55 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-04 10:47:44 +0530 |
commit | 364ded5b5ab55becf9e6904bebe2b67f9cfa343a (patch) | |
tree | 45100231b01a293aa4c56a16b3447a71cfd0af83 /home/wayland/modules/sway | |
parent | 45c9ec49e05daf1f0f4d8ba5ac6dc28b646622d1 (diff) |
home/wayland/sway/i3status: init battery and wireless module
Diffstat (limited to 'home/wayland/modules/sway')
-rw-r--r-- | home/wayland/modules/sway/i3status.nix | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/home/wayland/modules/sway/i3status.nix b/home/wayland/modules/sway/i3status.nix index 57b62a4..12c277b 100644 --- a/home/wayland/modules/sway/i3status.nix +++ b/home/wayland/modules/sway/i3status.nix @@ -7,29 +7,56 @@ output_format = "i3bar"; separator = ""; interval = 5; - colors = false; }; modules = { "tztime local" = { - position = 30; + position = 50; settings.format = " %a,%e %b %H:%M"; }; + + "battery all" = { + position = 40; + settings = { + status_chr = ""; + status_bat = ""; + status_unk = ""; + status_full = ""; + last_full_capacity = true; + low_threshold = 20; + threshold_type = "percentage"; + format_percentage = "%.00f%s"; + path = "/sys/class/power_supply/BAT%d/uevent"; + format_down = ""; + format = "%status %percentage %remaining %consumption"; + }; + }; + "volume master" = { - position = 20; + position = 30; settings = { format = " %volume"; format_muted = " %volume"; }; }; + "memory" = { - position = 10; + position = 20; settings.format = " %available"; }; + "disk /" = { - position = 00; + position = 10; settings.format = " %avail"; }; + + "wireless _first_" = { + position = 00; + settings = { + format_up = " %quality"; + format_down = ""; + }; + }; }; }; } |