add TMUX toggle

This commit is contained in:
lelgenio 2020-12-06 22:06:08 -03:00
parent 2e3a3f572c
commit f951ae3f5f
2 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,7 @@ variables:
file_manager: thunar
bar: waybar
bar_pos: top
tmux: false
font:
mono: FiraCode Nerd Font

View file

@ -5,6 +5,10 @@
# | _| \__ \ | | |
# |_| |_|___/_| |_|
{%@@ if not tmux @@%}
set TMUX 1
{%@@ endif @@%}
if test -z "$TMUX" -a -n "$DISPLAY" -a -z "$GNOME_TERMINAL_SCREEN"
and not string match -qr kitty "$TERM"
and status is-interactive