dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit f1f0872e1b8e4cf3fbb8c544527c69e3d218409a
parent 108fca9b52c9ad6e2cdcc7bbeecc7aa8fabda8c0
Author: pyratebeard <root@pyratebeard.net>
Date:   Sun, 12 Sep 2021 21:48:53 +0100

hook, timer, todo

new hook to rename first pane in new session.

golden_apple plugin for pomodoro timer. add options and display in status bar.

set display-popup to show todo list

Diffstat:
Mtmux/.tmux.conf | 24+++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -22,6 +22,7 @@ set-option -g allow-rename off # rename window on creation set-hook -g after-new-window 'command-prompt -I "" "rename-window '%%'"' +set-hook -g after-new-session 'command-prompt -I "" "rename-window '%%'"' # screen mode set -g default-terminal "screen-256color" @@ -80,6 +81,10 @@ bind l select-pane -R # colon : bind : command-prompt +# pomodoro +bind-key g run-shell "~/.tmux/plugins/tmux-golden-apple/golden_apple.tmux start" +bind-key G run-shell "~/.tmux/plugins/tmux-golden-apple/golden_apple.tmux stop" + # panes set -g pane-border-style fg=black set -g pane-active-border-style fg=colour6 @@ -87,6 +92,7 @@ set -g pane-active-border-style fg=colour6 # messaging set -g message-style fg=white,bg=colour5 set -g message-command-style fg=colour0,bg=colour1 +set-option -g display-time 4000 # window mode setw -g mode-style fg=colour0,bg=colour6 @@ -102,10 +108,10 @@ set -g status-interval 5 set -g status-right-length 100 setw -g window-status-separator " " -setw -g window-status-format "#[bg=colour241,fg=colour0] #I #[bg=colour241,fg=colour0]#W #[bg=colour0,fg=colour241]▓░" -setw -g window-status-current-format "#[bg=colour14,fg=colour0] #I #[bg=colour14,fg=colour0]#W #[bg=colour0,fg=colour14]▓░" +setw -g window-status-format "#[bg=colour241,fg=colour0] #I #[bg=colour241,fg=colour0]#W #[bg=default,fg=colour241]▓░" +setw -g window-status-current-format "#[bg=colour14,fg=colour0] #I #[bg=colour14,fg=colour0]#W #[bg=default,fg=colour14]▓░" set -g status-justify left -set-option -g status-right '#[bg=colour0,fg=colour237]░▓#[bg=colour236,fg=colour15]#{bond_device}#{online_status}#[bg=colour237,fg=colour243] %Y%m#[bg=colour237,fg=colour3]%d#[fg=default]-#[fg=colour10]%u #[fg=colour7]%H%M #[bg=white,fg=colour237]▓#[default]' +set-option -g status-right '#[bg=default,fg=colour237]░▓#[bg=colour237,fg=colour15]#{goldenapple}#{bond_device}#{online_status}#[bg=colour237,fg=colour243] %Y%m#[bg=colour237,fg=colour3]%d#[fg=default]-#[fg=colour10]%u #[fg=colour7]%H%M #[bg=colour243,fg=colour237]▓#[default]' set-option -g status-left '' # online and offline icon for tmux-online-status @@ -116,6 +122,9 @@ set -g @offline_icon "#[bg=colour237,fg=colour1]░▓█#[bg=colour1,fg=white]o set -g @ethernet "#[bg=colour237,fg=colour7] hardwire #[default]" set -g @wifi "#[bg=colour237,fg=colour7] airborne #[default]" +# work minutes for pomodoro +set -g @work 30 + # loud or quiet? set-option -g visual-activity on set-option -g visual-bell off @@ -130,12 +139,17 @@ set -g clock-mode-colour colour6 set -sg escape-time 0 # some key-binding changes -bind x kill-pane +#bind x kill-pane bind X next-layout bind Z previous-layout # toggle status bar visibility -bind t set status +#bind t set status + +# toggle todo list popup +## http://git.z3bra.org/scripts/file/todo.html +unbind t +bind t display-popup -w 75 -h 13 ~/bin/todo # plugins # `mkdir -p ~/.tmux/plugins/ ; git clone 'https://github.com/tmux-plugins/tpm' ~/.tmux/plugins/tpm`