Skip to content

QubesOS script to change NetVM of the window focused

Notifications You must be signed in to change notification settings

ruzaq/ChangeNetVM.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ChangeNetVM.sh

QubesOS script to change NetVM of the window focused

ChangeNetVM.sh screenshot

Description

ChangeNetVM.sh is a Bash script designed for use in a Qubes OS environment.

This script facilitates the process of changing the NetVM (Network Virtual Machine) associated with a focused Qubes AppVM.

Prerequisites

Before using this script, ensure that the following tools are installed on your system:

  • notify-send
  • zenity

These tools are essential for providing notifications, user dialogs, and window ID detection.

# Check and install prerequisites
dom0# sudo qubes-dom0-update notify-send zenity

Usage

  1. Make the script executable:
dom0# chmod +x /usr/local/bin/ChangeNetVM.sh
  1. Run the script:
/usr/local/bin/ChangeNetVM.sh

You can configure your desktop environment to run the script on keyboard shortcut.

dom0$ grep ChangeNetVM.sh ~/.config/i3/config
bindsym $mod+c exec /usr/local/bin/ChangeNetVM.sh
  1. The script will identify the currently focused Qubes AppVM and prompt you to select a new NetVM from the available options.

  2. Select the desired NetVM from the dialog presented by zenity.

  3. The script will change the NetVM for the detected AppVM and notify you of the success or any errors.

Important Notes

Ensure that the Qubes VMs are properly configured with NetVMs.

If the script reports missing dependencies, install them using the package manager appropriate for your system.

Disclaimer

This script is provided as-is and without warranty. Use it at your own risk, and review the code to ensure it meets your security and system requirements.

About

QubesOS script to change NetVM of the window focused

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages