Skip to content

Commit

Permalink
Swap smug out for the og tmuxinator πŸ™ŒπŸ½
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpinto committed Feb 28, 2024
1 parent f0763f3 commit 2ff854f
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 27 deletions.
18 changes: 18 additions & 0 deletions .tmuxinator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: kitchensink
root: ~/projects/kitchensink

startup_window: code

windows:
- code: vim
- cli:
layout: main-vertical
panes:
- git:
- ls -al
- git status
- run:
- ls -al
- misc:
- ls -al
2 changes: 1 addition & 1 deletion dev-machine/roles/linux/tasks/programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
become_user: "marvin"
community.general.homebrew:
name:
- "smug"
- "tmuxinator"
- "age"
- "restic"
- "tio"
Expand Down
2 changes: 2 additions & 0 deletions dotfiles/dot_bash.d/tmux.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{- if (and (eq .chezmoi.os "linux") (not .is_devcontainer)) -}}
alias t="tmux"
complete -F _tmux t
alias mux="tmuxinator"
complete -F _tmuxinator mux
{{ end -}}
4 changes: 2 additions & 2 deletions dotfiles/dot_config/private_cheat/cheatsheets/tmux
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ tmux ls # list tmux sessions
tmux kill-session -t <session-name> # kill session
mod + d # detach from a session (within tmux)
tmux attach -d -t <session-name> # connect/attach to an existing session
smug start quickdev # start a session named "quickdev" (default config)
smug start -f /path/to/smug/session.yml # start a session from the specified file
tmuxinator start <name> # start a named session sourced from a file in ~/.config/tmuxinator (i.e. "quickdev")
tmuxinator start/stop # start or stop a named session sourced from a local ./.tmuxinator.yml file
19 changes: 0 additions & 19 deletions dotfiles/dot_config/private_smug/private_quickdev.yml

This file was deleted.

22 changes: 22 additions & 0 deletions dotfiles/dot_config/private_tmuxinator/private_quickdev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: quickdev
root: ~/projects

# Pre-created layouts: https://github.com/tmux/tmux/wiki/Getting-Started#window-layouts
# - even-horizontal: Spread out evenly across
# - even-vertical: Spread out evenly up and down
# - main-horizontal: One large pane at the top, the rest spread out evenly across
# - main-vertical: One large pane on the left, the rest spread out evenly up and down
# - tiled: Tiled in the same number of rows as columns

startup_window: code

windows:
- code: vim
- cli:
layout: main-vertical
panes:
- git:
- ls -al
- ls -al
- ls -al
9 changes: 4 additions & 5 deletions dotfiles/dot_tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg
# Active window title colors
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1

# Set active pane border color
set-option -g pane-active-border-style fg=colour214

# Set inactive pane border color
set-option -g pane-border-style fg=colour239
set-option -g pane-active-border-style fg=colour214 # setw pane-border-status bottom
set-option -g pane-border-style fg=colour239 # inactive pane border color
set-option -g pane-border-format "#{pane_title}"
set-option -g pane-border-status top

# Message info
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1
Expand Down

0 comments on commit 2ff854f

Please sign in to comment.