add scripts

This commit is contained in:
Frost-Phoenix 2024-01-28 11:40:23 +01:00
parent 98e24400a0
commit f60f9327a7
2 changed files with 15 additions and 0 deletions

View file

@ -17,6 +17,8 @@
shutdown-script = pkgs.writeScriptBin "shutdown-script" (builtins.readFile ./scripts/shutdown-script.sh);
show-keybinds = pkgs.writeScriptBin "show-keybinds" (builtins.readFile ./scripts/keybinds.sh);
vm-start = pkgs.writeScriptBin "vm-start" (builtins.readFile ./scripts/vm-start.sh);
in {
home.packages = with pkgs; [
wall-change
@ -37,5 +39,7 @@ in {
shutdown-script
show-keybinds
vm-start
];
}

View file

@ -0,0 +1,11 @@
#!/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}