Add sway home-manger config
This commit is contained in:
parent
68553c9dd7
commit
ae16e2ea9b
2 changed files with 63 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home-manager.users.mae = {
|
||||
imports = [ ../profiles/direnv ../profiles/git ../profiles/zsh ../profiles/neovim ];
|
||||
imports = [ ../profiles/direnv ../profiles/git ../profiles/zsh ../profiles/neovim ../profiles/sway ];
|
||||
home.packages = with pkgs; [
|
||||
arc-theme
|
||||
];
|
||||
|
|
62
users/profiles/sway/default.nix
Normal file
62
users/profiles/sway/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
wayland.windowManager.sway = {
|
||||
package = null;
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
input = {
|
||||
"*" = {
|
||||
xkb_layout = "pl";
|
||||
accel_profile = "flat";
|
||||
};
|
||||
};
|
||||
bars = [{
|
||||
id = "top";
|
||||
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs";
|
||||
position = "top";
|
||||
trayOutput = "*";
|
||||
}];
|
||||
floating.criteria = [{ title = "Steam - Update News"; }];
|
||||
};
|
||||
wrapperFeatures.gtk = true;
|
||||
systemdIntegration = true;
|
||||
};
|
||||
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
bars.bar_0 = {
|
||||
blocks = [
|
||||
#{ block = "backlight"; }
|
||||
{ block = "hueshift"; }
|
||||
{
|
||||
block = "disk_space";
|
||||
path = "/";
|
||||
alias = "/";
|
||||
info_type = "available";
|
||||
unit = "GiB";
|
||||
interval = 60;
|
||||
warning = 20.0;
|
||||
alert = 10.0;
|
||||
}
|
||||
{
|
||||
block = "memory";
|
||||
display_type = "memory";
|
||||
format_mem = "{Mup}%";
|
||||
format_swap = "{SUp}%";
|
||||
}
|
||||
{
|
||||
block = "cpu";
|
||||
interval = 1;
|
||||
}
|
||||
{ block = "sound"; }
|
||||
#{ block = "battery"; }
|
||||
{
|
||||
block = "time";
|
||||
interval = 60;
|
||||
format = "%a %d/%m %R";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue