Initial commit

This commit is contained in:
2026-06-05 13:31:10 +02:00
commit b2d9581c25
12 changed files with 1006 additions and 0 deletions

21
rdp.nu Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env nu
# Connect with the VM over RDP.
#
# Requires XWayland or X11, and Remmina to be installed in flatpak.
# RDP over Remmina on XWayland is the only way i've been able to have fractional scaling on the host, and GPU acceleration on the guest.
def main []: nothing -> nothing {
print "> Extracting hostname from vagrant..."
let ip = (vagrant ssh-config | parse " {key} {val}" | transpose -r | get 0.HostName)
print $"> hostname: ($ip)"
let user = "vagrant"
let pass = "vagrant"
let uri = $"rdp://($user):($pass)@($ip)"
print $"> connecting to ($uri)"
flatpak run --socket=fallback-x11 org.remmina.Remmina --no-tray-icon -c $uri
}