add scripts
This commit is contained in:
		
							parent
							
								
									98e24400a0
								
							
						
					
					
						commit
						f60f9327a7
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										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…
	
	Add table
		Add a link
		
	
		Reference in a new issue