From 3981663c7cfb067b24c2645cc91e9d7b1b237f3e Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 22 Oct 2024 23:28:58 -0400 Subject: [PATCH] Added execution of tmux in yakuake only on session-1 --- .bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.bashrc b/.bashrc index 6d03288..99640fc 100644 --- a/.bashrc +++ b/.bashrc @@ -138,3 +138,11 @@ fi alias protontricks='flatpak run com.github.Matoking.protontricks' alias protontricks-launch='flatpak run --command=protontricks-launch com.github.Matoking.protontricks' +if [[ -n "$KONSOLE_VERSION" ]]; then + if [[ "$KONSOLE_DBUS_SESSION" == "/Sessions/1" ]]; then + if grep -Fxq yakuake "/proc/$PPID/comm"; then + exec tmux -2 a + fi + fi +fi +