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

57 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2024-07-29 00:00:59 +00:00
{ pkgs, ... }:
{
2024-08-24 15:11:21 +00:00
xsession.windowManager.bspwm =
let
theme = import ../theme.nix "light";
2024-08-25 16:31:22 +00:00
# TODO make this based on hostname
## thelio settings
primaryMonitor = "DP-2";
windowGap = theme.sizing.xl;
## galago settings
# primaryMonitor = "eDP-1";
# windowGap = 2;
2024-08-24 15:11:21 +00:00
in
{
enable = true;
settings = {
normal_border_color = theme.colors.disabled;
active_border_color = theme.colors.secondary;
focused_border_color = theme.colors.primary;
2024-08-01 23:25:41 +00:00
2024-08-24 15:11:21 +00:00
border_width = theme.sizing.m;
window_gap = windowGap;
2024-08-01 22:57:35 +00:00
2024-08-24 15:11:21 +00:00
focus_follows_pointer = true;
single_monocle = true;
honor_size_hints = true;
};
extraConfig = ''
bspc monitor ${primaryMonitor} -d I II III IV V
bspc monitor HDMI-1 -d VI VII VIII IX X
2024-07-29 00:00:59 +00:00
2024-08-24 15:11:21 +00:00
# Set mouse 1 to move floating windows:
bspc config pointer_action1 move
2024-07-29 00:00:59 +00:00
2024-08-24 15:11:21 +00:00
# Mouse 2 button resizes the window by side:
bspc config pointer_action2 resize_side
2024-07-29 00:00:59 +00:00
2024-08-24 15:11:21 +00:00
# Mouse 3 button (right mouse) resize by corner:
bspc config pointer_action2 resize_corner
2024-08-01 22:32:26 +00:00
2024-08-24 15:11:21 +00:00
${pkgs.feh}/bin/feh --bg-fill ${pkgs.atau-pkgs.atau-wallpapers}/share/backgrounds/atau-wallpapers/aos1.png
'';
startupPrograms = [
"bluetoothd"
"flameshot"
"kdeconnect-indicator"
"nextcloud-client"
"picom"
"polybar primary"
"polybar secondary"
"steam"
];
};
2024-07-29 00:00:59 +00:00
}