{ pkgs, lib, config, ... }: { options.custom.bspwm.enable = lib.mkEnable "bspwm"; imports = [ ../qutesearch/home.nix ../tint2/home.nix ../rofi/home.nix ../clipboard/home.nix ]; config = { # programs.qutebrowser.enable = true; # custom.qutesearch.enable = true; # programs.tint2.enable = true; # programs.rofi.enable = true; home.packages = [ pkgs.feh pkgs.flameshot ]; services.network-manager-applet.enable = true; xdg.portal = { enable = true; extraPortals = [ pkgs.xdg-desktop-portal-gtk # pkgs.xdg-desktop-portal-kde ]; configPackages = [ pkgs.xdg-desktop-portal-gtk # pkgs.xdg-desktop-portal-kde ]; }; # handled by home manager # home.sessionVariables = { # # Tell java it's in no-reparenting land # "_JAVA_AWT_WM_NONREPARENTING" = 1; # }; services.sxhkd.enable = true; xdg.configFile."sxhkd/sxhkdrc" = { source = ./sxhkdrc; executable = true; }; home.file.".local/bin" = { source = ./scripts; recursive = true; executable = true; }; xsession.windowManager.bspwm = { enable = true; # monitors = { # "eDP-1" = [ "I" "II" "III" "IV" "V" ]; # }; extraConfigEarly = '' bsp-auto-monitors ''; settings = with config.custom.colors; { border_width = 1; window_gap = 4; split_ratio = 0.52; pointer_modifier = "super"; pointer_action1 = "move"; pointer_action2 = "resize_corner"; focus_follows_pointer = true; pointer_follows_focus = true; presel_feedback_color = lib.mkDefault base00; normal_border_color = base01; active_border_color = base04; focused_border_color = base0C; }; rules = { Gimp = { state = "floating"; }; }; startupPrograms = [ # "pgrep -x sxhkd > /dev/null || sxhkd &" "wmname LG3D" # "xsetroot -cursor_name left_ptr &" "tint2" "feh --bg-scale ${config.custom.wallpaper}" ]; }; }; }