1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

add uwsm startup

This commit is contained in:
andrey_varnavskiy
2024-12-10 05:07:09 +05:00
parent 3b3ae0ec39
commit 1cb44e3e71
2 changed files with 8 additions and 1 deletions

View File

@@ -31,10 +31,15 @@
history.path = "${config.xdg.dataHome}/zsh/history";
initExtra = ''
# Start Tmux automatically if not already running
# Start Tmux automatically if not already running. No Tmux in TTY
if [ -z "$TMUX" ] && [ -n "$DISPLAY" ]; then
tmux attach-session -t default || tmux new-session -s default
fi
# Start UWSM
if uwsm check may-start > /dev/null && uwsm select; then
exec systemd-cat -t uwsm_start uwsm start default
fi
'';
};
}