Skip to content

Instantly share code, notes, and snippets.

@Ominai
Ominai / hyprland.commands
Last active August 19, 2025 07:52 — forked from Dregu/hyprland.commands
Scripts for automatic sunshine virtual display on 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,1920x1080@60,auto,1"
hyprctl keyword monitor HDMI-A-1,disable
# matching undo commands
hyprctl keyword monitor HEADLESS-2,disable
hyprctl reload