From 082cb3a8847a57d04605f52c36951b7cae0b3868 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Thu, 21 May 2026 15:54:05 -0700 Subject: Add some missing prometheus configuration --- home/trent/common/core/tmux/default.nix | 6 ++++++ home/trent/common/core/tmux/tmux.conf | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 home/trent/common/core/tmux/default.nix create mode 100644 home/trent/common/core/tmux/tmux.conf (limited to 'home/trent/common/core/tmux') diff --git a/home/trent/common/core/tmux/default.nix b/home/trent/common/core/tmux/default.nix new file mode 100644 index 0000000..e7873f8 --- /dev/null +++ b/home/trent/common/core/tmux/default.nix @@ -0,0 +1,6 @@ +{ + programs.tmux = { + enable = true; + extraConfig = (builtins.readFile ./tmux.conf); + }; +} diff --git a/home/trent/common/core/tmux/tmux.conf b/home/trent/common/core/tmux/tmux.conf new file mode 100644 index 0000000..479a896 --- /dev/null +++ b/home/trent/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 -- cgit v1.3.1