summaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-05-30 18:59:27 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-05-30 18:59:27 +0300
commit9d5bcf2545f2c6bd2a8354c7bbcbde526b67f741 (patch)
tree067e257e3c15963a4db76557257c48560425af96 /tmux
parentc269e8047dd281d09533d1f676a4ac5c9715bc23 (diff)
Auto-Lock-Screen works, tmux configured nicely and nvim configured as
well as a small change in my X11 resources and Kvantum configuration for the Arc theme. Changes to be committed: modified: Kvantum/KvArcDark#/KvArcDark#.kvconfig modified: X11/Xresources modified: lock modified: nvim/colors/hybrid.vim modified: nvim/init.vim modified: tmux/tmux.conf
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf47
1 files changed, 23 insertions, 24 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index b77c33c..81ed9b8 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -22,17 +22,15 @@ run '~/.tmux/plugins/tpm/tpm'
set -g mouse on
-#set-option -sa terminal-overrides ",xterm*:Tc"
+unbind C-b
+set -g prefix C-Space
+bind C-Space send-prefix
-#unbind C-b
-#set -g prefix C-Space
-#bind C-Space send-prefix
-
-## Vim style pane selection
-#bind h select-pane -L
-#bind j select-pane -D
-#bind k select-pane -U
-#bind l select-pane -R
+# Vim style pane selection
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
## Start windows and panes at 1, not 0
set -g base-index 1
@@ -40,27 +38,28 @@ set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
-## Use Alt-arrow keys without prefix key to switch panes
-#bind -n M-Left select-pane -L
-#bind -n M-Right select-pane -R
-#bind -n M-Up select-pane -U
-#bind -n M-Down select-pane -D
+## Use Ctrl + arrow keys without prefix key to switch panes
+bind -n C-Left select-pane -L
+bind -n C-Right select-pane -R
+bind -n C-Up select-pane -U
+bind -n C-Down select-pane -D
## Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
-## Shift Alt vim keys to switch windows
-#bind -n M-H previous-window
-#bind -n M-L next-window
+## Shift Ctrl vim keys to switch windows
+bind -n C-H previous-window
+bind -n C-L next-window
## set vi-mode
-#set-window-option -g mode-keys vi
+set-window-option -g mode-keys vi
## keybindings
-#bind-key -T copy-mode-vi v send-keys -X begin-selection
-#bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
-#bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
+bind-key -T copy-mode-vi v send-keys -X begin-selection
+bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
+bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
-#bind '"' split-window -v -c "#{pane_current_path}"
-#bind % split-window -h -c "#{pane_current_path}"
+## open new windows in the current directory
+bind '"' split-window -v -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"