bindsym ctrl+$alt+t exec xdotool getactivewindow getwindowpid | xargs ps | grep "alacritty" && (xdotool getactivewindow getwindowpid | xargs pgrep -P | xargs pwdx | cut -d":" -f 2 | xargs alacritty --working-directory ) || WINIT_X11_SCALE_FACTOR=1 alacritty
I probably scratched some parts together from the internet a couple of years ago.
Maybe something like this could do the same? But could also rely on that specific terminal emulator
key_bindings: - { key: T, mods: Control|Shift, action: SpawnNewInstance }
I probably scratched some parts together from the internet a couple of years ago.