Running tmux commands after creating session
1995parham opened this issue · 0 comments
1995parham commented
I want to run a tmux command after the session creation. Using the following command in my tmux.conf:
set-hook -g after-new-session 'display-popup -w 80% -h 60% neofetch'
causes the following exception:
Traceback (most recent call last):
File "/usr/bin/tmuxp", line 8, in <module>
sys.exit(cli.cli())
File "/usr/lib/python3.10/site-packages/tmuxp/cli/__init__.py", line 134, in cli
command_load(
File "/usr/lib/python3.10/site-packages/tmuxp/cli/load.py", line 655, in command_load
load_workspace(
File "/usr/lib/python3.10/site-packages/tmuxp/cli/load.py", line 446, in load_workspace
_load_attached(builder, detached)
File "/usr/lib/python3.10/site-packages/tmuxp/cli/load.py", line 183, in _load_attached
builder.build()
File "/usr/lib/python3.10/site-packages/tmuxp/workspace/builder.py", line 217, in build
session = self.server.new_session(
File "/usr/lib/python3.10/site-packages/libtmux/server.py", line 605, in new_session
raise exc.LibTmuxException(proc.stderr)
libtmux.exc.LibTmuxException: ['no current client']
Is there any way to do this using tmuxp?