diff options
-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 |