diff --git a/bin/myproject b/bin/myproject new file mode 100755 index 0000000..fb9fa55 --- /dev/null +++ b/bin/myproject @@ -0,0 +1,2 @@ +#!/bin/sh +rofi-sensible-terminal -name $1-$2 -e tmuxinator start $1-$2 diff --git a/i3/multi/config b/i3/multi/config index 7faee3d..0d9a5e3 100644 --- a/i3/multi/config +++ b/i3/multi/config @@ -206,8 +206,9 @@ workspace 10 output $rightoutput assign [class="^Firefox" instance="^Navigator$"] workspace 2 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="-server$"] workspace 8 bindsym XF86Calculator exec urxvtc -name float for_window [class="^URxvt$" instance="^float$"] floating enable diff --git a/tmuxinator/myproject-code.yml b/tmuxinator/myproject-code.yml new file mode 100644 index 0000000..04708c1 --- /dev/null +++ b/tmuxinator/myproject-code.yml @@ -0,0 +1,6 @@ +name: myproject-c +root: ~/prog/myproject +tmux_command: tmux -2 + +windows: + - editor: diff --git a/tmuxinator/myproject-server.yml b/tmuxinator/myproject-server.yml new file mode 100644 index 0000000..6790491 --- /dev/null +++ b/tmuxinator/myproject-server.yml @@ -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: +