blob: 124894635fa42ad00caa2d5bee7d9d867969969e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.desktop.enable {
xsession.windowManager.bspwm.enable = true;
xsession.windowManager.bspwm.settings = with config.scheme.withHashtag; {
window_gap = 10;
split_ratio = 0.5;
single_monocle = true;
borderless_monocle = false;
gapless_monocle = false;
focus_follows_pointer = true;
pointer_follows_focus = false;
pointer_motion_interval = 40;
pointer_modifier = "mod4";
pointer_action1 = "resize_side";
pointer_action2 = "move";
pointer_action3 = "resize_corner";
normal_border_color = base02;
active_border_color = base02;
focused_border_color = base03;
};
xsession.windowManager.bspwm.rules = {
"floating-termial" = {
state = "floating";
sticky = true;
rectangle = "1000x600+0+0";
center = true;
follow = true;
};
};
xsession.windowManager.bspwm.extraConfig = ''
for monitor in $(xrandr -q | grep -w 'connected' | cut -d' ' -f1); do
bspc monitor "$monitor" -d '1' '2' '3' '4' '5' '6'
done
${config.services.polybar.script}
${if config.tools.feh.enable then
"${pkgs.feh}/bin/feh --bg-scale ${../../../assets/skeleton-mage.png}"
else "xsetroot -solid \"${config.scheme.withHashtag.base00}\""}
'';
};
}
|