commit 3440d077138e1e5ba89193c5fa23530ad3d0440f
parent 6c9b7c1ca9b96ab366088c4bfc50d1b0e81042eb
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Sun, 16 Mar 2025 20:26:26 +0000
changes from carbon: bin/zshaskpass_lock
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/bin/zshaskpass_lock b/bin/zshaskpass_lock
@@ -194,6 +194,14 @@ cmd() {
run tmux -u new-session -A -s ${TTY:t} ; printf "tmux exited with %d\n" $?
set-statefile
;;
+ (T)
+ cmd tmux
+ if [[ $(run s6-svstat -o up $x_container_service) == true ]]; then
+ logincap chvt X
+ else
+ cmd x
+ fi
+ ;;
(*) printf '%s: unknown command\n' ${(qqq)REPLY};;
esac
}