mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
- scripts/vmreset.sh, vmwatch.sh (wizard in a visible Konsole), vmshot.sh. - vmstate.sh: DKMS per kernel, DKMS override, headers service, dark LnF, wallpaper, layout backup. - cmp.sh: also kcminputrc and ksplashrc. - Skill: pitfalls and checks from testing cachyos-gamescope-boot 0.7.0.
19 lines
729 B
Bash
Executable File
19 lines
729 B
Bash
Executable File
#!/bin/bash
|
|
# Screenshot the guest's Plasma session to a file on the host.
|
|
# scripts/vmshot.sh <out.png>
|
|
# spectacle started straight from SSH crashes; run it as a user unit so it
|
|
# gets the session's environment.
|
|
# Env: VM_USER (theupriser), VM_PORT (2222), VM_HOST (localhost), GUEST_UID (1000).
|
|
set -euo pipefail
|
|
. "$(dirname "$0")/common.sh"
|
|
out="${1:?usage: $0 <out.png>}"
|
|
{ printf 'uid=%q\n' "${GUEST_UID:-1000}"; cat << 'REMOTE'
|
|
export XDG_RUNTIME_DIR=/run/user/$uid DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus
|
|
rm -f /tmp/vmshot.png
|
|
sleep 2
|
|
systemd-run --user --wait -q spectacle -b -n -f -o /tmp/vmshot.png
|
|
REMOTE
|
|
} | vm_ssh bash -s
|
|
scp -q -P "$VM_PORT" "$VM_USER@$VM_HOST:/tmp/vmshot.png" "$out"
|
|
echo "$out"
|