aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/tmux/tmux.conf29
1 files changed, 25 insertions, 4 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index e426db1..b93a0fd 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -245,13 +245,32 @@ set -g status-style fg=#50fa7b,bg=default
## Left
#set -g status-left ''
set -g status-left-length 60
-set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"
+#set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"
#bind o run-shell "tmux-toggle-option.sh set-option status-left on off"
#bind o set-option -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" \; display-message 'Status-left #{?status,off,on}'
#set set-option status-left
#bind o set-option status-left "#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" # toggle left-status script off
-bind o run-shell "if [[ `tmux show-options -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"; then set -g status-left "#[bg=50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" else set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]" fi
-bind C-o set-option status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]" # toggle left status script on
+#bind o run-shell "if [[ `tmux show-option -w status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]" ]]; then set -g status-left "#[bg=50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" else set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]" fi
+#bind C-o set-option status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]" # toggle left status script on
+#bind -T root o \
+# set-option status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]" \;\ # toggle left status script on
+#
+#bind -T off o \
+# set-option status-left "#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" \;\ # toggle left-status script off
+
+#bind Space if -F '#{==:#{@lastlayout},eh}' 'selectl even-vertical; set -w @lastlayout ev' 'selectl even-horizontal; set -w @lastlayout eh'
+
+#set -g status-left
+
+set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"
+#bind -Troot o set-g status-left "#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]"
+#bind -Tempty o set-g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"
+#set-hook -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"
+#bind o if -F '#{==:#{@set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]"}' 'set -g status-left "#[bg=#50fa7b,fg=black] ❐ #S #( ~/.config/tmux/left-status.sh ) #[fg=#50fa7b,bg=default]"'
+#set-hook -g after-select-layout "set -Fw @lastlayout '#{hook_argument_0}'"
+#bind o if -F '#{==:#{@lastlayout},even-horizontal}' 'selectl even-vertical' 'selectl even-horizontal'
+
+
#set -g status-left "#[fg=DeepSkyBlue1] ❐ #S #( ~/.config/tmux/left-status.sh )"
#set -g status-left "#[fg=black] ❐ #S #( ~/.config/tmux/left-status.sh )"
@@ -269,7 +288,9 @@ set -g status-right-length 60
#set -g status-right-length 140
#set -g status-right-style default
#set -ag status-right "#[fg=black] %H:%M %d-%m-%Y #H "
-set -ag status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black]#( ~/.config/tmux/right-status.sh ) %H:%M | %d-%b-%y "
+set -g status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black]#( ~/.config/tmux/right-status.sh ) %H:%M | %d-%b-%y "
+bind a run-shell ~/.config/tmux/tmux-toggle-option.sh
+
#set -g status-right "#(vmstat -SM 1 2 | awk 'END {print \"cpu:\"100-$15\"%\" \" mem:\"512-$4-$5-$6\"M\"}')#[default] %R"
#set -g status-right "#[fg=green] #22T | #(top -l 2 -FR -n 0 | egrep 'CPU|PhysMem' | awk 'FNR==3{print $8+$10}FNR==4{print $8}' ORS=%%/ | sed 's/..$//')/#(du -hs /var/vm | awk '{print $1}') | %a %b %d %Y %H:%M"
#set -ag status-right "#[fg=DeepSkyBlue1] #( ~/.config/tmux/right-status.sh ) %H:%M %d-%m-%Y #H "