Better
This commit is contained in:
parent
b45049ac27
commit
62212e6b83
|
@ -636,7 +636,7 @@ semantic_escape_chars = ",│`|:\"' ()[]{}<>"
|
||||||
|
|
||||||
[window]
|
[window]
|
||||||
decorations = "none"
|
decorations = "none"
|
||||||
dynamic_title = true
|
dynamic_title = false
|
||||||
opacity = 0.85
|
opacity = 0.85
|
||||||
|
|
||||||
[window.dimensions]
|
[window.dimensions]
|
||||||
|
|
|
@ -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
|
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)"
|
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
|
fi
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
if [ "$PRESERVE_SSH_CWD" = "true" ]; then
|
if [ "$PRESERVE_SSH_CWD" = "true" ]; then
|
||||||
if [ -z $TERMINAL_UUID ]; then
|
WINDOW_ID=$(xdotool getactivewindow)
|
||||||
export TERMINAL_UUID=$(uuidgen)
|
WM_NAME=$(xprop -id $WINDOW_ID WM_NAME | cut -d '"' -f 2)
|
||||||
fi
|
export TERMINAL_UUID=$WM_NAME
|
||||||
echo -en "\e]2;$TERMINAL_UUID\a"
|
|
||||||
|
|
||||||
mkdir -p $HOME/.config/terminalscwd/
|
mkdir -p $HOME/.config/terminalscwd/
|
||||||
cd() {
|
cd() {
|
||||||
builtin cd $1
|
builtin cd $1
|
||||||
|
|
Loading…
Reference in New Issue