points/bin/once-connected.zsh
2024-10-13 20:13:51 +02:00

33 lines
554 B
Bash
Executable File

#!/bin/zsh
# vi:spl=en
alias xterm='xterm -bg black -fg white -fa Hack -fs 10'
## Proof of execution
#
# touch ${0}.touched
## Qubes: Template Cleaning
#
sudo apt clean
## Qubes: Split SSH
#
# https://forum.qubes-os.org/t/split-ssh/19060
#
if [[ -n "$SSH_VAULT_VM" ]]; then
{
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"
} &!
fi
## XFCE: Default Terminal
#
SHLVL=0 exo-open --launch TerminalEmulator &!