This is a thread where we collect short tips and tricks that can improve the Qubes experience for most users. We want to create a one-stop-post where people can quickly find and implement changes to their systems instead of having to search for and visit a hundred different posts.

Feel free to add your tip to this wiki post (anyone can edit this)

 

Guidelines These are subject to frequent and major changes while we figure out how this might work 1. Brevity is key--post as few words as possible   2. If your tip cannot be condensed into a few lines, it doesn't belong here   3. If your tip is niche with regard to Qubes users, it doesn't belong here*   4. Follow the established style convention   5. Give credit, even to yourself, and link to the original (if needed, also post as reply for a link)   6. Discussions regarding specific tips belong in their own threads if available

* "What's niche?" is going to spawn a lot of debate and angst, but this constraint is necessary to prevent the post from getting bloated and mostly irrelevant

 


Quick Quality-of-Life Improvements

 

VM Management - Shut down selected window's VM - [dom0] Create /bin/halt-vm-by-window containing the code below, run chmod +x /bin/halt-vm-by-window, then map to shortcut @tasket [details="halt-vm-by-window"]

#!/bin/bash

CUR_WIN_ID=`xdotool getwindowfocus`
CUR_VM=`xprop _QUBES_VMNAME -id $CUR_WIN_ID |cut -d \" -f2`

qvm-run $CUR_VM 'xdotool search --name "Mozilla Firefox" key ctrl+q'
qvm-run $CUR_VM 'xdotool search --name "Mozilla Thunderbird" key ctrl+q'
sleep 4
/usr/bin/qvm-shutdown $CUR_VM  --wait --timeout=40
[/details]

 

Input Devices

[details="Hide cursor (dom0)"]

mkdir $HOME/bin
cat << 'EOF' | tee $HOME/bin/toggle-unclutter.sh

#! /bin/sh
if pgrep unclutter &> /dev/null 2>&1
then
   killall unclutter
else
   unclutter -idle 1 &
fi
EOF

chmod +x $HOME/bin/toggle-unclutter.sh
[/details]  

Storage - Send files directly to external storage mounted in other qube - [AppVM] Run the code below (expandable), then copy/move your file(s) @SteveC

[details="In destination qube:"] In the following instructions [ORIGIN QUBE] is the qube name without brackets or slashes!

mkdir ~/QubesIncoming
mv ~/QubesIncoming/[ORIGIN QUBE] ~/QubesIncoming/[ORIGIN QUBE]_backup
ln -s [MOUNT POINT] ~/QubesIncoming/[ORIGIN QUBE]
[/details]

 

WiFi

 

Video playback - Reduce VLC's CPU usage - [AppVM] In VLC's preferences, open 'Video' and change 'Output' to 'X11 video output (XCB)' @solene - Reduce mpv's CPU usage (link includes guide for YouTube too) - [TemplateVM] In /etc/mpv/mpv.conf, insert vo=x11 and profile=sw-fast as separate lines @Bearillo

 

Notifications