Files
infrastructure/scripts/kvm/to_mac.sh
XTRM-Unraid 663542ff17
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Simplify KVM scripts - monitor only, manual peripheral switch
2026-02-01 16:42:04 +02:00

13 lines
405 B
Bash
Executable File

#!/bin/bash
# KVM Switch: Nobara → Mac
# Switches monitor to USB-C
# Peripherals: manually press Easy-Switch to Channel 3
echo "Switching to Mac..."
echo " Monitor -> USB-C..."
if command -v ddcutil &>/dev/null; then
ddcutil setvcp 60 27 2>/dev/null && echo "Done! Press Easy-Switch for Channel 3" || echo "Monitor switch failed"
else
echo "ddcutil not installed: sudo dnf install ddcutil"
fi