Restore display settings to fix rotation

Change some binds, add reference workspace for zotero
This commit is contained in:
Evie Litherland-Smith 2023-08-09 13:48:55 +01:00
parent 1680557067
commit ae6508c15b
2 changed files with 19 additions and 23 deletions

View file

@ -18,6 +18,7 @@ let
gsettings set $gnome_schema cursor-theme '${cursor-theme}'
'';
};
anyrunPackage = anyrun.packages.${pkgs.system}.anyrun;
in {
imports = [
hyprland.homeManagerModules.default
@ -50,6 +51,7 @@ in {
};
extraConfig = ''
source = ./macchiato.conf
source = ./display.conf
monitor=,preferred,auto,auto
env = XDG_CURRENT_DESKTOP=Hyprland
@ -122,21 +124,15 @@ in {
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
bind = SUPER, Return, exec, ${pkgs.alacritty}/bin/alacritty
bind = SUPER, F1, exec, ${pkgs.swaylock-effects}/bin/swaylock
bind = SUPER, X, exec, emacsclient -c -a 'emacs'
bind = SUPER, X, exec, ${pkgs.emacs}/bin/emacsclient -c -a 'emacs'
bind = SUPER, T, exec, ${pkgs.xfce.thunar}/bin/thunar
# anyrun/rofi binds
bind = SUPER, Space, exec, ${
anyrun.packages.${pkgs.system}.anyrun
}/bin/anyrun
bind = SUPER, Space, exec, ${anyrunPackage}/bin/anyrun
bind = SUPER, M, fullscreen, 0
bind = SUPER SHIFT, Q, killactive,
bind = SUPER SHIFT, Space, togglefloating
bind = SUPER SHIFT, Return, exec, pkill rofi || ${pkgs.rofi-wayland}/bin/rofi -show ssh
bind = SUPER SHIFT, P, exec, pkill rofi || ${pkgs.rofi-wayland}/bin/rofi -show power-menu
bind = SUPER, B, togglefloating
bind = SUPER SHIFT, Q, killactive,
bind = SUPER, M, fullscreen, 1
bind = SUPER SHIFT, M, fullscreen, 0
# Misc useful binds
bind=,Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"
# Sound
@ -200,18 +196,18 @@ in {
windowrule = workspace name:chat,(fractal)
windowrule = workspace name:chat,(discord)
windowrule = workspace name:chat,(teams-for-linux)
# call
bind = SUPER, Z, moveworkspacetomonitor, name:call current
bind = SUPER, Z, workspace, name:call
bind = SUPER SHIFT, Z, movetoworkspace, name:call
windowrulev2 = workspace name:call,title:(Zoom|zoom)
windowrulev2 = workspace name:chat,title:(Zoom|zoom)
windowrulev2 = float,title:(Zoom|zoom)
windowrulev2 = center,title:(Zoom|zoom)
windowrulev2 = maxsize 800 600,title:(Zoom|zoom)
windowrulev2 = nofullscreenrequest,title:(Zoom|zoom)
windowrulev2 = nomaximizerequest,title:(Zoom|zoom)
# reference
bind = SUPER, Z, moveworkspacetomonitor, name:reference current
bind = SUPER, Z, workspace, name:reference
bind = SUPER SHIFT, Z, movetoworkspace, name:reference
# music
bind = SUPER, S, moveworkspacetomonitor, name:music current
bind = SUPER, S, workspace, name:music

View file

@ -156,23 +156,17 @@ in {
outputs = [
{
criteria = "eDP-1";
mode = "1920x1080";
position = "0,305";
scale = 1.0;
status = "enable";
}
{
criteria = "Iiyama North America PLB2403WS 0574281251316";
mode = "1920x1200";
position = "1920,185";
scale = 1.0;
status = "enable";
}
{
criteria = "Dell Inc. DELL U2417H 5K9YD872FY1L";
mode = "1920x1080";
position = "3840,0";
scale = 1.0;
status = "enable";
}
];
@ -198,4 +192,10 @@ in {
exec = "${pkgs.swww}/bin/swww img ${wallpapers.outputs.default}";
};
};
xdg.configFile."hypr/display.conf".text = ''
monitor=eDP-1,preferred,auto,1
monitor=desc:Iiyama North America PLB2403WS 0574281251316,preferred,auto,1
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,preferred,auto,1,transform,1
monitor=desc:Acer Technologies ED270R TJMEE0043W01,highrr,auto,1
'';
}