diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-07-13 03:56:55 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-07-13 03:56:55 +0530 |
| commit | 3b09a24e0a5733f4fb527120a9c710f511862023 (patch) | |
| tree | 1362d1608e5b5ff01dbc7f71dea04cb6b91c9aa8 /modules/graphical/bspwm/default.nix | |
| parent | 085ff668ab45ac8d57c093e502b1175a86f2c14e (diff) | |
| download | home-manager-config-3b09a24e0a5733f4fb527120a9c710f511862023.tar.gz home-manager-config-3b09a24e0a5733f4fb527120a9c710f511862023.zip | |
Removed unecessary junk.
Diffstat (limited to 'modules/graphical/bspwm/default.nix')
| -rw-r--r-- | modules/graphical/bspwm/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/graphical/bspwm/default.nix b/modules/graphical/bspwm/default.nix new file mode 100644 index 0000000..24b15fd --- /dev/null +++ b/modules/graphical/bspwm/default.nix @@ -0,0 +1,41 @@ +{ config, lib, pkgs, ... }: + +{ + config = lib.mkIf config.graphical.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 = "mod1"; # alt key + 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 + ''; + }; +} |
