refactor to single bar definition block for different machines

This commit is contained in:
Cyryl Płotnicki 2021-04-10 19:02:13 +01:00
parent f8787d0aef
commit 720fc3f3d3
6 changed files with 2 additions and 61 deletions

View file

@ -19,7 +19,7 @@ interval = 600
[[block]] [[block]]
block = "cpu" block = "cpu"
interval = 5 interval = 5
format = "{utilization}% {frequency}GHz" format = "{utilization}% {frequency}"
[[block]] [[block]]
block = "memory" block = "memory"
@ -45,9 +45,6 @@ alert = 10.0
[[block]] [[block]]
block = "sound" block = "sound"
[[block]]
block = "backlight"
[[block]] [[block]]
block = "kdeconnect" block = "kdeconnect"
format = "{name}" format = "{name}"

View file

@ -1,51 +0,0 @@
theme = "solarized-dark"
[icons]
name = "awesome"
[icons.overrides]
memory_mem = " "
cogs = "  "
[[block]]
block = "time"
interval = 60
format = "%R %a %d.%m"
[[block]]
block = "cpu"
interval = 5
format = "{utilization}% {frequency}GHz"
[[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

@ -38,8 +38,6 @@
nixpkgs.overlays = config.nixpkgs.overlays; nixpkgs.overlays = config.nixpkgs.overlays;
nixpkgs.config = config.nixpkgs.config; nixpkgs.config = config.nixpkgs.config;
home.file.".config/i3/status.toml".source = ../../../.config/i3/status-double-bat.toml;
}; };
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
programs.steam.enable = true; programs.steam.enable = true;

View file

@ -28,8 +28,6 @@
nixpkgs.overlays = config.nixpkgs.overlays; nixpkgs.overlays = config.nixpkgs.overlays;
nixpkgs.config = config.nixpkgs.config; nixpkgs.config = config.nixpkgs.config;
home.file.".config/i3/status.toml".source = ../../../.config/i3/status-single-bat.toml;
}; };
} }

View file

@ -20,7 +20,6 @@ in
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 = [
./home-manager/default.nix ./home-manager/default.nix

View file

@ -32,7 +32,7 @@ in
position = "top"; position = "top";
colors.background = "#002b36"; colors.background = "#002b36";
fonts = [ "Fira Code Nerd Font 10" ]; fonts = [ "Fira Code Nerd Font 10" ];
statusCommand = "${pkgs.unstable.i3status-rust}/bin/i3status-rs ${config.xdg.configHome}/i3/status.toml"; statusCommand = "${pkgs.unstable.i3status-rust}/bin/i3status-rs $HOME/dev/dotfiles/.config/i3/i3-status.toml";
trayOutput = "primary"; trayOutput = "primary";
} }
]; ];