This commit is contained in:
Thomas Forgione 2024-06-21 18:06:29 +02:00
parent b45049ac27
commit 62212e6b83
3 changed files with 6 additions and 6 deletions

View File

@ -636,7 +636,7 @@ semantic_escape_chars = ",│`|:\"' ()[]{}<>"
[window]
decorations = "none"
dynamic_title = true
dynamic_title = false
opacity = 0.85
[window.dimensions]

View File

@ -5,4 +5,6 @@ WM_NAME=$(xprop -id $WINDOW_ID WM_NAME | cut -d '"' -f 2)
if [ -f $HOME/.config/terminalscwd/$WM_NAME.ssh ]; then
alacritty -e sh -c "PARENT_TERMINAL=$WM_NAME ssh $(cat $HOME/.config/terminalscwd/$WM_NAME.ssh)"
else
alacritty -e sh -c "PARENT_TERMINAL=$WM_NAME exec $SHELL"
fi

View File

@ -1,9 +1,7 @@
if [ "$PRESERVE_SSH_CWD" = "true" ]; then
if [ -z $TERMINAL_UUID ]; then
export TERMINAL_UUID=$(uuidgen)
fi
echo -en "\e]2;$TERMINAL_UUID\a"
WINDOW_ID=$(xdotool getactivewindow)
WM_NAME=$(xprop -id $WINDOW_ID WM_NAME | cut -d '"' -f 2)
export TERMINAL_UUID=$WM_NAME
mkdir -p $HOME/.config/terminalscwd/
cd() {
builtin cd $1