summaryrefslogtreecommitdiffstatshomepage
path: root/tmux
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-05-05 19:11:59 -0500
committerToby Vincent <tobyv13@gmail.com>2022-05-05 19:11:59 -0500
commita92f711ff6ca0c0bb86f535afefd6452a30c99f7 (patch)
tree417fd61333d2f5b6ca10aa4abe49507d77d303fb /tmux
parent46f4a60f42990244dd9a9c49abe568112c34e0cb (diff)
feat: improved keybinds and add timeout clock
Diffstat (limited to 'tmux')
-rw-r--r--tmux/.config/tmux/tmux.conf26
1 files changed, 19 insertions, 7 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
index 343134e..8983270 100644
--- a/tmux/.config/tmux/tmux.conf
+++ b/tmux/.config/tmux/tmux.conf
@@ -1,16 +1,28 @@
-set -g mouse on
-set -g base-index 1
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty:Tc"
set -ga terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -ga terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
-set -g detach-on-destroy off
+
+set -g mouse on
set -g prefix C-a
-bind-key f run-shell ~/.local/bin/tmux-sessionizer
-bind-key F run-shell ~/.local/bin/tmux-sessions
-bind-key e new-window -Sn nvim nvim
-bind-key s display-popup -E spt
+set -g base-index 1
+set -g pane-base-index 1
+
+set -g detach-on-destroy off
+set -g lock-after-time 300
+set -g lock-command "tmux clock-mode"
+
+bind-key -N "Open new window" t new-window
+bind-key -N "Show a clock" T clock-mode
+bind-key -N "Open project in new session" f run-shell ~/.local/bin/tmux-sessionizer
+bind-key -N "Switch between sessions" F run-shell ~/.local/bin/tmux-sessions
+bind-key -N "Open neovim" e new-window -S nvim
+bind-key -N "Open neovim in current directory" E new-window -S nvim .
+bind-key -N "Open spotify in popup" s display-popup -w 75% -h 75% -E spt
+bind-key -N "Open spotify in new window" S new-window -S spt
+bind-key -N "Open spotify in popup" g display-popup -w 75% -h 75% -E lazygit
+bind-key -N "Open lazygit in new window" G new-window -S lazygit
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'