Update keybinds and monitor config
This commit is contained in:
parent
040e7286c0
commit
b414123eb7
26
flake.nix
26
flake.nix
|
@ -178,33 +178,9 @@
|
||||||
xdg.configFile."hypr/extra.conf".text = ''
|
xdg.configFile."hypr/extra.conf".text = ''
|
||||||
monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200,0x185,1
|
monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200,0x185,1
|
||||||
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080,1920x0,1,transform,1
|
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080,1920x0,1,transform,1
|
||||||
monitor=eDP-1,disable
|
monitor=eDP-1,1920x1080,0x1385,1
|
||||||
monitor=,preferred,auto,auto
|
monitor=,preferred,auto,auto
|
||||||
'';
|
'';
|
||||||
xsession.windowManager.bspwm.extraConfig = ''
|
|
||||||
if [[ "$(xrandr --query | grep -E '^DP-1-1 connected')" ]]; then
|
|
||||||
xrandr --output eDP-1 --off\
|
|
||||||
--output DP-1-3 --primary --mode 1920x1200 --pos 0x185 --rotate normal\
|
|
||||||
--output DP-1-1 --mode 1920x1080 --pos 1920x0 --rotate left
|
|
||||||
bspc monitor eDP-1 -r
|
|
||||||
bspc monitor DP-1-3 -g 1920x1200+0+185
|
|
||||||
bspc monitor DP-1-1 -g 1080x1920+1920+0
|
|
||||||
else
|
|
||||||
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal\
|
|
||||||
--output DP-1-3 --off\
|
|
||||||
--output DP-1-1 --off
|
|
||||||
bspc monitor eDP-1 -g 1920x1080+0+0
|
|
||||||
bspc monitor DP-1-3 -r
|
|
||||||
bspc monitor DP-1-1 -r
|
|
||||||
fi
|
|
||||||
for desktop in "main" "dev" "browser" "files" "chat" "remote" "steam" "misc"; do
|
|
||||||
bspc desktop $desktop --to-monitor primary
|
|
||||||
done
|
|
||||||
bspc monitor primary -o main dev browser files chat remote steam misc
|
|
||||||
bspc monitor primary -d main dev browser files chat remote steam misc
|
|
||||||
bspc wm -o
|
|
||||||
${pkgs.feh}/bin/feh --no-fehbg --bg-fill ${wallpapers.outputs.default}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -152,8 +152,8 @@ in {
|
||||||
bind = SUPER SHIFT, O, movetoworkspace, 7
|
bind = SUPER SHIFT, O, movetoworkspace, 7
|
||||||
bind = SUPER SHIFT, P, movetoworkspace, 8
|
bind = SUPER SHIFT, P, movetoworkspace, 8
|
||||||
|
|
||||||
bind = SUPER, period, workspace, e+1
|
bind = SUPER, period, workspace, m+1
|
||||||
bind = SUPER, comma, workspace, e-1
|
bind = SUPER, comma, workspace, m-1
|
||||||
bind = SUPER, bracketright, focusmonitor, +1
|
bind = SUPER, bracketright, focusmonitor, +1
|
||||||
bind = SUPER, bracketleft, focusmonitor, -1
|
bind = SUPER, bracketleft, focusmonitor, -1
|
||||||
bind = SUPER SHIFT, bracketright, movecurrentworkspacetomonitor, +1
|
bind = SUPER SHIFT, bracketright, movecurrentworkspacetomonitor, +1
|
||||||
|
|
Loading…
Reference in a new issue