Skip to main content

All Questions

Tagged with
-2 votes
1 answer
64 views

Cannot create 2 columns with TMUX

This seems create a bunch of rows with a single column. I am trying to create 2 columns, and then all the rows needed. #!/usr/bin/env bash ( unset TMUX export session_uuid="$(uuidgen)" ...
Alexander Mills's user avatar
0 votes
0 answers
53 views

tmux not starting a python script from cron

I am having issues with cron (Debian bullseye - Raspberry Pi 4) not starting a tmux session from a bash script I gave it to run on @reboot. Here is the problematic fragment of my bash script: ...
Kuba0040's user avatar
0 votes
1 answer
59 views

how to source tmux session_id into tmux

I have this: export session_uuid="$(uuidgen)" remove_session() { tmux kill-session -t "$session_uuid" } export -f remove_session trap remove_session TERM INT SIGINT SIGTERM ...
Alexander Mills's user avatar
0 votes
0 answers
70 views

Tmux set-hook session-attached doesn't work with choose-tree mode

I've sat a hook in .tmux.conf. The assumption was it should reconnect last SSH session after tmux session was attached. The problem is it works only when attaching session using tmux a -t session_name....
XorOrNor's user avatar
  • 101
1 vote
1 answer
225 views

tmux new-window command plus argument including spaces - bash var

I'm trying to execute a command on a new tmux window. A simple console/terminal pdf reader. The script needs argument, a PDF file, the file name may include spaces. I've tried this: #!/bin/bash tmux ...
Krackout's user avatar
  • 2,742
1 vote
1 answer
59 views

How to stop background jobs in subshell with infinite loop?

In my tmux session over SSH, I ran: ( \ ( while true; do echo subsubshell1 && sleep 5; done ) & \ ( while true; do echo subsubshell2 && sleep 10; done ) & \ wait; \ ) ...
wjwrpoyob's user avatar
  • 438
0 votes
1 answer
167 views

can I configure tmux with a single key shortcut for ":kill-session"?

I'm using tmux in an application (I have a script that automatically loads scripts in each split) and I'm wondering if there's a way to configure a single shortcut like ctrl-q (I realize that ctrl-c ...
MisdeBug's user avatar
1 vote
1 answer
90 views

tmux: combining xterm title & tmux provided title

I have a trap on DEBUG signal in bash, to update title in Xterm __title() { COMMAND="$BASH_COMMAND" case "$COMMAND" in history* | autojump*) COMMAND=&...
andreoss's user avatar
  • 120
0 votes
0 answers
153 views

tmux continues using variables that are no longer defined in .bashrc

I am trying to reset my .bashrc, because it has become bloated and it takes long to start a console. For this I did the following: cp /etc/skel/.bashrc ~/.bashrc This worked for the normal login bash ...
packoman's user avatar
  • 151
0 votes
1 answer
92 views

How to use trap with child tmux process?

I am looking to execute a function when a child tmux process is terminated. Consider the following script: #!/bin/bash function foo { echo "foo exit" } trap foo SIGHUP tmux this script ...
Foo's user avatar
  • 232
0 votes
0 answers
85 views

Tmux Banner Issues

Im getting frustrated... I definitely think this shouldn't be so hard. But here I am hours later and no real solution. All I want is to display a text banner in top pane. The bottom pane will be a ...
Amnite's user avatar
  • 1
1 vote
1 answer
3k views

Can't detach from tmux session while process is running

I am logging in to a remote linux machine via ssh, and then I start a batch process in tmux. However, I can't detach from the current tmux session using Ctrl + b + d. So, for starting another tmux ...
Roland Hohensinn's user avatar
-2 votes
1 answer
126 views

TMUX weird splitting mechanism

I'm not sure why TMUX isn't working properly or why can't it just work out of the box. Modern terminal clients these days have cmd+d and cmd-D for splitting. I have to press a series of keys, which is ...
Origami's user avatar
  • 21
0 votes
1 answer
540 views

How to remove all key bindings from tmux session?

I am building a GUI that uses tmux and I want to ensure that all existing bindings are removed when the program is started. I tried using: $ tmux unbind-key -a since the documentation states: If -a ...
Foo's user avatar
  • 232
0 votes
1 answer
147 views

How to close all tmux windows when one window is detached?

I have the following code: #!/bin/bash tmux new-session \; \ send-keys 'ls' C-m \; \ split-window -h \; \ send-keys 'ls' C-m \; when I run this script, I get two windows. When I want to close ...
Foo's user avatar
  • 232

15 30 50 per page
1
2 3 4 5
10