refined i3status-rust

This commit is contained in:
Gabe Venberg 2024-04-10 12:26:08 -05:00
parent 97cce59541
commit 29f13d5c42
3 changed files with 10 additions and 9 deletions

View file

@ -205,8 +205,9 @@
bars = [ bars = [
{ {
fonts = { fonts = {
names = ["Fira Code"]; names = ["FiraCode Nerd Font"];
size = 8.0; style = "Mono";
size = 10.0;
}; };
position = "bottom"; position = "bottom";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml"; statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml";

View file

@ -17,12 +17,12 @@
blocks = [ blocks = [
{ {
block = "music"; block = "music";
format = " $icon {$combo.str(max_w:25,rot_interval:0.5) $play $next $prev $player.str(max_w:5,rot_interval:0.5) [$cur/$avail] |} "; format = "{$icon $combo.str(max_w:25,rot_interval:0.5) $play $prev $next $player.str(max_w:5,rot_interval:0.5) [$cur/$avail] |}";
} }
{ {
block = "memory"; block = "memory";
format = " $icon $mem_used_percents "; format = "$icon $mem_used_percents";
format_alt = " $icon $swap_used_percents (swap)"; format_alt = "$icon $swap_used_percents (swap)";
} }
{ {
block = "cpu"; block = "cpu";
@ -30,7 +30,7 @@
} }
{ {
block = "load"; block = "load";
format = " $icon $1m "; format = "$icon $1m";
interval = 1; interval = 1;
} }
( (
@ -49,7 +49,7 @@
{ {
block = "net"; block = "net";
format = "$icon {$signal_strength $ssid.str(max_w:5,rot_interval:0.5)|}"; format = "$icon {$signal_strength $ssid.str(max_w:5,rot_interval:0.5)|}";
format_alt = " $icon {$signal_strength $ssid.str(max_w:5,rot_interval:0.5) $frequency|} $ip | $ipv6 via $device"; format_alt = "$icon {$signal_strength $ssid.str(max_w:5,rot_interval:0.5) $frequency|} ipv4-$ip ipv6-$ipv6 via $device";
} }
{ {
block = "sound"; block = "sound";
@ -64,7 +64,7 @@
} }
{ {
block = "time"; block = "time";
format = " $timestamp.datetime(f:'%F %R') "; format = "$timestamp.datetime(f:'%F %R')";
interval = 60; interval = 60;
} }
]; ];

View file

@ -8,7 +8,7 @@
enable = true; enable = true;
font = { font = {
package = pkgs.fira-code-nerdfont; package = pkgs.fira-code-nerdfont;
name = "Fira Code"; name = "FiraCode Nerd Font";
}; };
theme = "Gruvbox Dark"; theme = "Gruvbox Dark";
settings={ settings={