nixos-config/config/modules/bspwm/bspwm.nix

25 lines
641 B
Nix
Raw Normal View History

2024-07-29 00:00:59 +00:00
{ pkgs, ... }:
{
xsession.windowManager.bspwm = {
enable = true;
settings = {
border_width = 10;
focus_follows_pointer = true;
};
extraConfig = ''
bspc monitor DP-2 -d I II III IV V
bspc monitor HDMI-1 -d VI VII VIII IX X
# Set mouse 1 to move floating windows:
bspc config pointer_action1 move
# Mouse 2 button resizes the window by side:
bspc config pointer_action2 resize_side
# Mouse 3 button (right mouse) resize by corner:
bspc config pointer_action2 resize_corner
'';
startupPrograms = [ "picom" "polybar primary" "polybar secondary" ];
};
}