Update keybinds and monitor config

This commit is contained in:
Evie Litherland-Smith 2023-07-07 17:38:00 +01:00
parent 040e7286c0
commit b414123eb7
2 changed files with 3 additions and 27 deletions

View file

@ -178,33 +178,9 @@
xdg.configFile."hypr/extra.conf".text = ''
monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200,0x185,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
'';
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}
'';
};
})
];

View file

@ -152,8 +152,8 @@ in {
bind = SUPER SHIFT, O, movetoworkspace, 7
bind = SUPER SHIFT, P, movetoworkspace, 8
bind = SUPER, period, workspace, e+1
bind = SUPER, comma, workspace, e-1
bind = SUPER, period, workspace, m+1
bind = SUPER, comma, workspace, m-1
bind = SUPER, bracketright, focusmonitor, +1
bind = SUPER, bracketleft, focusmonitor, -1
bind = SUPER SHIFT, bracketright, movecurrentworkspacetomonitor, +1