From 17f292855d05139ba8341a643f3e1ddb7c3860d7 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 12 Dec 2023 17:31:16 +0100 Subject: [PATCH] minor changes, continuing tmux setup --- .config/tmux/tmux-fzf-url | 1 + .config/tmux/tmux.conf | 60 +++++++++++++------------- .local/share/virtualenv/postactivate | 3 ++ .local/share/virtualenv/postdeactivate | 3 ++ .local/src/dwm | 2 +- 5 files changed, 38 insertions(+), 31 deletions(-) create mode 160000 .config/tmux/tmux-fzf-url create mode 100644 .local/share/virtualenv/postactivate create mode 100644 .local/share/virtualenv/postdeactivate diff --git a/.config/tmux/tmux-fzf-url b/.config/tmux/tmux-fzf-url new file mode 160000 index 000000000..5ad2fe23d --- /dev/null +++ b/.config/tmux/tmux-fzf-url @@ -0,0 +1 @@ +Subproject commit 5ad2fe23dbf46976a7e6323fda7cf28dc7adac7a diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index a04b5ce60..cad7742b2 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -1,54 +1,45 @@ -yank="xsel -i --clipboard" - # GENERAL SETTINGS -set -g history-limit 20000 +set -g history-limit 5000 set -g buffer-limit 20 set -sg escape-time 0 set -g display-time 1500 set -g remain-on-exit off set -g repeat-time 300 -setw -g allow-rename off -setw -g automatic-rename off -setw -g aggressive-resize on -set -g prefix C-a +setw -g allow-rename on +setw -g automatic-rename 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 setw -g mode-keys vi -set -g visual-activity 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 ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # STATUS BAR SETTINGS -black="color0" -red="color1" -green="color2" -yellow="color3" -blue="color4" -purple="color5" -cyan="color6" -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 mode-style "fg=default,bg=blue" +set -g message-style "fg=green,bg=black" +set -g status-style "fg=gray,bg=black" +setw -g window-status-current-style "fg=black,bold,bg=blue" +setw -g window-status-current-format " #I " +setw -g window-status-activity-style "fg=gray" +setw -g pane-active-border-style "fg=blue" set -g status on -set -g status-interval 5 +set -g status-interval 1 set -g status-position bottom set -g status-justify left set -g status-right-length 100 +# CLIPBOARD CMD +yank="xsel -i --clipboard" + # BINDINGS unbind 'C-b' unbind '$' @@ -75,6 +66,12 @@ unbind 'M-Down' unbind 'M-Right' 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 'r' command-prompt -I "#{window_name}" "rename-window '%%'" bind 'R' command-prompt -I "#{session_name}" "rename-session '%%'" @@ -123,3 +120,6 @@ bind -T off F12 \ set -u prefix \;\ set -u key-table \;\ refresh-client -S + +# PLUGINS +run $XDG_CONFIG_HOME/tmux/tmux-fzf-url/fzf-url.tmux diff --git a/.local/share/virtualenv/postactivate b/.local/share/virtualenv/postactivate new file mode 100644 index 000000000..eed004925 --- /dev/null +++ b/.local/share/virtualenv/postactivate @@ -0,0 +1,3 @@ +#!/bin/zsh +# This hook is sourced after every virtualenv is activated. +basename $VIRTUALENV > /tmp/virtualenv-$$ diff --git a/.local/share/virtualenv/postdeactivate b/.local/share/virtualenv/postdeactivate new file mode 100644 index 000000000..d9e3fb541 --- /dev/null +++ b/.local/share/virtualenv/postdeactivate @@ -0,0 +1,3 @@ +#!/bin/zsh +# This hook is sourced after every virtualenv is deactivated. +rm /tmp/virtualenv-$$ diff --git a/.local/src/dwm b/.local/src/dwm index afcdaad10..d6a73d2ce 160000 --- a/.local/src/dwm +++ b/.local/src/dwm @@ -1 +1 @@ -Subproject commit afcdaad101a72b7f76969fe1a3d606d31706cc23 +Subproject commit d6a73d2ced0f9c58c1dff6d09149e63bbf71da37