2024-06-21 16:28:36 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
WINDOW_ID=$(xdotool getactivewindow)
|
|
|
|
WM_NAME=$(xprop -id $WINDOW_ID WM_NAME | cut -d '"' -f 2)
|
|
|
|
|
|
|
|
if [ -f $HOME/.config/terminalscwd/$WM_NAME.ssh ]; then
|
|
|
|
echo $(cat $HOME/.config/terminalscwd/$WM_NAME.ssh) > ~/toto.txt
|
2024-06-21 16:32:39 +01:00
|
|
|
alacritty -e sh -c "PARENT_TERMINAL=$WM_NAME ssh $(cat $HOME/.config/terminalscwd/$WM_NAME.ssh)"
|
2024-06-21 16:28:36 +01:00
|
|
|
fi
|