diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-01 12:49:37 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-11 08:37:52 +0100 |
commit | a21e3e713211088874f5bf87762f8dc018eaec67 (patch) | |
tree | 81c2b8e5df683143243b643f76683e6a6dc4b28f | |
parent | cff4690fef724fc85d8f45b830079f4eafa38fe6 (diff) |
display battery in swaybar
-rw-r--r-- | nixos/parts/graphical.nix | 1 | ||||
-rw-r--r-- | user/i3status-rust/config.toml | 10 | ||||
-rw-r--r-- | user/sway/config | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/nixos/parts/graphical.nix b/nixos/parts/graphical.nix index 93082a9..7941db6 100644 --- a/nixos/parts/graphical.nix +++ b/nixos/parts/graphical.nix @@ -8,5 +8,6 @@ }; environment.systemPackages = with pkgs; [ + i3status-rust ]; } diff --git a/user/i3status-rust/config.toml b/user/i3status-rust/config.toml new file mode 100644 index 0000000..775b23e --- /dev/null +++ b/user/i3status-rust/config.toml @@ -0,0 +1,10 @@ +[theme] +theme = "native" + +[[block]] +block = "battery" + +[[block]] +block = "time" +interval = 5 +format = " $timestamp.datetime(f:'%R %-d. %b') " diff --git a/user/sway/config b/user/sway/config index 3fafa93..b4158ce 100644 --- a/user/sway/config +++ b/user/sway/config @@ -204,8 +204,7 @@ bar { position top # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %X'; do sleep 1; done + status_command i3status-rs colors { statusline #ffffff |