diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-04-18 19:28:29 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-04-18 19:28:29 -0700 |
commit | 0e741291f1ea350c398302e4b212a28f5c77840a (patch) | |
tree | fe86873dcb1168ba3e3644d7e300f6709d5b2503 /home/root/common/core/tmux | |
parent | 05c88df33274373391b25fc73a1c965a74fb8d80 (diff) | |
download | nix-0e741291f1ea350c398302e4b212a28f5c77840a.tar nix-0e741291f1ea350c398302e4b212a28f5c77840a.tar.gz nix-0e741291f1ea350c398302e4b212a28f5c77840a.tar.bz2 nix-0e741291f1ea350c398302e4b212a28f5c77840a.tar.lz nix-0e741291f1ea350c398302e4b212a28f5c77840a.tar.xz nix-0e741291f1ea350c398302e4b212a28f5c77840a.tar.zst nix-0e741291f1ea350c398302e4b212a28f5c77840a.zip |
Add root to home manager
Diffstat (limited to 'home/root/common/core/tmux')
-rw-r--r-- | home/root/common/core/tmux/default.nix | 6 | ||||
-rw-r--r-- | home/root/common/core/tmux/tmux.conf | 34 |
2 files changed, 40 insertions, 0 deletions
diff --git a/home/root/common/core/tmux/default.nix b/home/root/common/core/tmux/default.nix new file mode 100644 index 0000000..e7873f8 --- /dev/null +++ b/home/root/common/core/tmux/default.nix @@ -0,0 +1,6 @@ +{ + programs.tmux = { + enable = true; + extraConfig = (builtins.readFile ./tmux.conf); + }; +} diff --git a/home/root/common/core/tmux/tmux.conf b/home/root/common/core/tmux/tmux.conf new file mode 100644 index 0000000..ae43d03 --- /dev/null +++ b/home/root/common/core/tmux/tmux.conf @@ -0,0 +1,34 @@ +#set-option -ga terminal-overrides ",st-256color:Tc" +set -as terminal-features ",foot*:RGB" +set -as terminal-features ",st-256color:RGB" +set -ga monitor-bell on +set -g history-limit 100000 +set -g bell-action any +#set -g bell-on-alert on + +set -s escape-time 0 + +setw -g aggressive-resize on +setw -g wrap-search off + +bind-key a send-prefix +bind-key k kill-session +bind-key H pipe-pane -o 'cat >> ~/.tmux.log.#h-#S-#I-#P' + +#bind-key m \ +# set -g mouse on \;\ +# display 'Mouse: ON' +#bind M \ +# set -g mouse off \;\ +# display 'Mouse: OFF' + +# vim-like copypaste mode +set-window-option -g mode-keys vi +bind-key -T copy-mode-vi v send -X begin-selection +bind-key -T copy-mode-vi y send -X copy-pipe "xclip -selection clipboard" +bind-key -T copy-mode-vi C-v send -X rectangle-toggle +bind-key P run "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" + +# don't exit copy mode after selection +#set -s mouse on +#bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection -x |