2dda9880d5
commit74cc8fa92e
Author: Daniel Flanagan <daniel@lytedev.io> Date: Fri Jan 24 12:45:49 2020 -0600 MIC SCRIPT commitdbd88dde4b
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Jan 23 12:38:19 2020 -0600 Mic script, amd stuff, more fish fixes commitdadb7da642
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Jan 23 09:51:03 2020 -0600 Remove more generated fish stuff, more fixes commitb09a25cc17
Author: Daniel Flanagan <daniel@lytedev.io> Date: Wed Jan 22 17:25:47 2020 -0600 More fixes to various things commit58f6626280
Author: Daniel Flanagan <daniel@lytedev.io> Date: Wed Jan 22 08:34:12 2020 -0600 Updates commit00e919f7f5
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 14:28:45 2020 -0600 Fix notes and add vim pager commit5100983350
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 14:01:06 2020 -0600 More fixes and cleanup commit85eab2155c
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 13:09:31 2020 -0600 More notes commitda496b7f0c
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 12:43:55 2020 -0600 Maybe actually fix colors? commit3c11353256
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 12:32:23 2020 -0600 Colors fixed? commitf2a5060e7d
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 11:40:26 2020 -0600 Things commitf44d0d5479
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 10:54:09 2020 -0600 Kitty colors commit5f0fa76a67
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 10:49:06 2020 -0600 More updates for fish migration commit5b05be9fe7
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 09:14:08 2020 -0600 Nah commitfe0f1d8e32
Merge:52fe38f
205c12a
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 09:13:09 2020 -0600 Merge branch 'dev' of ssh://git.lyte.dev:2222/lytedev/dotfiles into dev commit52fe38f42a
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 20 09:12:52 2020 -0600 More fish fixes commit205c12a051
Author: Daniel Flanagan <daniel@lytedev.io> Date: Sat Jan 18 23:15:13 2020 -0600 WIP commitb73c4b26a4
Author: Daniel Flanagan <daniel@lytedev.io> Date: Fri Jan 17 10:36:20 2020 -0600 Remove debug code, fix asdf references for fish commitd6ecaf88be
Merge:2e6b90b
46793bb
Author: Daniel Flanagan <daniel@lytedev.io> Date: Fri Jan 17 10:34:01 2020 -0600 Merge remote-tracking branch 'origin/lappy' into dev commit2e6b90bed3
Author: Daniel Flanagan <daniel@lytedev.io> Date: Fri Jan 17 10:26:00 2020 -0600 Pulsemixer > pavucontrol and some sway fixes commit46793bb735
Author: Daniel Flanagan <daniel@lyte.dev> Date: Fri Jan 17 03:02:53 2020 -0600 Whew commit26f32a0c6b
Author: Daniel Flanagan <daniel@lyte.dev> Date: Thu Jan 16 17:01:59 2020 -0600 WIP fish configuration commitfb0389eea4
Author: Daniel Flanagan <daniel@lyte.dev> Date: Thu Jan 16 13:30:35 2020 -0600 Fiiiish commit2f1af8411a
Author: Daniel Flanagan <daniel@lyte.dev> Date: Thu Jan 16 13:28:23 2020 -0600 Stuff commitba8ec1f524
Author: Daniel Flanagan <daniel@lyte.dev> Date: Thu Jan 9 19:02:31 2020 -0600 Fix some dock stuff, erlang with wx commitd80a823ce2
Merge:36d58e0
5195a85
Author: Daniel Flanagan <daniel@lytedev.io> Date: Wed Jan 8 13:32:56 2020 -0600 Merge remote-tracking branch 'origin/lappy' into wip-refactor commit36d58e037f
Author: Daniel Flanagan <daniel@lytedev.io> Date: Wed Jan 8 10:59:45 2020 -0600 Testing signed commits commit5195a855a6
Author: Daniel Flanagan <daniel@lyte.dev> Date: Tue Jan 7 19:38:43 2020 -0600 Bars commit1acb330746
Author: Daniel Flanagan <daniel@lyte.dev> Date: Tue Jan 7 11:36:12 2020 -0600 SWAAAAAY commitf547e5ec28
Merge:aa29acb
b1709d1
Author: Daniel Flanagan <daniel@lyte.dev> Date: Tue Jan 7 10:59:24 2020 -0600 Merge remote-tracking branch 'origin/wip-refactor' into lappy commitb1709d1e94
Author: Daniel Flanagan <daniel@lytedev.io> Date: Tue Jan 7 10:59:22 2020 -0600 Stuff commitaa29acb364
Merge:66cc873
2456dad
Author: Daniel Flanagan <daniel@lyte.dev> Date: Tue Jan 7 10:58:29 2020 -0600 Merge remote-tracking branch 'origin/wip-refactor' into lappy commit2456dad7de
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Jan 6 11:15:30 2020 -0600 Zstd commit66cc8734a8
Author: Daniel Flanagan <daniel@lyte.dev> Date: Tue Dec 31 21:48:49 2019 -0600 Fix sudo setup and use fancy email for git commita05c02e1fb
Author: Daniel Flanagan <daniel@lytedev.io> Date: Tue Dec 31 17:03:22 2019 -0600 Fancy colors commit026220fe26
Author: Daniel Flanagan <daniel@lytedev.io> Date: Tue Dec 31 16:55:45 2019 -0600 SMTP tools commite2a854df65
Merge:0d0e131
825d91b
Author: Daniel Flanagan <daniel@lytedev.io> Date: Tue Dec 31 15:07:09 2019 -0600 Merge branch 'wip-refactor' into lappy commit0d0e131714
Author: Daniel Flanagan <daniel@lytedev.io> Date: Tue Dec 31 14:26:44 2019 -0600 Stuff commit825d91b462
Author: Daniel Flanagan <daniel@lytedev.io> Date: Tue Dec 31 10:15:01 2019 -0600 Utility updates commitae350894af
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Dec 30 10:02:14 2019 -0600 Lul. commitea5debe38c
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Dec 16 17:21:44 2019 -0600 WIP chat system commitc40fe94b70
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Dec 16 09:57:21 2019 -0600 Add weechat config commit76e8a68c34
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Dec 16 09:51:21 2019 -0600 Preparing for weechat stuf commit25aecdc139
Author: Daniel Flanagan <daniel@lytedev.io> Date: Fri Dec 13 11:32:15 2019 -0600 Goodies? commit8d1e86feb4
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Dec 12 13:31:18 2019 -0600 Logging for pipelines? commitb81bdf6abd
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Dec 12 13:17:20 2019 -0600 errors break things? commit6f7d80d761
Merge:7659442
bc5ce9e
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Dec 12 13:04:52 2019 -0600 Merge branch 'master' of ssh://git.lyte.dev:2222/lytedev/dotfiles commit76594427ff
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Dec 12 13:00:03 2019 -0600 Pipelines! commit972508e74d
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Dec 12 11:02:24 2019 -0600 WIP pipeline commit898848669c
Author: Daniel Flanagan <daniel@lytedev.io> Date: Fri Dec 6 10:08:42 2019 -0600 Archive commit16895af798
Author: Daniel Flanagan <daniel@lytedev.io> Date: Thu Dec 5 16:09:52 2019 -0600 Helpful bins commit3a8eb5d475
Author: Daniel Flanagan <daniel@lytedev.io> Date: Mon Dec 2 09:31:28 2019 -0600 Move a lot of stuff around
156 lines
4.4 KiB
Plaintext
156 lines
4.4 KiB
Plaintext
# ^s as prefix
|
|
unbind C-b
|
|
set -g prefix C-s
|
|
bind-key s send-prefix
|
|
|
|
# reload tmux.conf
|
|
bind-key T source-file "$HOME/.tmux.conf" \; display-message "source-file done"
|
|
unbind r
|
|
bind r source-file "$HOME/.tmux.conf"
|
|
|
|
# set -as terminal-overrides ',xterm*:smxx=\E[9m'
|
|
set -g default-terminal "screen-256color"
|
|
|
|
# sane defaults
|
|
set -g mouse on
|
|
|
|
# honestly not exactly sure?
|
|
# set -sg escape-time 1
|
|
set -g escape-time 0
|
|
|
|
# show window activity
|
|
# TODO: this needs to be properly setup - presumably with tmux-session-list
|
|
setw -g monitor-activity on
|
|
setw -g visual-bell on
|
|
setw -g bell-action other
|
|
|
|
# common window sizes
|
|
bind-key W resize-pane -x 100
|
|
bind-key f resize-pane -x 120
|
|
bind-key F resize-pane -x 125
|
|
bind-key 8 resize-pane -x 80
|
|
bind-key 2 resize-pane -y 20
|
|
|
|
# splitting
|
|
bind-key v split-window -h
|
|
bind-key b split-window
|
|
bind-key h split-window
|
|
|
|
# show tmux status bar by default with (C-s, H) to toggle it
|
|
set -g status on
|
|
set -g history-limit 102400000
|
|
bind-key H set -s status
|
|
|
|
# simple session switching
|
|
bind-key j switch-client -p
|
|
bind-key h switch-client -p
|
|
bind-key k switch-client -n
|
|
bind-key l switch-client -n
|
|
# bind s run-shell "tmux new-window sh -c '$DOTFILES_PATH/bin/tmuxswitcher'"
|
|
bind s run-shell "tmux new-window 'sh -c ~/.config/dotfiles/bin/tmuxswitcher'"
|
|
|
|
# reset the working directory of the current session
|
|
bind-key P attach-session -t . -c '#{pane_current_path}' \; display-message 'Reset session dir to #{pane_current_path}'
|
|
|
|
# status bar and messages
|
|
set -g status-position bottom
|
|
set -g status-bg colour0
|
|
set -g status-fg colour8
|
|
set -g message-style 'fg=colour7 bg=colour18'
|
|
set -g status-interval 5
|
|
set -g status-right-length 80
|
|
set -g status-right "#[fg=colour4]#W#[fg=default]#[bg=default] #H"
|
|
set -g status-left-length 200
|
|
set -g status-left "#[fg=colour7]#(tmux-session-list #S)"
|
|
|
|
bind-key O display-message "#(tmux-save-buffer #S)"
|
|
|
|
# pane split line colors
|
|
set -g pane-active-border-style bg=black,fg=blue
|
|
set -g pane-border-style bg=black,fg=colour18
|
|
|
|
# cLocK mOdE Is sUpEr 3LeEt
|
|
set -g clock-mode-colour colour8
|
|
|
|
# windows (which I don't use much...?)
|
|
# TODO: do I have a use case for windows?
|
|
setw -g window-status-current-format ''
|
|
|
|
# vim copying
|
|
setw -g mode-keys vi
|
|
|
|
# 1-based indexing for key binding simplicity
|
|
set -g base-index 1
|
|
set -g pane-base-index 1
|
|
|
|
# custom predefined layouts
|
|
bind M-l source-file ~/.tmux/layouts/dev.tmux
|
|
|
|
# present a menu of urls to open from the visible pane
|
|
# TODO: fzf-ify this
|
|
bind-key u capture-pane \;\
|
|
save-buffer /tmp/tmux-buffer \;\
|
|
split-window -l 10 "urlscan /tmp/tmux-buffer"
|
|
|
|
# seamlessly handle pane switching in and out of vim panes
|
|
# see GitHub repos tmux-plugins/vim-tmux-focus-events and christoomey/vim-tmux-navigator
|
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
|
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
|
bind-key -Tcopy-mode-vi 'C-h' send -X "cancel select-pane -L"
|
|
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
|
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
|
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
|
# not sure about this binding? possibly switch to previous pane...?
|
|
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
|
|
|
# YANKING
|
|
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
|
|
|
|
# list of plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
# prefix+[ for select mode
|
|
# v for visual mode
|
|
# yank to clipboard with y
|
|
# paste with prefix+]
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
|
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
|
|
# plugin options
|
|
|
|
# enable continuum
|
|
set -g @continuum-restore 'on'
|
|
|
|
# let continuum startup on boot
|
|
set -g @continuum-boot 'on'
|
|
|
|
# bindings for tmux-resurrect
|
|
set -g @resurrect-save 'C-v'
|
|
set -g @resurrect-restore 'R'
|
|
|
|
# initialize tmux plugin manager
|
|
run '$HOME/.tmux/plugins/tpm/tpm'
|
|
|
|
# attempt at integrating nested tmux sessions nicely
|
|
# bind -T root F12 \
|
|
# set prefix None \;\
|
|
# set key-table off \;\
|
|
# set status off \
|
|
# if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
|
|
# refresh-client -S \;\
|
|
|
|
# bind -T off F12 \
|
|
# set -u prefix \;\
|
|
# set -u key-table \;\
|
|
# set status on \;\
|
|
# refresh-client -S
|
|
|
|
unbind-key C-p
|