Skip to content

Instantly share code, notes, and snippets.

View Awesomeplayer165's full-sized avatar

Jacob Trentini Awesomeplayer165

View GitHub Profile
@Dregu
Dregu / hyprland.commands
Last active March 12, 2026 14:02
Scripts for automatic sunshine virtual display on sway or hyprland with custom resolution matching moonlight client
# make sure sunshine is using "wlr" capture mode to see headless displays
# create a new "Headless" app in sunshine for virtual display and set:
# do commands
sh -c "hyprctl keyword monitor HEADLESS-2,${SUNSHINE_CLIENT_WIDTH}x${SUNSHINE_CLIENT_HEIGHT}@${SUNSHINE_CLIENT_FPS},auto,1"
hyprctl keyword monitor eDP-1,disable
# matching undo commands
hyprctl keyword monitor HEADLESS-2,disable
hyprctl reload