This is my config files for tmux.
Last active
January 2, 2024 10:41
-
-
Save atsuyaw/13e6d6bc73227191d588374e772ccc22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -g status-left "#[fg=#aaaaaa,bg=#222222,bold] #H " | |
# #{?client_prefix,#[reverse],} #I #[default]#[fg=#aaaaaa,bg=#222222] " | |
set -g status-right "#[fg=#aaaaaa,bg=#222222] %Y-%m-%d %H:%M " | |
setw -g window-status-activity-style "underscore,fg=#71839b,bg=#131a24" | |
setw -g window-status-separator "" | |
setw -g window-status-style "NONE,fg=#aaaaaa,bg=#222222" | |
setw -g window-status-format "#[fg=#aaaaaa,bg=#222222]#[fg=#aaaaaa,bg=#222222] #I #W #F #[fg=#aaaaaa,bg=#222222]" | |
setw -g window-status-current-format "#[fg=#222222,bg=#aaaaaa]#{?client_prefix,#[reverse],}#[fg=#222222,bg=#aaaaaa,bold]#{?client_prefix,#[reverse],} #I #[default] #W #F #[fg=#aaaaaa,bg=#222222]" | |
# setw -g window-status-format "#[fg=#aeafb0,bg=#131a24] #S #W#F #[fg=#131a24,bg=#131a2400]" | |
# setw -g window-status-current-format "#[fg=#131a24,bg=#aeafb0] #S #W#F #[fg=#aeafb0,bg=#131a2400]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Nightfox colors for Tmux | |
# Style: nightfox | |
# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nightfox/nightfox_tmux.tmux | |
set -g mode-style "fg=#131a24,bg=#aeafb0" | |
set -g message-style "fg=#131a24,bg=#aeafb0" | |
set -g message-command-style "fg=#131a24,bg=#aeafb0" | |
set -g pane-border-style "fg=#aeafb0" | |
set -g pane-active-border-style "fg=#719cd6" | |
set -g status "on" | |
set -g status-justify "left" | |
set -g status-style "fg=#aeafb0,bg=#131a24" | |
set -g status-left-length "100" | |
set -g status-right-length "100" | |
set -g status-left-style NONE | |
set -g status-right-style NONE | |
set -g status-left "#[fg=#131a24,bg=#719cd6,bold] #S #[fg=#719cd6,bg=#131a24,nobold,nounderscore,noitalics]" | |
set -g status-right "#[fg=#131a24,bg=#131a24,nobold,nounderscore,noitalics]#[fg=#719cd6,bg=#131a24] #{prefix_highlight} #[fg=#aeafb0,bg=#131a24,nobold,nounderscore,noitalics]#[fg=#131a24,bg=#aeafb0] %Y-%m-%d %I:%M %p #[fg=#719cd6,bg=#aeafb0,nobold,nounderscore,noitalics]#[fg=#131a24,bg=#719cd6,bold] #h " | |
setw -g window-status-activity-style "underscore,fg=#71839b,bg=#131a24" | |
setw -g window-status-separator "" | |
setw -g window-status-style "NONE,fg=#71839b,bg=#131a24" | |
setw -g window-status-format "#[fg=#131a24,bg=#131a24,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#131a24,bg=#131a24,nobold,nounderscore,noitalics]" | |
setw -g window-status-current-format "#[fg=#131a24,bg=#aeafb0,nobold,nounderscore,noitalics]#[fg=#131a24,bg=#aeafb0,bold] #I #W #F #[fg=#aeafb0,bg=#131a24,nobold,nounderscore,noitalics]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "$HOME/.config/tmux/nightfox_tmux.tmux" | |
source "$HOME/.config/tmux/atsuyaw_nightfox_tmux.tmux" | |
set-window-option -g mode-keys vi | |
set -g escape-time 0 | |
# set -g status-left ' #{?client_prefix,#[reverse],}[#S]#[default] ' | |
# set -g status-style fg="#281c34",bg="#51afef" | |
# set -g window-status-current-style fg=black,bold,bg=white | |
set -g renumber-windows on | |
# set -g status-right "%Y-%m-%d" | |
set -g mouse on | |
set -g set-clipboard on | |
set -s copy-command 'wl-copy' | |
bind ] run "tmux set-buffer \"$(wl-paste)\"; tmux paste-buffer" | |
bind -Tcopy-mode-vi v send -X begin-selection | |
bind -Tcopy-mode-vi y send -X copy-pipe-and-cancel | |
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel | |
set -g default-terminal "screen-256color" | |
# log | |
bind-key C-p pipe-pane -o '/bin/sh -c "while read -r LINE; do echo \"[\$(date +\"%%Y_%%m%%d_%%H%%M%%S_%%N\")] \${LINE}\" >> \${HOME}/tmux/log/\$(date +%Y%m%d-%H%M%S)-#S-#I.#P.log; done "' \; display-message "Logging start." | |
# C-b C-o Stop logging | |
bind-key C-o pipe-pane \; display-message "Logging end." | |
# C-b v Open new window. Logging always. (-n is set window name.) | |
bind-key v new-window -n 'logging...' \; pipe-pane -o '/bin/sh -c "while read -r LINE; do echo \"[\$(date +\"%%Y_%%m%%d_%%H%%M%%S_%%N\")] \${LINE}\" >> \${HOME}/tmux/log/\$(date +%Y%m%d-%H%M%S)-#S-#I.#P.log; done "' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment