nixos-config/modules/home/scripts/scripts/vm-start.sh

11 lines
194 B
Bash
Raw Normal View History

2024-01-28 11:40:23 +01:00
#!/usr/bin/env zsh
# VM name
2024-03-06 14:52:09 +01:00
vm_name="win10"
2024-01-28 11:40:23 +01:00
export LIBVIRT_DEFAULT_URI="qemu:///system"
# change workspace
2024-03-06 14:57:07 +01:00
hyprctl dispatch workspace 6
2024-01-28 11:40:23 +01:00
virsh start ${vm_name}
virt-viewer -f -w -a ${vm_name}