Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
1887 views
Change tmux local time
I'm working on a Linux server who is in a different time zone than me. How can I make tmux display, in the status bar, my local time, instead of the server local time (without messing up the server time)? For info, I'm using tmux 3.1
I'm working on a Linux server who is in a different time zone than me. How can I make tmux display, in the status bar, my local time, instead of the server local time (without messing up the server time)? For info, I'm using tmux 3.1
Phantom (483 rep)
Mar 10, 2021, 08:37 AM • Last activity: Aug 5, 2025, 04:08 PM
4 votes
4 answers
2341 views
How can I attach to the the first unattached tmux session, or create a new session if there are no unattached sessions?
How can I attach to the the first tmux session **that has no attached clients** or, if there are no unattached sessions, create a new session and attach to that? (The use case is for a command for my terminal emulator to run when opening a new terminal window. I don't want it to create a new session...
How can I attach to the the first tmux session **that has no attached clients** or, if there are no unattached sessions, create a new session and attach to that? (The use case is for a command for my terminal emulator to run when opening a new terminal window. I don't want it to create a new session each time I open a window, if there are detached sessions lying around. Nor do I want it to re-attach to the same named session every time, if there's already a window attached to that session. I want it to recycle existing unattached sessions but create new sessions when there are none unattached.)
Sean Hammond (151 rep)
Jul 8, 2019, 09:39 PM • Last activity: Jul 29, 2025, 03:21 PM
0 votes
1 answers
2115 views
How can I configure tmux's copy-mode-vi so that the m key moves to the end of line (equivalent to $)
The QA [how to set shortcut for 'copy mode'?](https://unix.stackexchange.com/questions/450184/in-tmux-how-to-set-shortcut-for-copy-mode) explains how to set a shortcut to tmux copy mode. My question is different, I want to change a shortcut within copy mode, in particular `copy-mode-vi`. This is par...
The QA [how to set shortcut for 'copy mode'?](https://unix.stackexchange.com/questions/450184/in-tmux-how-to-set-shortcut-for-copy-mode) explains how to set a shortcut to tmux copy mode. My question is different, I want to change a shortcut within copy mode, in particular copy-mode-vi. This is part of my ~/.tmux.conf where I have set up copy mode: # Copy paste in tmux based on # https://www.rushiagr.com/blog/2016/06/16/everything-you-need-to-know-about-tmux-copy-pasting-ubuntu/ bind P paste-buffer bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-selection bind-key -T copy-mode-vi r send-keys -X rectangle-toggle # Also copy to system clipboard bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i' # map copy mode to ctrl+alt+c bind-key -n 'C-M-c' copy-mode # map paste buffer to ctrl+alt+v bind-key -n 'C-M-v' paste-buffer I have my vim normal mode $ mapped to the m key (I use an azerty keyboard). How can I configure tmux's copy-mode-vi in a similar way so that the m moves to the end of line (i.e. $).
Paul Rougieux (231 rep)
May 20, 2020, 12:01 PM • Last activity: Jul 27, 2025, 07:03 AM
2 votes
1 answers
2810 views
Tmux horizontal split isn't working, instead it brings up a weird menu
So I use ctrl + a (bound to a instead of b), and I try to ctrl + a and release then type in SHIFT + ' which is " so ctrl + a + " like the horizontal split should in theory work. When I do that I get a weird menu (I'm not sure what this menu is, why it pops up, I'm trying to figure out how to correct...
So I use ctrl + a (bound to a instead of b), and I try to ctrl + a and release then type in SHIFT + ' which is " so ctrl + a + " like the horizontal split should in theory work. When I do that I get a weird menu (I'm not sure what this menu is, why it pops up, I'm trying to figure out how to correctly get the horizontal split to work) TMux
ES-Legacy (21 rep)
Feb 18, 2022, 04:50 PM • Last activity: Jul 26, 2025, 06:07 AM
15 votes
2 answers
6765 views
What allows bash to autocomplete tmux "sub-commands"?
I'm trying to replicate some useful features from my work PC at home. At work, `bash` will helpfully autocomplete `tmux` "sub-commands": e.g. I type "`tmux new-s `" and bash autocompletes that to "`tmux new-session`" (I hope "sub-command" is the right term). **This doesn't happen on my home PC -- wh...
I'm trying to replicate some useful features from my work PC at home. At work, bash will helpfully autocomplete tmux "sub-commands": e.g. I type "tmux new-s" and bash autocompletes that to "tmux new-session" (I hope "sub-command" is the right term). **This doesn't happen on my home PC -- what can I do to set this up on my home PC?** I've looked around online and found some references to auto-complete *within tmux*, e.g. to auto-complete commands like move-window -- but that's not what I'm looking for. I also found reference to a feature called "bash complete" -- but on my work PC, I don't find any reference to tmux in my ~/.bash_completion file or my /etc/bash_completion.d/ directory. **Can someone please explain either where/how else my work PC might have set up its tmux "sub-command" autocompletion (so that I can refer/learn from a working example), or how I can/should set this up?** Interesting side-note: both my work and home PCs autocomplete git "sub-commands"; e.g. typing "git clo" autocompletes to "git clone". I didn't do anything specific to set that up -- for both git and tmux, all I did as far as setup was "sudo apt install git" and "sudo apt install tmux", respectively.
StoneThrow (1937 rep)
Aug 14, 2020, 07:01 PM • Last activity: Jul 16, 2025, 11:06 PM
23 votes
2 answers
20957 views
How can I kill tmux windows from the window list?
When I press Ctrl + b , W , tmux shows the list of all current windows and their panes. How can I kill a window and its panes from within this list view?
When I press Ctrl+b, W, tmux shows the list of all current windows and their panes. How can I kill a window and its panes from within this list view?
danijar (1493 rep)
Dec 14, 2018, 05:15 PM • Last activity: Jul 9, 2025, 09:27 AM
0 votes
1 answers
1908 views
terminal in Tmux is 256color but vim isn't
Recently I installed tmux on my Ubuntu 16.04. The terminal screen in `tmux` shows 256 color correctly however when I opened `vim` within `tmux`, the color was different from what it showed when it was run directly on the terminal. I tried to add set -g default-terminal "screen-256color" in my `.tmux...
Recently I installed tmux on my Ubuntu 16.04. The terminal screen in tmux shows 256 color correctly however when I opened vim within tmux, the color was different from what it showed when it was run directly on the terminal. I tried to add set -g default-terminal "screen-256color" in my .tmux.conf file but the problem still exists. * my terminal screen in tmux: ![Terminal screen in tmux](https://i.sstatic.net/Dx97I.png) * vim run directly on the terminal: ![vim run directly on the terminal](https://i.sstatic.net/voz1l.png) * vim run within tmux: ![vim run within tmux](https://i.sstatic.net/UDNPr.png) The output of echo $TERM; tput colors; tput longname * outside tmux:
xterm-256color
256
xterm
* with 256 colors inside tmux:
screen-256color
256
GUN Screen with 256 colors
Dyckia (101 rep)
May 24, 2018, 09:59 PM • Last activity: Jul 6, 2025, 03:05 AM
28 votes
1 answers
55071 views
True reloading of tmux config?
According to the man page, if I run this command: tmux source-file ~/.tmux.conf tmux is going to execute the commands in ~/.tmux.conf. However if, for example, I add a key binding to tmux.conf, and later remove it, the key binding stays, even if I source the file (which is logical, since there's no...
According to the man page, if I run this command: tmux source-file ~/.tmux.conf tmux is going to execute the commands in ~/.tmux.conf. However if, for example, I add a key binding to tmux.conf, and later remove it, the key binding stays, even if I source the file (which is logical, since there's no actual command to execute for that binding). So I'm wondering, before sourcing the config, if there a way to somehow clear tmux's internal state (all binding, settings, etc.) so that it starts with the default one?
laurent (2068 rep)
Jun 26, 2017, 10:15 AM • Last activity: Jul 3, 2025, 07:02 PM
430 votes
11 answers
231734 views
Write all tmux scrollback to a file
How can I write all the scrollback in a tmux session to a file? `capture-pane` can grab the current screen, but not the entire scrollback.
How can I write all the scrollback in a tmux session to a file? capture-pane can grab the current screen, but not the entire scrollback.
David Wolever (5184 rep)
Dec 10, 2011, 08:29 PM • Last activity: Jun 26, 2025, 12:31 PM
9 votes
1 answers
4732 views
How to attach to a tmux session after deleting it's session file?
`tmux` keeps track of active sessions in a file, on my system this is in `/tmp/tmux-1000/default`. Recently I manually cleared everything in the `/tmp` directory, removing this session file. Normally, you can use `tmux attach` to reattach to a session. Active sessions can be listed using `tmux ls`....
tmux keeps track of active sessions in a file, on my system this is in /tmp/tmux-1000/default. Recently I manually cleared everything in the /tmp directory, removing this session file. Normally, you can use tmux attach to reattach to a session. Active sessions can be listed using tmux ls. Because this file is gone, tmux doesn't know about any active sessions: $ tmux attach no sessions $ tmux ls error connecting to /tmp/tmux-1000/default (No such file or directory) Using top I can verify tmux is still running, along with the applications I had opened in that session. How can I reattach to this session, after I've removed the session file?
Tim Visee (445 rep)
Jan 24, 2019, 01:21 PM • Last activity: Jun 24, 2025, 09:28 AM
0 votes
1 answers
2400 views
Tmux - Arrow keys return raw data/non-escaped caracters ^[[A ^[[B ^[[D ^[[C
I just updated to Debian/Linux 9 (Stretch) and am in the process of setting everything up. So far I've only installed vim and tmux. My problem is that when I use the arrow keys, they return raw data/non escaped characters. - UP arrow returns: ^[[A - DOWN arrow returns: ^[[B - LEFT arrow returns: ^[[...
I just updated to Debian/Linux 9 (Stretch) and am in the process of setting everything up. So far I've only installed vim and tmux. My problem is that when I use the arrow keys, they return raw data/non escaped characters. - UP arrow returns: ^[[A - DOWN arrow returns: ^[[B - LEFT arrow returns: ^[[D - RIGHT arrow returns: ^[[C I am not able to go left or right on a line, or use up and down arrows to scroll through my previous commands/bash history ANYTIME I use tmux for ANYTHING. My .bashrc file. # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' #alias grep='grep --color=auto' #alias fgrep='fgrep --color=auto' #alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases #alias ll='ls -l' #alias la='ls -A' #alias l='ls -CF' # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi My .tmux.conf file. assume-paste-time 1 base-index 0 bell-action any bell-on-alert off default-command "" default-shell "/bin/sh" destroy-unattached off detach-on-destroy on display-panes-active-colour red display-panes-colour blue display-panes-time 1000 display-time 750 history-limit 2000 key-table "root" lock-after-time 0 lock-command "lock -np" message-command-style fg=yellow,bg=black message-style fg=black,bg=yellow mouse off prefix C-b prefix2 None renumber-windows off repeat-time 500 set-remain-on-exit off set-titles off set-titles-string "#S:#I:#W - "#T" #{session_alerts}" status on status-interval 15 status-justify left status-keys emacs status-left "[#S] " status-left-length 10 status-left-style default status-position bottom status-right " "#{=21:pane_title}" %H:%M %d-%b-%y" status-right-length 40 status-right-style default status-style fg=black,bg=green update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY" visual-activity off visual-bell off visual-silence off word-separators " -_@" ## 11.12.2017 - http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ ## # remap prefix from 'C-b' to 'C-a' unbind C-b set-option -g prefix C-a bind-key C-a send-prefix # split panes using | and - bind | split-window -h bind - split-window -v unbind '"' unbind % # switch panes using Alt-arrow without prefix bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # up/down command history set -g status-keys vi bind-key -t vi-edit Up history-up bind-key -t vi-edit Down history-down ############################ ### Start DESIGN CHANGES ### ############################ # panes set -g pane-border-fg black set -g pane-active-border-fg brightred ## Status bar design # status line set -g status-justify left set -g status-bg default set -g status-fg colour12 set -g status-interval 2 # messaging set -g message-fg black set -g message-bg yellow set -g message-command-fg blue set -g message-command-bg black #window mode setw -g mode-bg colour6 setw -g mode-fg colour0 # window status setw -g window-status-format " #F#I:#W#F " setw -g window-status-current-format " #F#I:#W#F " setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W " setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W " setw -g window-status-current-bg colour0 setw -g window-status-current-fg colour11 setw -g window-status-current-attr dim setw -g window-status-bg green setw -g window-status-fg black setw -g window-status-attr reverse # Info on left (I don't have a session display for now) set -g status-left '' # loud or quiet? set-option -g visual-activity off set-option -g visual-bell off set-option -g visual-silence off set-window-option -g monitor-activity off set-option -g bell-action none set -g default-terminal "screen-256color" # The modes { setw -g clock-mode-colour colour135 setw -g mode-attr bold setw -g mode-fg colour196 setw -g mode-bg colour238 # } # The panes { set -g pane-border-bg colour235 set -g pane-border-fg colour238 set -g pane-active-border-bg colour236 set -g pane-active-border-fg colour51 # } # The statusbar { set -g status-position bottom set -g status-bg colour234 set -g status-fg colour137 set -g status-attr dim set -g status-left '' set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S ' set -g status-right-length 50 set -g status-left-length 20 setw -g window-status-current-fg colour81 setw -g window-status-current-bg colour238 setw -g window-status-current-attr bold setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' setw -g window-status-fg colour138 setw -g window-status-bg colour235 setw -g window-status-attr none setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' setw -g window-status-bell-attr bold setw -g window-status-bell-fg colour255 setw -g window-status-bell-bg colour1 # } # The messages { set -g message-attr bold set -g message-fg colour232 set -g message-bg colour166 # } ########################## ### End DESIGN CHANGES ### ##########################
CurlyMonkey (9 rep)
Nov 12, 2017, 08:10 AM • Last activity: Jun 22, 2025, 04:04 PM
1 votes
3 answers
55 views
Notify Ubuntu/Gnome using script that application is busy to prevent power off
When using "Power Off" action in Gnome if there are some GUI applications with unsaved changes (for example, text editor) there will be label "Some applications are busy or have unsaved work". I am looking for a way to set this "unsaved" status from command line. So I can integrate it into my workfl...
When using "Power Off" action in Gnome if there are some GUI applications with unsaved changes (for example, text editor) there will be label "Some applications are busy or have unsaved work". I am looking for a way to set this "unsaved" status from command line. So I can integrate it into my workflow when I'm using tmux/neovim, to not accidentally power off PC when I have some sessions opened.
anlar (4357 rep)
Nov 1, 2024, 08:50 AM • Last activity: Jun 21, 2025, 05:30 PM
0 votes
2 answers
34 views
Starting tmux from outside home directory does not source .bash_improvements
I'm running Ubuntu server (version 24.04.2 LTS). I'm quite happy with it. Sometimes I need longrunning processes, therefore I start them in a tmux session. But I have a small issue when I run tmux. In the .bashrc file, the .bash_improvements file is sources when $color_prompt is yes. This works, but...
I'm running Ubuntu server (version 24.04.2 LTS). I'm quite happy with it. Sometimes I need longrunning processes, therefore I start them in a tmux session. But I have a small issue when I run tmux. In the .bashrc file, the .bash_improvements file is sources when $color_prompt is yes. This works, but ONLY if I run tmux from within my home folder. if [ "$color_prompt" = yes ]; then source .bash_improvements else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt When I start tmux from a different directory, then I receive the following error: -bash: .bash_improvements: No such file or directory. I understand the error, because the .bash_improvements file is indeed not available in that directory. I also can fix it by changing the default .bashrc file, but that doesn't feel right. How do I fix this in a structured way?
Rogier Lommers (195 rep)
Jun 18, 2025, 06:04 AM • Last activity: Jun 18, 2025, 08:53 AM
4 votes
2 answers
2183 views
tmux status bar rightmost few chars disappear
From time to time I saw my status bar rightmost few chars disappear. For instance, the intended one 11:40 to be 11:4 My `.tmux.conf` is as the following: # Set status bar set -g status-bg black set -g status-fg white set -g status-left '#[fg=green]#S' set -g status-right '#[fg=yellow]#(uptime | egre...
From time to time I saw my status bar rightmost few chars disappear. For instance, the intended one 11:40 to be 11:4 My .tmux.conf is as the following: # Set status bar set -g status-bg black set -g status-fg white set -g status-left '#[fg=green]#S' set -g status-right '#[fg=yellow]#(uptime | egrep -o "[0-9]+ users?, +load.*"|perl -pe "s| averages?||"), %H:%M' set -g status-left-length 20 set -g status-right-length 40 Any idea? Thank you.
clwen (993 rep)
Feb 17, 2016, 10:42 AM • Last activity: Jun 18, 2025, 07:06 AM
0 votes
1 answers
2137 views
Select Tmux Window in Sessions List View
Is there a way to select a Tmux Window by the number listed in the preview while in Sessions List view (activated with: `C-b s`)? In other words, how do I switch to window 3 (circled in red) in this screenshot?: ![Tmux in Sessions List View](https://i.sstatic.net/aKoOT.jpg) I am aware that I can swi...
Is there a way to select a Tmux Window by the number listed in the preview while in Sessions List view (activated with: C-b s)? In other words, how do I switch to window 3 (circled in red) in this screenshot?: ![Tmux in Sessions List View](https://i.sstatic.net/aKoOT.jpg) I am aware that I can switch windows directly (without going into Sessions List view) with: C-b [1-0]. The issue with that is that I often forget where my windows are and am helped by having a preview of their contents. I am also aware that I can expand the windows in Sessions List view or else load the Window List view with: C-b w to see a list of all windows. The issue with that is that you have to spend time expanding the list of windows or (if you launch the Windows List view) you can only see a preview of one window at a time. Edit: I attempted TechLoom's solution but it didn't work for me (see Gif) Attempting TechLoom's solution
Charles-Alexandre Roy (1 rep)
Jan 7, 2023, 01:35 AM • Last activity: Jun 14, 2025, 05:06 PM
51 votes
7 answers
118290 views
How do I enable tmux mouse support?
I have put ``` set -g mouse on set -g mouse-select-pane on ``` in my .tmux.conf file and then I open tmux and create a new pane and I cant switch pane with mouse. is there something else I need to configure? I am using tmux 2.9 on Mac using zsh.
I have put
set -g mouse on 
set -g mouse-select-pane on
in my .tmux.conf file and then I open tmux and create a new pane and I cant switch pane with mouse. is there something else I need to configure? I am using tmux 2.9 on Mac using zsh.
Matthew Allen (619 rep)
May 2, 2019, 03:50 PM • Last activity: Jun 11, 2025, 11:02 PM
12 votes
4 answers
5002 views
Jump to last prompt in terminal (or tmux)
In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be applicable to any Unix terminals. A solution in Tmux would help as well.
In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be applicable to any Unix terminals. A solution in Tmux would help as well.
domi91c (401 rep)
Sep 1, 2015, 06:31 AM • Last activity: Jun 8, 2025, 11:25 PM
7 votes
2 answers
5746 views
tmux mouse scrolling without altering copy/paste?
I'm having difficulty finding an explanation for allowing the OS default copy/paste capabilities (i.e. highlight a portion of text and then use standard shortcut or right-click menu) and allow mouse scrolling at the same time. Mouse mode turns on tmux's own copy/paste system, but leaving it off remo...
I'm having difficulty finding an explanation for allowing the OS default copy/paste capabilities (i.e. highlight a portion of text and then use standard shortcut or right-click menu) and allow mouse scrolling at the same time. Mouse mode turns on tmux's own copy/paste system, but leaving it off removes the mouse scrolling. As I'm switching between an IDE, browser, and terminal with tmux I would like the controls to be consistent between all of them. Is there a way to have the standard OS copy/paste controls while also allowing the mouse to scroll in tmux? _(Note: I originally asked, but deleted, this question on SO. I decided it was more appropriate here.)_
Jenny Shoars (213 rep)
Sep 25, 2016, 08:05 PM • Last activity: Jun 7, 2025, 02:49 PM
1 votes
1 answers
2929 views
tmux, urxvt, and copy-and-paste woes…
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school. I did get [tmux-yank][1] almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit `y`… This is a lot of key pr...
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school. I did get tmux-yank almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit y… This is a lot of key presses. Anyone knows how I can get this simple behaviour working better? Here are some versions: ; tmux -V tmux 2.2 ; urxvt256c-ml --version urxvt: "version": unknown or malformed option. rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31 options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm […] ; awesome --version awesome v3.5.9 (Mighty Ravendark) • Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@) • Compiled against Lua 5.3.2 (running with Lua 5.3) • D-Bus support: ✔
Sardathrion - against SE abuse (4493 rep)
Sep 23, 2016, 07:51 AM • Last activity: Jun 6, 2025, 08:02 AM
4 votes
2 answers
2017 views
How to use Ctrl+mouse click in tmux?
Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt , Cmd ) + middle click to paste the system's clipboard. This is what I have tried (failed) so far: bin...
Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt, Cmd) + middle click to paste the system's clipboard. This is what I have tried (failed) so far: bind -T root M+MouseDown2Pane run -b "pbpaste | tmux load-buffer -; tmux paste-buffer"
dragonxlwang (783 rep)
Nov 15, 2015, 07:46 PM • Last activity: Jun 3, 2025, 03:03 AM
Showing page 1 of 20 total questions