Update 01/07/21
This commit is contained in:
parent
632185d7f8
commit
2d6084b28a
10 changed files with 182 additions and 120 deletions
|
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
monitorPages = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" ];
|
||||
strPalette = pkgs.rice.palette.toRGBHex pkgs.rice.colorPalette;
|
||||
xrandr = "${pkgs.xorg.xrandr}/bin/xrandr";
|
||||
in
|
||||
{
|
||||
xsession.windowManager.bspwm = {
|
||||
|
|
@ -19,14 +20,25 @@ in
|
|||
focused_border_color = strPalette.bright.blue;
|
||||
};
|
||||
monitors = {
|
||||
# Intel
|
||||
"eDP1" = monitorPages;
|
||||
"DP1" = monitorPages;
|
||||
|
||||
# Nvidia
|
||||
"eDP-1-1" = monitorPages;
|
||||
"HDMI-0" = monitorPages;
|
||||
"DP-1-1" = monitorPages;
|
||||
};
|
||||
extraConfig = ''
|
||||
${pkgs.wmname}/bin/wmname LG3D
|
||||
${pkgs.polybar}/bin/polybar-msg cmd restart
|
||||
|
||||
if grep DP-1-1 <(${xrandr} --listactivemonitors); then
|
||||
${xrandr} --output DP-1-1 --auto --above eDP-1-1
|
||||
elif grep DP1 <(${xrandr} --listactivemonitors); then
|
||||
${xrandr} --output DP-1-1 --auto --above eDP1;
|
||||
fi
|
||||
|
||||
'';
|
||||
startupPrograms = [];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue