split single and double bat status bar config

This commit is contained in:
Cyryl Płotnicki 2020-04-18 14:35:21 +01:00
parent df9d70b09b
commit 0bf816ab79
5 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,46 @@
theme = "solarized-dark"
[icons]
name = "awesome"
[icons.overrides]
memory_mem = "  "
cogs = "  "
[[block]]
block = "time"
interval = 60
format = "%R %a %d.%m"
[[block]]
block = "memory"
display_type = "memory"
format_mem = "{Mup}%"
format_swap = "{SUp}%"
[[block]]
block = "load"
interval = 5
format = "{1m} {5m}"
[[block]]
block = "disk_space"
path = "/"
alias = ""
info_type = "available"
unit = "GiB"
interval = 20
warning = 20.0
alert = 10.0
[[block]]
block = "battery"
device = "BAT0"
interval = 10
format = "{percentage}%"
[[block]]
block = "temperature"
collapsed = true
interval = 10
format = "{max}° max, {average}° avg"

View file

@ -21,6 +21,7 @@ in
news.display = "show"; news.display = "show";
targets.genericLinux.enable = true; targets.genericLinux.enable = true;
home.file.".gitconfig".source = ~/dev/dotfiles/.gitconfig.linux.form3; home.file.".gitconfig".source = ~/dev/dotfiles/.gitconfig.linux.form3;
home.file.".config/i3/status.toml".source = ~/dev/dotfiles/.config/i3/status-single-bat.toml;
imports = [ imports = [
./programs/tmux.nix ./programs/tmux.nix

View file

@ -24,6 +24,7 @@
services.redshift.enable = true; services.redshift.enable = true;
services.redshift.provider = "geoclue2"; services.redshift.provider = "geoclue2";
home.file.".config/i3/status.toml".source = ~/dev/dotfiles/.config/i3/status-double-bat.toml;
xsession = { xsession = {
enable = true; enable = true;
}; };

View file

@ -8,7 +8,6 @@ in
i3status-rust i3status-rust
]; ];
home.file.".config/i3/status.toml".source = ~/dev/dotfiles/.config/i3/status.toml;
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = true; enable = true;
package = pkgs.i3-gaps; package = pkgs.i3-gaps;