diff options
Diffstat (limited to 'mac/.config/tmux/tmux.conf')
| -rw-r--r-- | mac/.config/tmux/tmux.conf | 67 |
1 files changed, 37 insertions, 30 deletions
diff --git a/mac/.config/tmux/tmux.conf b/mac/.config/tmux/tmux.conf index 94313a2..d88a4d8 100644 --- a/mac/.config/tmux/tmux.conf +++ b/mac/.config/tmux/tmux.conf @@ -2,13 +2,11 @@ set-environment -gF TMUX_PLUGIN_MANAGER_PATH '#{HOME}/.local/bin/tmux/tpm' if 'test ! -d "${TMUX_PLUGIN_MANAGER_PATH}"' { - run 'echo "tested"' run 'mkdir -p "${TMUX_PLUGIN_MANAGER_PATH}" && git clone https://github.com/tmux-plugins/tpm "${TMUX_PLUGIN_MANAGER_PATH}" && ${TMUX_PLUGIN_MANAGER_PATH}/bin/install_plugins' } - run 'echo "no"' ### --- Settings --- ### # general @@ -123,6 +121,7 @@ bind -nr 'M-BSpace' last-window ### --- Plugins --- ### set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'alexekdahl/tmux-compile' set -g @plugin 'alexwforsythe/tmux-which-key' set -g @plugin 'aserowy/tmux.nvim' set -g @plugin 'catppuccin/tmux#v2.1.2' @@ -152,11 +151,21 @@ set -g @cmdpalette-key-copy-mode-vi 'copy-mode-vi C-_' set -g @cmdpalette-cmdlists 'commands' set -g @cmdpalette-cmd-commands 'prefix C-c' +# compile +set -g @compile-mode-key "C-a" +set -g @compile-mode-recompile-key "C-o" +set -g @compile-mode-kill-key "C-i" +set -g @compile-mode-height "35%" +set -g @compile-mode-history-file "$HOME/.local/share/history/compile-history" +set -g @compile-mode-session-history "off" +set -g @compile-mode-history-dir "$HOME/.local/share/history/compile-history-dir" +set -g @compile-mode-open-file-key "Enter" + # continuum -set -g @continuum-boot 'off' -set -g @continuum-boot-options 'kitty' -set -g @continuum-restore 'on' -set -g @continuum-save-interval '5' # min, 0 for disable +# set -g @continuum-boot 'on' +# set -g @continuum-boot-options 'kitty' +# set -g @continuum-restore 'on' +set -g @continuum-save-interval '1' # min, 0 for disable # copycat bind -T copy-mode-vi 'v' send-keys -X begin-selection @@ -202,27 +211,25 @@ set -g @open-o 'https://www.searx.thesiah.xyz/?q=' set -g @ton-prioritize-window false # pomodoro -set -g @pomodoro_toggle 'p' # Start/pause a Pomodoro/break -set -g @pomodoro_cancel 'P' # Cancel the current session -set -g @pomodoro_menu 'C-a' # Pomodoro menu -set -g @pomodoro_restart 'R' # Restart -set -g @pomodoro_skip 'B' # Skip a Pomodoro/break -set -g @pomodoro_custom '' # Custom menu -set -g @pomodoro_mins 25 # The duration of the Pomodoro -set -g @pomodoro_break_mins 5 # The duration of the break after the Pomodoro completes -set -g @pomodoro_intervals 4 # The number of intervals before a longer break is started -set -g @pomodoro_interval_display "[%s/%s]" -set -g @pomodoro_long_break_mins 25 # The duration of the long break -set -g @pomodoro_repeat 'off' # Automatically repeat the Pomodoros? -set -g @pomodoro_disable_breaks 'off' # Turn off breaks -set -g @pomodoro_on "#[fg=#{@thm_red}] " -set -g @pomodoro_complete "#[fg=#{@thm_red}] " -set -g @pomodoro_pause "#[fg=#{@thm_yellow}] " -set -g @pomodoro_prompt_break "#[fg=#{@thm_mauve}] " -set -g @pomodoro_prompt_pomodoro "#[fg=#{@thm_green}] " -set -g @pomodoro_sound 'on' # Sound for desktop notifications (Run `ls /System/Library/Sounds` for a list of sounds to use on Mac) -set -g @pomodoro_notifications 'off' -set -g @pomodoro_granularity 'on' +set -g @pomodoro_toggle 'p' # Start/pause a Pomodoro/break +set -g @pomodoro_cancel 'P' # Cancel the current session +set -g @pomodoro_skip '_' # Skip a Pomodoro/break +set -g @pomodoro_mins 25 # The duration of the Pomodoro +set -g @pomodoro_break_mins 5 # The duration of the break after the Pomodoro completes +set -g @pomodoro_intervals 4 # The number of intervals before a longer break is started +set -g @pomodoro_long_break_mins 25 # The duration of the long break +set -g @pomodoro_repeat 'off' # Automatically repeat the Pomodoros? +set -g @pomodoro_disable_breaks 'off' # Turn off breaks +set -g @pomodoro_on "#[fg=#{@thm_red}] " # The formatted output when the Pomodoro is running +set -g @pomodoro_complete "#[fg=#{@thm_red}] " # The formatted output when the break is running +set -g @pomodoro_pause "#[fg=#{@thm_yellow}] " # The formatted output when the Pomodoro/break is paused +set -g @pomodoro_prompt_break "#[fg=#{@thm_mauve}] " # The formatted output when waiting to start a break +set -g @pomodoro_prompt_pomodoro "#[fg=#{@thm_green}] " # The formatted output when waiting to start a Pomodoro +set -g @pomodoro_menu_position "R" # The location of the menu relative to the screen +set -g @pomodoro_sound 'off' # Sound for desktop notifications (Run `ls /System/Library/Sounds` for a list of sounds to use on Mac) + # (On Linux add `on` to use the `beep` program or add your custom beeping command) +set -g @pomodoro_notifications 'off' # Enable desktop notifications from your terminal +set -g @pomodoro_granularity 'on' # Enables MM:SS (ex: 00:10) format instead of the default (ex: 1m) # resurrect set -g @resurrect-save 'S' @@ -230,7 +237,7 @@ set -g @resurrect-restore 'C-r' set -g @resurrect-strategy-vim 'session' set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' -set -g @resurrect-processes 'kitty neomutt newsboat psql mysql sqlite3 ssh' +set -g @resurrect-processes 'neomutt newsboat psql mysql sqlite3 ssh' # side-bar set -g @sidebar-tree 'e' @@ -277,7 +284,7 @@ set -g @offline_icon "nok" set -ogq @thm_bg "default" # transparent background set -g status-left "" set -g status-left-length 90 -set -ga status-left "#[bg=default,fg=#{@thm_red}] #(tmux list-sessions | nl | grep -w \"$(tmux display-message -p '#S')\" | awk '{print \$1}' | tr -d '[:space:]')/#(tmux list-sessions | wc -l | tr -d '[:space:]') " +set -ga status-left "#[bg=default,fg=#{@thm_red}] #(tmux list-sessions | nl | grep -w \"$(tmux display-message -p '#S')\" | awk '{print \$1}')/#(tmux list-sessions | wc -l) " set -ga status-left "#[bg=default,fg=#{@thm_overlay_0},none]│" set -ga status-left "#{?client_prefix,#{#[bg=#{@thm_surface_2},fg=#{@thm_green},bold,italics] #S },#{#[bg=default,fg=#{@thm_green}] #S }}" set -ga status-left "#[bg=default,fg=#{@thm_overlay_0},none]│" @@ -342,4 +349,4 @@ set -g window-status-current-style "bg=#{@thm_peach},fg=#{@thm_surface_0},bold" ### --- RUN TPM --- ### -run '${TMUX_PLUGIN_MANAGER_PATH}/tpm' +run '${TMUX_PLUGIN_MANAGER_PATH}/tpm/tpm' |
