tmuxinator: add bin and config to launch generic project

master
Guillaume Dott 2018-06-07 10:50:07 +02:00
parent 52f3049a7b
commit 8b3d3244dd
4 changed files with 19 additions and 1 deletions

2
bin/myproject 100755
View File

@ -0,0 +1,2 @@
#!/bin/sh
rofi-sensible-terminal -name $1-$2 -e tmuxinator start $1-$2

View File

@ -206,8 +206,9 @@ workspace 10 output $rightoutput
assign [class="^Firefox" instance="^Navigator$"] workspace 2 assign [class="^Firefox" instance="^Navigator$"] workspace 2
assign [class="^Thunderbird"] workspace 10 assign [class="^Thunderbird"] workspace 10
assign [class="^URxvt$" instance="^lesportecles-code$"] workspace 3 assign [class="^URxvt$" instance="-code$"] workspace 3
assign [class="^URxvt$" instance="^lesportecles-rails$"] workspace 8 assign [class="^URxvt$" instance="^lesportecles-rails$"] workspace 8
assign [class="^URxvt$" instance="-server$"] workspace 8
bindsym XF86Calculator exec urxvtc -name float bindsym XF86Calculator exec urxvtc -name float
for_window [class="^URxvt$" instance="^float$"] floating enable for_window [class="^URxvt$" instance="^float$"] floating enable

View File

@ -0,0 +1,6 @@
name: myproject-c
root: ~/prog/myproject
tmux_command: tmux -2
windows:
- editor:

View File

@ -0,0 +1,9 @@
name: myproject-r
root: ~/prog/myproject
tmux_command: tmux -2
windows:
- server: docker-compose up -d; docker attach myproject_app_1
- console: docker-compose run app bin/rails c
- prod: