Skip to content

Commit

Permalink
i3: switch to i3status-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed Jun 12, 2024
1 parent 09e5143 commit d0d75a6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
3 changes: 2 additions & 1 deletion home/linux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
./gtk.nix
./home-manager.nix
./i3
./i3status
# ./i3status
./i3status-rust
./iamb
./kitty
./neofetch
Expand Down
15 changes: 13 additions & 2 deletions home/linux/i3/bar.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)

bar {
status_command i3status
separator_symbol " "
font pango:BlexMono Nerd Font 11
position bottom
status_command i3status-rs
colors {
separator #666666
background #222222
statusline #dddddd
focused_workspace #0088CC #0088CC #ffffff
active_workspace #333333 #333333 #ffffff
inactive_workspace #333333 #333333 #888888
urgent_workspace #2f343a #900000 #ffffff
}
}
34 changes: 34 additions & 0 deletions home/linux/i3status-rust/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
icons_format = "{icon}"
[icons]
icons = "awesome4"

[theme]
theme = "dracula"

[[block]]
block = "battery"
format = " $icon $percentage "

[[block]]
block = "disk_space"
path = "/"
info_type = "available"
alert_unit = "GB"
interval = 20
warning = 20.0
alert = 10.0
format = " $icon $available.eng(w:2) "
format_alt = " $icon $available / $total "

[[block]]
block = "memory"
format = " $icon $mem_used_percents.eng(w:1) "
interval = 30
warning_mem = 70
critical_mem = 90

[[block]]
block = "time"
interval = 5
format = " $icon $timestamp.datetime(f:'%a %Y-%m-%d %I:%M %p') "
# next_timezone = "Etc/UTC"
8 changes: 8 additions & 0 deletions home/linux/i3status-rust/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
xdg.configFile."i3status-rust/config.toml".source = ./config.toml;

home.packages = [
pkgs.i3status-rust
];
}

0 comments on commit d0d75a6

Please sign in to comment.