switch to i3-status-rust

This commit is contained in:
Cyryl Płotnicki 2020-04-18 13:02:19 +01:00
parent 0f69205af3
commit 08801db8bd
4 changed files with 49 additions and 3 deletions

36
.config/i3/status.toml Normal file
View file

@ -0,0 +1,36 @@
theme = "solarized-dark"
icons = "awesome"
[[block]]
block = "disk_space"
path = "/"
alias = "/"
info_type = "available"
unit = "GB"
interval = 20
warning = 20.0
alert = 10.0
[[block]]
block = "memory"
display_type = "memory"
format_mem = "{Mup}%"
format_swap = "{SUp}%"
[[block]]
block = "cpu"
interval = 1
[[block]]
block = "load"
interval = 1
format = "{1m}"
[[block]]
block = "sound"
[[block]]
block = "time"
interval = 60
format = "%a %d/%m %R"

View file

@ -8,7 +8,7 @@
postswitch = { postswitch = {
"restart-compton" = "systemctl --user restart picom"; "restart-compton" = "systemctl --user restart picom";
"restart-i3" = "i3-msg restart"; "restart-i3" = "i3-msg restart";
"restart-services" = "systemctl --user restart kdeconnect-indicator.service kdeconnect.service network-manager-applet.service pasystray.service polybar.service"; "restart-services" = "systemctl --user restart kdeconnect-indicator.service kdeconnect.service network-manager-applet.service pasystray.service";
}; };
}; };

View file

@ -1,7 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ imports = [
./polybar/polybar.nix
./i3.nix ./i3.nix
./dunst.nix ./dunst.nix
./autorandr.nix ./autorandr.nix

View file

@ -3,7 +3,12 @@ let
mod = "Mod4"; mod = "Mod4";
in in
{ {
home.packages = with pkgs; [
font-awesome-ttf
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;
@ -24,7 +29,13 @@ in
}; };
workspaceLayout = "tabbed"; workspaceLayout = "tabbed";
bars = []; bars = [
{
position = "top";
fonts = [ "Iosevka" "FontAwesome 10" ];
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${config.xdg.configHome}/i3/status.toml";
}
];
modifier = mod; modifier = mod;
keybindings = { keybindings = {