Skip to content

Commit

Permalink
nixos: add i3status-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
claha committed Sep 14, 2024
1 parent a53301d commit e81756e
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion nixos/home/claes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
let
bar = lib.mkMerge [
config.lib.stylix.sway.bar
{ position = "top"; }
{
position = "top";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${config.xdg.configHome}/i3status-rust/config-default.toml";
}
];
in
{
Expand All @@ -12,6 +15,7 @@ in
home.stateVersion = "24.05";

home.packages = with pkgs; [
alsa-utils
dua
duf
silver-searcher
Expand Down Expand Up @@ -209,6 +213,52 @@ in
};
};

programs.i3status-rust = {
enable = true;
bars.default = {
theme = "semi-native";
icons = "material-nf";
blocks = [
{
block = "cpu";
format = " $icon $utilization ";
}
{
block = "memory";
format = " $icon $mem_total_used_percents ";
}
{
block = "disk_space";
path = "/";
info_type = "available";
alert_unit = "GB";
format = " $icon $available ";
}
{
block = "battery";
format = " $icon $percentage ";
}
{
block = "sound";
driver = "alsa";
show_volume_when_muted = true;
format = " $icon $volume ";
click = [
{
button = "left";
cmd = "wezterm -e alsamixer";
}
];
}
{
block = "time";
interval = 5;
format = " $icon $timestamp.datetime(f:'%Y-%m-%d %R') ";
}
];
};
};

services.mako = {
enable = true;
defaultTimeout = 4500;
Expand Down

0 comments on commit e81756e

Please sign in to comment.