Skip to content

🧊 Collection of custom scripts for Qubes OS

License

Notifications You must be signed in to change notification settings

Willy-JL/Qubes-Scripts

Repository files navigation

qubes-scripts

Collection of custom scripts for Qubes OS

Installation:

  1. Install dependencies in target qubes:

    sudo dnf install \
        qubes-video-companion-receiver \
        xclip \
        yad
  2. Install dependencies in dom0:

    sudo qubes-dom0-update \
        flameshot \
        gpick \
        ImageMagick \
        qubes-video-companion-dom0 \
        xdotool \
        xprop \
        yad
  3. Drop the scripts you want in /usr/local/bin on dom0 (how to copy files to dom0)

Explanation / Usage:

  • qubes-color-add/del: add and remove custom qube colors; run the script with a color name and hexadecimal value like qubes-color-add pink FABFD4, then select it in a qube's settings page, remove with qubes-color-del pink
  • qubes-color-pick: pick a color from screen and copy to global clipboard; run the script, select a color, paste into a qube of your choice
  • qubes-dom0-copy/move: import files to dom0 from other vms; run the script, select the qube, then the files, and they will appear in the current directory on dom0 (and deleted on the source vm if moving)
  • qubes-flameshot: screenshot with flameshot and copy to qube clipboard; run the script, make the screenshot, select target qube, paste to your heart's content
  • qubes-run-focused: run command in focused window's qube; intended for use in keybinds, like opening a file manager in the focused window's qube
  • qubes-screenshare: quickly start a video companion screenshare session; run the script, select destination qube, then source qube, do what you need, then stop screensharing with the tray icon
  • qubes-select-qube: show a prompt to select a qube; intended for use in scripts and commands, all other scripts here rely on it

Disclaimer:

You should be careful what you do with dom0, I won't be held responsible if anything gets compromised. Make sure you understand exactly what these scripts are doing (they are in fact quite simple) before you run them.