nixos-config/modules/home/scripts/scripts/vm-start.sh
2024-01-28 11:40:23 +01:00

11 lines
194 B
Bash
Executable file

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