40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
xsession.windowManager.bspwm = let theme = import ../theme.nix "light"; in {
|
|
enable = true;
|
|
settings = {
|
|
normal_border_color = theme.colors.disabled;
|
|
active_border_color = theme.colors.secondary;
|
|
focused_border_color = theme.colors.primary;
|
|
|
|
border_width = theme.sizing.m;
|
|
window_gap = theme.sizing.xl;
|
|
|
|
focus_follows_pointer = true;
|
|
single_monocle = true;
|
|
honor_size_hints = 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
|
|
|
|
${pkgs.feh}/bin/feh --bg-fill ${pkgs.atau-pkgs.atau-wallpapers}/share/backgrounds/atau-wallpapers/aos1.png
|
|
'';
|
|
startupPrograms = [
|
|
"bluetoothd"
|
|
"picom"
|
|
"polybar primary"
|
|
"polybar secondary"
|
|
];
|
|
};
|
|
}
|