Skip to content

Commit 58ce5c2

Browse files
committed
tmux: fix copy in clipboard
1 parent cfdddfe commit 58ce5c2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tmux/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ in {
99
};
1010

1111
config = mkIf cfg.enable {
12+
home.packages = [
13+
pkgs.xclip
14+
];
15+
1216
programs.tmux = {
1317
enable = true;
1418
baseIndex = 1;

tmux/tmux.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ unbind c ; bind c new-window -c "#{pane_current_path}"
3737
unbind % ; bind % split-window -h -c "#{pane_current_path}"
3838
unbind '"' ; bind '"' split-window -v -c "#{pane_current_path}"
3939

40+
# Disable set-clipboard since it does not work with Termite. Use copy-command with xclip instead.
41+
set -s set-clipboard off
42+
set -s copy-command 'xclip -i -selection clipboard'
43+
4044
# Status bar
4145
set-option -g status on # turn the status bar on
4246
set-option -gq status-utf8 on # set utf-8 for the status bar

0 commit comments

Comments
 (0)