Skip to content

Commit

Permalink
mux templates
Browse files Browse the repository at this point in the history
  • Loading branch information
shellshock1953 committed Oct 10, 2023
1 parent 883318a commit d01ffc2
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 2 deletions.
15 changes: 13 additions & 2 deletions defaults/main/tmux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ role_component:
depth: 1
configs:
templates:
main:
template: tmux.conf
# main tmux config
tmux_conf:
template: tmux/tmux.conf
dest: ~/.tmux.conf
# tmuxinator configs
mux_components:
template: tmux/mux_components.yml
dest: ~/.config/tmuxinator/component.yml
mux_dnull:
template: tmux/mux_dnull.yml
dest: ~/.config/tmuxinator/dnull.yml
mux_dotfiles:
template: tmux/mux_dotfiles.yml
dest: ~/.config/tmuxinator/dotfiles.yml
File renamed without changes.
12 changes: 12 additions & 0 deletions templates/tmux/mux_components.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: component
root: ~/
attach: false
windows:
- component:
- export ACTIONS=<%= @settings["actions"] %>
- export COMPONENTS=<%= @settings["components"] %>
- export HOSTS=<%= @settings["hosts"] %>
- bash ~/dnull/dnull/utils/components_run.sh
- sleep 20
- exit
6 changes: 6 additions & 0 deletions templates/tmux/mux_dnull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: dnull
root: ~/dnull
windows:
- editor: lvim
- shell: /bin/zsh
6 changes: 6 additions & 0 deletions templates/tmux/mux_dotfiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: dotfiles
root: ~/dnull/dotfiles/
windows:
- editor:
- export COMPONENTS=<%= @settings["components"] %> && export HOSTS=<%= @settings["hosts"] %> && lvim -O ~/dnull/ansible/external_roles/components/defaults/main/${COMPONENTS}.yml ~/dnull/ansible/host_vars/${HOSTS}.yml
File renamed without changes.

0 comments on commit d01ffc2

Please sign in to comment.