points/bin/once-connected.zsh
2024-10-18 14:41:06 +02:00

36 lines
565 B
Bash
Executable File

#!/bin/zsh
# vi:spl=en
alias xterm='xterm -bg black -fg white -fa Hack -fs 10'
## Execution Log
#
LOG=${0}.log
rm -f $LOG
touch $LOG
## 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 &!