From 5ee9d0867ca5c3d131a42f7c2273876d941e557b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 11 Jul 2023 12:54:19 +0100 Subject: [PATCH] Add hyprland rule for gamescope, add greetd again --- flake.nix | 6 +++++- home/desktop/hyprland/hyprland.conf | 1 + hosts/Ronin/configuration.nix | 8 +++++++- hosts/Vanguard/configuration.nix | 8 +++++++- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a236fdca..899b47f1 100644 --- a/flake.nix +++ b/flake.nix @@ -160,7 +160,11 @@ wallpaper = ,${wallpapers.outputs.default} ''; xdg.configFile."hypr/display.conf".text = '' - monitor=,highrr,auto,1 + monitor=DP-1,highrr,auto,1 + monitor=DP-2,highrr,auto,1 + monitor=HDMI-1,highres,auto,2 + monitor=HDMI-2,highres,auto,2 + monitor=,preferred,auto,auto ''; }; }) diff --git a/home/desktop/hyprland/hyprland.conf b/home/desktop/hyprland/hyprland.conf index 9a6a6384..a424bb69 100644 --- a/home/desktop/hyprland/hyprland.conf +++ b/home/desktop/hyprland/hyprland.conf @@ -149,6 +149,7 @@ windowrule = workspace 5,(discord) windowrule = workspace 5,(teams-for-linux) windowrule = workspace 6,(Nxplayer.bin) windowrule = workspace 7,^(steam).* +windowrule = workspace 7,(.gamescope-wrapped) windowrule = float,(foot) windowrule = center,(foot) windowrule = float,(pavucontrol) diff --git a/hosts/Ronin/configuration.nix b/hosts/Ronin/configuration.nix index abf139b5..963c21f6 100644 --- a/hosts/Ronin/configuration.nix +++ b/hosts/Ronin/configuration.nix @@ -33,7 +33,13 @@ extraGroups = ["networkmanager" "wheel"]; shell = pkgs.fish; }; - services.greetd.settings.initial_session.user = "elitherl"; + services.greetd = { + enable = true; + settings.initial_session = { + user = "elitherl"; + command = "Hyprland"; + }; + }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions diff --git a/hosts/Vanguard/configuration.nix b/hosts/Vanguard/configuration.nix index 671bd290..20cb2712 100644 --- a/hosts/Vanguard/configuration.nix +++ b/hosts/Vanguard/configuration.nix @@ -29,7 +29,13 @@ openssh.authorizedKeys.keys = import ../../auth/authorized_keys.nix; }; - services.greetd.settings.initial_session.user = "xenia"; + services.greetd = { + enable = true; + settings.initial_session = { + user = "xenia"; + command = "steam-gamescope"; + }; + }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions