nixos/home/desktop/xorg/bspwm.nix

43 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
home.packages = with pkgs; [
nitrogen
polybar
];
xsession.windowManager.bspwm = {
enable = true;
settings = {
window_gap = 12;
border_width = 2;
split_ratio = 0.5;
borderless_monocle = true;
gapless_monocle = true;
pointer_modifier = "mod1";
pointer_action1 = "move";
pointer_action2 = "resize_side";
pointer_action3 = "resize_corner";
};
monitors = {
"primary" = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" ];
};
rules = {
"Xfce4-terminal".state = "floating";
"Nm-connection-editor".state = "floating";
"Qemu-system-x86_64".state = "floating";
"Pavucontrol".state = "floating";
"kitty".desktop = "^1";
"firefox".desktop = "^2";
"Thunar".desktop = "^3";
"thunderbird".desktop = "^4";
"Mailspring".desktop = "^4";
"Element".desktop = "^5";
"Signal".desktop = "^5";
"TelegramDesktop".desktop = "^5";
"Steam".desktop = "^6";
"Bitwarden".desktop = "^7";
"Nxplayer.bin".desktop = "^8";
};
extraConfig = builtins.readFile (./config/bspwm/startup.sh);
};
}