diff --git a/home/common/default.nix b/home/common/default.nix index 3cd08e0..a362e5b 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -12,6 +12,7 @@ ./nvim.nix ./scripts.nix ./ssh.nix + ./tmux.nix ./utils.nix ./vcs.nix ./web.nix diff --git a/home/common/ghostty.nix b/home/common/ghostty.nix index 2d3efcf..c146c55 100644 --- a/home/common/ghostty.nix +++ b/home/common/ghostty.nix @@ -57,6 +57,15 @@ in "alt+shift+v=paste_from_clipboard" "ctrl+tab=goto_split:previous" "alt+enter=toggle_fullscreen" + "alt+one=unbind" + "alt+two=unbind" + "alt+three=unbind" + "alt+four=unbind" + "alt+five=unbind" + "alt+six=unbind" + "alt+seven=unbind" + "alt+eight=unbind" + "alt+nine=unbind" ]; }; }; diff --git a/home/common/tmux.nix b/home/common/tmux.nix new file mode 100644 index 0000000..cb7a234 --- /dev/null +++ b/home/common/tmux.nix @@ -0,0 +1,43 @@ +{ ... }: +{ + programs.tmux = { + enable = true; + baseIndex = 1; + clock24 = true; + escapeTime = 10; + mouse = true; + shortcut = "o"; + extraConfig = '' + set -g allow-passthrough on + set -g display-panes-time 3000 + set -g history-limit 10000 + set -g status off + setw -g alternate-screen on + setw -g automatic-rename off + bind -n M-1 select-window -t 42 + bind -n M-2 select-window -t 2 + bind -n M-3 select-window -t 3 + bind -n M-4 select-window -t 4 + bind -n M-5 select-window -t 5 + bind -n M-6 select-window -t 6 + bind -n M-7 select-window -t 7 + bind -n M-8 select-window -t 8 + bind -n M-9 select-window -t 9 + bind -n M-0 select-window -t 10 + bind -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 1 scroll-up + bind -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 1 scroll-down + bind C-s set-option -g status + bind K confirm kill-server + new -s0 -n 1 + new-window -n 2 + new-window -n 3 + new-window -n 4 + new-window -n 5 + new-window -n 6 + new-window -n 7 + new-window -n 8 + new-window -n 9 + new-window -n 0 + ''; + }; +}