aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/bspwm/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-11-28 00:01:27 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-11-28 00:01:27 +0530
commit170461002890d55718618bec64feaa8856c3a6d4 (patch)
tree39828106660958fc9de2c8c8d1fc972c8e2320cb /modules/desktop/bspwm/default.nix
parent547bf872cbf85f4718576e1ac3a0eab094ccd26a (diff)
downloadhome-manager-config-170461002890d55718618bec64feaa8856c3a6d4.tar.gz
home-manager-config-170461002890d55718618bec64feaa8856c3a6d4.zip
Organised the configuration to allow for different options for different users.
Diffstat (limited to 'modules/desktop/bspwm/default.nix')
-rw-r--r--modules/desktop/bspwm/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/desktop/bspwm/default.nix b/modules/desktop/bspwm/default.nix
new file mode 100644
index 0000000..d402035
--- /dev/null
+++ b/modules/desktop/bspwm/default.nix
@@ -0,0 +1,42 @@
+{ 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
+polybar-msg cmd restart
+ '';
+ };
+}