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") |
OlderNewer