From 27adbd15aeb1919fea8779d1a85a50884af73699 Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Sat, 8 Feb 2025 11:38:55 +0100 Subject: [PATCH] fix: uwsm on tmux doesn't show any warning --- .config/zsh/.zprofile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index ba87b56..a4fd37e 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -10,6 +10,10 @@ export PATH="$PATH:$HOME/.local/scripts/" export CAPACITOR_ANDROID_STUDIO_PATH="/home/daniele/.local/share/JetBrains/Toolbox/apps/android-studio/bin/studio.sh" # Launch Hyprland via uwsm -if uwsm check may-start; then - exec uwsm start hyprland.desktop +# Check if we are inside a tmux session +if [ -z "$TMUX" ]; then + if uwsm check may-start; then + exec uwsm start hyprland.desktop + fi fi +