home: x: setup i3status-rust
This commit is contained in:
parent
75026b906e
commit
37882e8d10
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./i3.nix
|
||||
./i3bar.nix
|
||||
];
|
||||
|
||||
options.my.home.x = with lib; {
|
||||
|
|
|
@ -13,6 +13,17 @@ let
|
|||
modifier = "Mod4"; # `Super` key
|
||||
|
||||
logoutMode = "[L]ogout, [S]uspend, [P]oweroff, [R]eboot";
|
||||
|
||||
# colors
|
||||
colorBg = "#282828";
|
||||
colorRed = "#cc241d";
|
||||
colorGreen = "#98971a";
|
||||
colorYellow = "#d79921";
|
||||
colorBlue = "#458588";
|
||||
colorPurple = "#b16286";
|
||||
colorAqua = "#689d68";
|
||||
colorGray = "#a89984";
|
||||
colorDarkGray = "#1d2021";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf isEnabled {
|
||||
|
@ -26,10 +37,40 @@ in
|
|||
inherit modifier;
|
||||
|
||||
bars =
|
||||
let
|
||||
barConfigPath =
|
||||
config.xdg.configFile."i3status-rust/config-top.toml".target;
|
||||
in
|
||||
[
|
||||
{
|
||||
statusCommand = "i3status";
|
||||
statusCommand = "i3status-rs ${barConfigPath}";
|
||||
position = "top";
|
||||
|
||||
colors = {
|
||||
background = colorBg;
|
||||
statusline = colorYellow;
|
||||
|
||||
focusedWorkspace = {
|
||||
border = colorAqua;
|
||||
background = colorAqua;
|
||||
text = colorDarkGray;
|
||||
};
|
||||
inactiveWorkspace = {
|
||||
border = colorDarkGray;
|
||||
background = colorDarkGray;
|
||||
text = colorYellow;
|
||||
};
|
||||
activeWorkspace = {
|
||||
border = colorAqua;
|
||||
background = colorDarkGray;
|
||||
text = colorYellow;
|
||||
};
|
||||
urgentWorkspace = {
|
||||
border = colorRed;
|
||||
background = colorRed;
|
||||
text = colorBg;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
|
|
22
home/x/i3bar.nix
Normal file
22
home/x/i3bar.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
isEnabled = config.my.home.x.enable;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
alsaUtils # Used by `sound` block
|
||||
lm_sensors # Used by `temperature` block
|
||||
];
|
||||
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
|
||||
bars = {
|
||||
top = {
|
||||
theme = "gruvbox-light";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue