nixos-config/modules/home/scripts/scripts/vm-start.sh
2024-03-06 14:57:07 +01:00

11 lines
194 B
Bash
Executable file

#!/usr/bin/env zsh
# VM name
vm_name="win10"
export LIBVIRT_DEFAULT_URI="qemu:///system"
# change workspace
hyprctl dispatch workspace 6
virsh start ${vm_name}
virt-viewer -f -w -a ${vm_name}