add scripts
This commit is contained in:
parent
98e24400a0
commit
f60f9327a7
|
@ -17,6 +17,8 @@
|
||||||
shutdown-script = pkgs.writeScriptBin "shutdown-script" (builtins.readFile ./scripts/shutdown-script.sh);
|
shutdown-script = pkgs.writeScriptBin "shutdown-script" (builtins.readFile ./scripts/shutdown-script.sh);
|
||||||
|
|
||||||
show-keybinds = pkgs.writeScriptBin "show-keybinds" (builtins.readFile ./scripts/keybinds.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 {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wall-change
|
wall-change
|
||||||
|
@ -37,5 +39,7 @@ in {
|
||||||
shutdown-script
|
shutdown-script
|
||||||
|
|
||||||
show-keybinds
|
show-keybinds
|
||||||
|
|
||||||
|
vm-start
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
11
modules/home/scripts/scripts/vm-start.sh
Executable file
11
modules/home/scripts/scripts/vm-start.sh
Executable 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}
|
Loading…
Reference in a new issue