2023-03-24 21:12:45 +01:00
|
|
|
#!/bin/zsh
|
|
|
|
# vi:spl=en
|
|
|
|
|
|
|
|
alias xterm='xterm -bg black -fg white -fa Hack -fs 10'
|
|
|
|
|
2024-10-13 19:34:23 +02:00
|
|
|
## Proof of execution
|
2024-01-22 16:54:59 +01:00
|
|
|
#
|
2024-10-13 19:34:23 +02:00
|
|
|
# touch ${0}.touched
|
2024-01-22 16:54:59 +01:00
|
|
|
|
|
|
|
|
2024-10-13 19:34:23 +02:00
|
|
|
## Qubes: Template Cleaning
|
2024-06-19 11:59:51 +02:00
|
|
|
#
|
2024-10-13 19:34:23 +02:00
|
|
|
sudo apt clean
|
2024-06-19 11:59:51 +02:00
|
|
|
|
|
|
|
|
2024-10-13 19:34:23 +02:00
|
|
|
## Qubes: Split SSH
|
2023-03-24 21:12:45 +01:00
|
|
|
#
|
2024-10-13 19:34:23 +02:00
|
|
|
# https://forum.qubes-os.org/t/split-ssh/19060
|
2023-03-24 21:12:45 +01:00
|
|
|
#
|
2024-10-13 19:34:23 +02:00
|
|
|
if [[ -n "$SSH_VAULT_VM" ]]; then
|
2024-10-14 17:27:15 +02:00
|
|
|
[[ -v SSH_AGENT_PID ]] && kill $SSH_AGENT_PID
|
|
|
|
unset SSH_AGENT_PID
|
2024-10-13 19:34:23 +02:00
|
|
|
{
|
|
|
|
umask u=rw,go=
|
|
|
|
SSH_SOCK="/home/user/.SSH_AGENT_$SSH_VAULT_VM"
|
|
|
|
rm -f "$SSH_SOCK"
|
|
|
|
socat "UNIX-LISTEN:$SSH_SOCK,fork" "EXEC:qrexec-client-vm $SSH_VAULT_VM qubes.SshAgent"
|
|
|
|
} &!
|
2024-10-14 17:27:15 +02:00
|
|
|
export SSH_AUTH_SOCK="/home/user/.SSH_AGENT_$SSH_VAULT_VM"
|
2024-10-13 19:34:23 +02:00
|
|
|
fi
|
2023-03-24 21:12:45 +01:00
|
|
|
|
|
|
|
|
2024-10-13 19:34:23 +02:00
|
|
|
## XFCE: Default Terminal
|
2023-03-24 21:12:45 +01:00
|
|
|
#
|
2024-10-13 19:34:23 +02:00
|
|
|
SHLVL=0 exo-open --launch TerminalEmulator &!
|