1
0
Fork 0

minor changes, continuing tmux setup

This commit is contained in:
Luca Bilke 2023-12-12 17:31:16 +01:00
parent 814a703752
commit 133bb3aa2b
5 changed files with 38 additions and 31 deletions

@ -0,0 +1 @@
Subproject commit 5ad2fe23dbf46976a7e6323fda7cf28dc7adac7a

View File

@ -1,54 +1,45 @@
yank="xsel -i --clipboard"
# GENERAL SETTINGS # GENERAL SETTINGS
set -g history-limit 20000 set -g history-limit 5000
set -g buffer-limit 20 set -g buffer-limit 20
set -sg escape-time 0 set -sg escape-time 0
set -g display-time 1500 set -g display-time 1500
set -g remain-on-exit off set -g remain-on-exit off
set -g repeat-time 300 set -g repeat-time 300
setw -g allow-rename off setw -g allow-rename on
setw -g automatic-rename off setw -g automatic-rename on
setw -g aggressive-resize on
set -g prefix C-a
set -g set-titles on set -g set-titles on
set -g set-titles-string "#I:#W" set -g set-titles-string '#T'
setw -g aggressive-resize on
set -g prefix 'C-a'
set -g mouse off set -g mouse off
setw -g mode-keys vi setw -g mode-keys vi
set -g visual-activity on
set -g destroy-unattached on set -g destroy-unattached on
setw -g monitor-activity on
set -g visual-activity on
set-option -g default-shell /bin/zsh
# Undercurl compatibility # UNDERCURL COMPATIBILITY
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# STATUS BAR SETTINGS # STATUS BAR SETTINGS
black="color0" set -g mode-style "fg=default,bg=blue"
red="color1" set -g message-style "fg=green,bg=black"
green="color2" set -g status-style "fg=gray,bg=black"
yellow="color3" setw -g window-status-current-style "fg=black,bold,bg=blue"
blue="color4" setw -g window-status-current-format " #I "
purple="color5" setw -g window-status-activity-style "fg=gray"
cyan="color6" setw -g pane-active-border-style "fg=blue"
gray="color7"
darkgray="color8"
white="color15"
set -g mode-style "fg=default,bg=$blue"
set -g message-style "fg=$blue,bg=$black"
set -g status-style "fg=$gray,bg=$black"
setw -g window-status-format " #I:#W "
setw -g window-status-current-style "fg=$black,bold,bg=$blue"
setw -g window-status-current-format " #I:#W# "
setw -g window-status-activity-style "fg=$gray"
setw -g pane-active-border-style "fg=$blue"
set -g status on set -g status on
set -g status-interval 5 set -g status-interval 1
set -g status-position bottom set -g status-position bottom
set -g status-justify left set -g status-justify left
set -g status-right-length 100 set -g status-right-length 100
# CLIPBOARD CMD
yank="xsel -i --clipboard"
# BINDINGS # BINDINGS
unbind 'C-b' unbind 'C-b'
unbind '$' unbind '$'
@ -75,6 +66,12 @@ unbind 'M-Down'
unbind 'M-Right' unbind 'M-Right'
unbind 'M-Left' unbind 'M-Left'
bind 'C-a' send-prefix
bind 'C-l' clear-history
bind 'h' select-pane -L
bind 'j' select-pane -D
bind 'k' select-pane -U
bind 'l' select-pane -R
bind 'C-r' source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Config reloaded" bind 'C-r' source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Config reloaded"
bind 'r' command-prompt -I "#{window_name}" "rename-window '%%'" bind 'r' command-prompt -I "#{window_name}" "rename-window '%%'"
bind 'R' command-prompt -I "#{session_name}" "rename-session '%%'" bind 'R' command-prompt -I "#{session_name}" "rename-session '%%'"
@ -123,3 +120,6 @@ bind -T off F12 \
set -u prefix \;\ set -u prefix \;\
set -u key-table \;\ set -u key-table \;\
refresh-client -S refresh-client -S
# PLUGINS
run $XDG_CONFIG_HOME/tmux/tmux-fzf-url/fzf-url.tmux

View File

@ -0,0 +1,3 @@
#!/bin/zsh
# This hook is sourced after every virtualenv is activated.
basename $VIRTUALENV > /tmp/virtualenv-$$

View File

@ -0,0 +1,3 @@
#!/bin/zsh
# This hook is sourced after every virtualenv is deactivated.
rm /tmp/virtualenv-$$

@ -1 +1 @@
Subproject commit afcdaad101a72b7f76969fe1a3d606d31706cc23 Subproject commit d6a73d2ced0f9c58c1dff6d09149e63bbf71da37