From 86d071163bd90de29f2c00e9fcfc62040fa80918 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 7 Feb 2019 14:32:44 -0600 Subject: [PATCH] i3: Separate trees for terraria instances --- ...> aws-c5n-large-1-terraria-tmodpack1.json} | 0 ...ws-c5n-large-1-terraria-tmodpack1.json.rc} | 0 .../aws-c5n-large-1-terraria-tmodpack2.json | 68 +++++++++++++++++++ ...aws-c5n-large-1-terraria-tmodpack2.json.rc | 8 +++ 4 files changed, 76 insertions(+) rename .config/i3/trees/{aws-c5n-large-1-terraria.json => aws-c5n-large-1-terraria-tmodpack1.json} (100%) rename .config/i3/trees/{aws-c5n-large-1-terraria.json.rc => aws-c5n-large-1-terraria-tmodpack1.json.rc} (100%) create mode 100644 .config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json create mode 100755 .config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json.rc diff --git a/.config/i3/trees/aws-c5n-large-1-terraria.json b/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack1.json similarity index 100% rename from .config/i3/trees/aws-c5n-large-1-terraria.json rename to .config/i3/trees/aws-c5n-large-1-terraria-tmodpack1.json diff --git a/.config/i3/trees/aws-c5n-large-1-terraria.json.rc b/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack1.json.rc similarity index 100% rename from .config/i3/trees/aws-c5n-large-1-terraria.json.rc rename to .config/i3/trees/aws-c5n-large-1-terraria-tmodpack1.json.rc diff --git a/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json b/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json new file mode 100644 index 00000000..7c7d5850 --- /dev/null +++ b/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json @@ -0,0 +1,68 @@ +{ + "border": "pixel", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.6, + "type": "con", + "nodes": [ + { + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "percent": 0.6, + "swallows": [ + { + "class": "^Mate-terminal$" + } + ], + "type": "con" + }, + { + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "percent": 0.4, + "swallows": [ + { + "class": "^Mate-terminal$" + } + ], + "type": "con" + } + ] +} + +{ + "border": "pixel", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.4, + "type": "con", + "nodes" : [ + { + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "percent": 0.6, + "swallows": [ + { + "class": "^Mate-terminal$" + } + ], + "type": "con" + }, + { + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "percent": 0.4, + "swallows": [ + { + "class": "^Mate-terminal$" + } + ], + "type": "con" + } + ] +} + diff --git a/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json.rc b/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json.rc new file mode 100755 index 00000000..55737ef9 --- /dev/null +++ b/.config/i3/trees/aws-c5n-large-1-terraria-tmodpack2.json.rc @@ -0,0 +1,8 @@ +#! /bin/sh +${TERMINAL:-mate-terminal} -x ssh aws-c5n-large-1 & +sleep 0.1 +${TERMINAL:-mate-terminal} -x ssh aws-c5n-large-1 -t sudo -u terraria /usr/bin/screen -r ter-tmodpack2 & +sleep 0.1 +${TERMINAL:-mate-terminal} & +sleep 0.1 +${TERMINAL:-mate-terminal} -x ssh aws-c5n-large-1 -t htop &