60 lines
1.6 KiB
Nix
60 lines
1.6 KiB
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
monitorPages = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" ];
|
|
strPalette = pkgs.rice.palette.toRGBHex pkgs.rice.colorPalette;
|
|
in
|
|
{
|
|
xsession.windowManager.bspwm = {
|
|
enable = true;
|
|
settings = {
|
|
border_width = 2;
|
|
border_radius = 8;
|
|
window_gap = 4;
|
|
split_ratio = 0.5;
|
|
top_padding = 0;
|
|
borderless_monocle = true;
|
|
gapless_monocle = false;
|
|
normal_border_color = strPalette.normal.blue;
|
|
focused_border_color = strPalette.bright.blue;
|
|
};
|
|
monitors = {
|
|
"eDP1" = monitorPages;
|
|
"DP1" = monitorPages;
|
|
"eDP-1-1" = monitorPages;
|
|
"HDMI-0" = monitorPages;
|
|
};
|
|
extraConfig = ''
|
|
sleep 2
|
|
polybar-msg cmd restart
|
|
'';
|
|
startupPrograms = [];
|
|
};
|
|
|
|
# xdg.configFile."bspwm/bspwmrc" = {
|
|
# executable = true;
|
|
# text = ''
|
|
# #!/bin/sh
|
|
|
|
# bspc monitor DP1 -d I II III IV V VI VII VIII IX X
|
|
# bspc monitor HDMI-0 -d I II III IV V VI VII VIII IX X
|
|
# bspc monitor eDP-1-1 -d I II III IV V VI VII VIII IX X
|
|
# bspc monitor eDP1 -d I II III IV V VI VII VIII IX X
|
|
# bspc config border_radius 8
|
|
# bspc config border_width 2
|
|
# bspc config borderless_monocle true
|
|
# bspc config focused_border_color '#678EBD'
|
|
# bspc config gapless_monocle false
|
|
# bspc config normal_border_color '#5E81AC'
|
|
# bspc config split_ratio 0.500000
|
|
# bspc config top_padding 0
|
|
# bspc config window_gap 4
|
|
# # java gui fixes
|
|
# export _JAVA_AWT_WM_NONREPARENTING=1
|
|
# bspc rule -a sun-awt-X11-XDialogPeer state=floating
|
|
|
|
# sleep 2
|
|
# polybar-msg cmd restart
|
|
# '';
|
|
# };
|
|
}
|