Skip to content

Instantly share code, notes, and snippets.

@SietsevanderMolen
SietsevanderMolen / qubes_domain_terminal.sh
Last active May 8, 2024 12:43
Opens a terminal in the domain belonging to the current active winow
#!/bin/bash
run_terminal='
for t in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm xfce4-terminal; do
which $t > /dev/null 2>&1 && exec $t;
done
'
get_id() {
local id=$(xprop -root _NET_ACTIVE_WINDOW)