diff --git a/system/services/sunshine.nix b/system/services/sunshine.nix index 319f0ab..6b56df4 100644 --- a/system/services/sunshine.nix +++ b/system/services/sunshine.nix @@ -21,38 +21,47 @@ in { system_tray = "enabled"; output_name = 1; }; - applications.apps = [ + applications.apps = let + defaultPrep = [ + { + do = "sh -c \"hyprctl -i 0 keyword monitor \\\"DP-2,\${SUNSHINE_CLIENT_WIDTH}x\${SUNSHINE_CLIENT_HEIGHT}@\${SUNSHINE_CLIENT_FPS},0x0,1\\\"\""; + undo = "sh -c \"hyprctl -i 0 keyword monitor 'DP-2,2560x1080@60,0x0,1,transform,1'\""; + } + ]; + in [ { name = "Desktop"; image-path = "desktop.png"; + prep-cmd = defaultPrep; } { name = "Low Res Desktop"; image-path = "desktop.png"; + prep-cmd = defaultPrep; } { name = "Steam Big Picture"; detached = ["setsid steam steam://open/bigpicture"]; - prep-cmd = { - do = ""; - undo = "setsid steam steam://close/bigpicture"; - }; + prep-cmd = defaultPrep; image-path = "steam.png"; } { name = "OpenTTD"; cmd = "openttd"; image-path = "/home/phundrak/.config/sunshine/covers/igdb_18074.png"; + prep-cmd = defaultPrep; } { name = "OpenMW"; cmd = "openmw"; image-path = "/home/phundrak/.config/sunshine/covers/igdb_24775.png"; + prep-cmd = defaultPrep; } { name = "Vintage Story"; cmd = "flatpak run at.vintagestory.VintageStory"; image-path = "/home/phundrak/.config/sunshine/covers/igdb_69547.png"; + prep-cmd = defaultPrep; } ]; }; diff --git a/users/modules/desktop/hyprland.nix b/users/modules/desktop/hyprland.nix index c3e9a8b..3a24ea0 100644 --- a/users/modules/desktop/hyprland.nix +++ b/users/modules/desktop/hyprland.nix @@ -62,10 +62,8 @@ in { monitor = { "marpa" = [ - # "DP-1, 3440x1440@144, 1080x550, 1" - # "DP-2, 2560x1080@60, 0x0, 1, transform, 1" - "DP-2, 1366x768@60, 0x0, 1" - # "DP-2, 1829x1143@60, 0x0, 1" + "DP-1, 3440x1440@144, 1080x550, 1" + "DP-2, 2560x1080@60, 0x0, 1, transform, 1" ]; "gampo" = []; }."${cfg.host}";