- These configs create a headless virtual display on demand when connecting to the "Headless" app
- The commands might also work globally with any app when added to "General - Command Preparations", but this is untested
- The headless display mode is automatically set to match whatever is set in Moonlight settings
- The real display is automatically disabled while streaming
- Remember to enable these Moonlight settings to send resolution info and toggle the displays when streaming:
- Optimize game settings for streaming
- Quit app on host PC after ending stream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| Bind joystick buttons in Hyprland :D and reset idle timer too | |
| Get your button codes from evtest or whatever | |
| Requires lua-posix, maybe from pacman | |
| Also requires https://github.com/hyprwm/Hyprland/pull/16005 | |
| Example: | |
| joy = require"joy" | |
| joy.dev("/dev/input/by-id/usb-WiseGroup._Ltd_MP-8866_Dual_USB_Joypad-event-joystick") | |
| joy.bind(290, hl.dsp.window.fullscreen()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/systemd/system/hyprland.service | |
| # This service will make hyprlock your login screen basically. Requires Hyprland 0.56. | |
| # It's for a single user machine that needs password protection with eyecandy and unified login and lock screen. | |
| # This way of launching directly to hyprlock is probably secure enough against your friends, but not your enemies. | |
| # Don't use this if you don't understand it or don't know how to undo it if it breaks. | |
| # This is just an example, replace the relevant bits with your own info. | |
| # You also have to actually install and configure hyprlock to use hyprlock. | |
| # Probably test hyprlock and the --locked-cmd before outright nuking getty? | |
| # If you have a display manager you should obviously disable that too. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Lua UDP REPL console for Hyprland | |
| -- Just stick repl.lua in .config/hypr and `require "repl"` | |
| -- Connect with `socat readline,prompt="> " udp-datagram:localhost:42069` | |
| -- Get luasocket somehow, `pacman -S lua-socket` installs here: | |
| package.path = "/usr/share/lua/" .. _VERSION:sub(5) .. "/?.lua;/usr/share/lua/" .. _VERSION:sub(5) .. "/?/init.lua;" .. package.path | |
| -- lua-inspect is on e.g. aur | |
| -- Pretty useful, not really required, so lets not error on that, although hl custom error handler might do it anyway | |
| _, inspect = pcall(require, "inspect") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| function handle { | |
| EVENT=${1%%\>\>*} | |
| DATA=${1#*\>\>} | |
| case $EVENT in | |
| activewindow) | |
| IFS=, read -r CLASS TITLE <<< "$DATA" | |
| echo "Window focused | Class: $CLASS | Title: $TITLE" | |
| ;; | |
| focusedmonv2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # control active window pipewire volume with hyprland binds | |
| # tries really hard to figure out complex situations like: | |
| # - individual firefox tabs/windows | |
| # - gamescope games | |
| # - proton games | |
| # - child process playing audio in terminal window | |
| # - multiple streams per process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Allows you to use process names in windowrules when the class and title are useless, e.g. spotify miniplayer | |
| # exec-once = ~/.config/scripts/hypr-tagwindows | |
| # windowrule = forcergbx, tag:spotify, floating:1 | |
| function handle { | |
| if [[ "$1" =~ "openwindow>>" ]]; then | |
| read -d, ADDR WS CLASS TITLE <<< $(echo "$1" | cut -f3 -d">") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Yet Another Luxurious but Laughably Unnecessary screenShot tool for Hyprland by Dregu | |
| # Capture specific window, layer, region or output with a single command and pipe to satty. | |
| # Usage: ./yallushot [region|window|output] | |
| # TOLD YA! | |
| # remember to add `layerrule = no_anim on, match:namespace selection` or you will see slurp in your screenshots! | |
| # PARAMS | |
| # (none): shoots selected region OR clicked window/layer without decorations OR output when clicked outside a window/cancelled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # make nice place for edid files | |
| sudo mkdir -p /usr/lib/firmware/edid | |
| # find edid file for your monitor or maybe get one from the interweb | |
| sudo find /sys | grep /edid$ | |
| # copy it to firmware | |
| sudo cp one_of_the_results /usr/lib/firmware/edid/xyz1337.bin | |
| # check to make sure it's not garbage I guess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Set random wallpaper and matching active border gradient using hyprpaper/swaybg and imagemagick | |
| DIR=~/pics/wallpapers | |
| FORCE="$1" | |
| # Collect old swaybg pids to kill after fading new one in | |
| OLD=$(pgrep -d" " swaybg) |
NewerOlder