From a21e3e713211088874f5bf87762f8dc018eaec67 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 1 Dec 2024 12:49:37 +0100 Subject: display battery in swaybar --- user/i3status-rust/config.toml | 10 ++++++++++ user/sway/config | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 user/i3status-rust/config.toml (limited to 'user') 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 -- cgit v1.2.3