points/bin/once-connected.zsh

36 lines
565 B
Bash
Raw Normal View History

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-18 14:41:06 +02:00
## Execution Log
2024-01-22 16:54:59 +01:00
#
2024-10-18 14:41:06 +02:00
LOG=${0}.log
rm -f $LOG
touch $LOG
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-18 14:41:06 +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
{
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
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 &!