refactor(i3): move config to separate directory
This commit is contained in:
parent
70a5a3a702
commit
a2cc8c3841
3 changed files with 5 additions and 2 deletions
58
home-manager/i3/default.nix
Normal file
58
home-manager/i3/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./i3status-rust.nix
|
||||
];
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
terminal = "${pkgs.kitty}/bin/kitty";
|
||||
|
||||
fonts = {
|
||||
names = [ "DejaVu Sans Mono" ];
|
||||
size = 12.0;
|
||||
};
|
||||
|
||||
window = {
|
||||
titlebar = false;
|
||||
border = 0;
|
||||
};
|
||||
|
||||
floating = {
|
||||
titlebar = false;
|
||||
border = 0;
|
||||
};
|
||||
|
||||
bars = [{
|
||||
mode = "hide";
|
||||
position = "top";
|
||||
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml";
|
||||
|
||||
fonts = {
|
||||
names = [ "DejaVu Sans Mono" ];
|
||||
size = 12.0;
|
||||
};
|
||||
}];
|
||||
|
||||
defaultWorkspace = "workspace number 1";
|
||||
|
||||
startup = [
|
||||
{ command = "${pkgs.kitty}/bin/kitty"; }
|
||||
{ command = "${pkgs.firefox}/bin/firefox"; }
|
||||
];
|
||||
|
||||
assigns = {
|
||||
"1" = [{ class = "^kitty$"; }];
|
||||
"5" = [{ class = "^firefox$"; }];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.screen-locker = {
|
||||
enable = true;
|
||||
lockCmd = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
|
||||
};
|
||||
}
|
41
home-manager/i3/i3status-rust.nix
Normal file
41
home-manager/i3/i3status-rust.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
{
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
bars = {
|
||||
default = {
|
||||
theme = "solarized-dark";
|
||||
icons = "awesome";
|
||||
|
||||
blocks = [
|
||||
{
|
||||
block = "memory";
|
||||
display_type = "memory";
|
||||
format_mem = "{mem_used_percents}";
|
||||
}
|
||||
{
|
||||
block = "cpu";
|
||||
interval = 1;
|
||||
format = "{barchart} {frequency}";
|
||||
}
|
||||
{
|
||||
block = "load";
|
||||
interval = 1;
|
||||
format = "{1m}";
|
||||
}
|
||||
{
|
||||
block = "battery";
|
||||
hide_missing = true;
|
||||
format = "{time} ({percentage})";
|
||||
}
|
||||
{
|
||||
block = "time";
|
||||
interval = 60;
|
||||
format = "%a %d.%m %R";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue