From 589320a4bbf3edebdc236ecae71e74a5946637cb Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Wed, 26 Apr 2023 09:02:40 +0200 Subject: [PATCH] i3: change open-messaging script to also open rocketchat --- i3/i3/scripts/open-messaging | 7 +- i3/i3/workspace-chat-schildi-tele-rocket.json | 96 +++++++++++++++++++ i3/i3/workspace-chat-schildi-tele.json | 49 ++++++++++ 3 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 i3/i3/workspace-chat-schildi-tele-rocket.json create mode 100644 i3/i3/workspace-chat-schildi-tele.json diff --git a/i3/i3/scripts/open-messaging b/i3/i3/scripts/open-messaging index 96380a4..c77a1f3 100755 --- a/i3/i3/scripts/open-messaging +++ b/i3/i3/scripts/open-messaging @@ -18,7 +18,12 @@ start_program() $program & > /dev/null } -i3-msg 'workspace 9; append_layout ~/.config/i3/workspace-chat2.json' +i3-msg 'workspace 9; append_layout ~/.config/i3/workspace-chat-schildi-tele-rocket.json' start_program schildichat-desktop +sleep 0.1 start_program telegram-desktop +sleep 0.1 +start_program chat.rocket.RocketChat +sleep 0.1 start_program thunderbird +sleep 0.1 diff --git a/i3/i3/workspace-chat-schildi-tele-rocket.json b/i3/i3/workspace-chat-schildi-tele-rocket.json new file mode 100644 index 0000000..10b5a12 --- /dev/null +++ b/i3/i3/workspace-chat-schildi-tele-rocket.json @@ -0,0 +1,96 @@ +// vim:ts=4:sw=4:et +{ + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 996, + "width": 937, + "x": 1934, + "y": 40 + }, + "marks": [], + "name": "SchildiChat", + "percent": 0.5, + "swallows": [ + { + "class": "^SchildiChat$" + // "instance": "^schildichat$", + // "machine": "^julian\\-aspi$", + // "title": "^SchildiChat\\ \\*\\ \\|\\ Familie$", + // "window_role": "^browser\\-window$" + } + ], + "type": "con" +} + +{ + // splitv split container with 2 children + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "marks": [], + "percent": 0.5, + "type": "con", + "nodes": [ + { + // splith split container with 1 children + "border": "normal", + "floating": "auto_off", + "layout": "splith", + "marks": [], + "percent": 0.5, + "type": "con", + "nodes": [ + { + "border": "none", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 1026, + "width": 941, + "x": 2887, + "y": 12 + }, + "marks": [], + "name": "Telegram", + "percent": 1, + "swallows": [ + { + "class": "^TelegramDesktop$" + // "instance": "^telegram\\-desktop$", + // "machine": "^julian\\-aspi$", + // "title": "^Telegram$" + } + ], + "type": "con" + } + ] + }, + { + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 485, + "width": 1904, + "x": 1928, + "y": 557 + }, + "marks": [], + "name": "RocketChat", + "percent": 0.5, + "swallows": [ + { + "class": "^Rocket\\.Chat$" + // "instance": "^rocket\\.chat$", + // "machine": "^julian\\-aspi$", + // "title": "^ifiChat$", + // "window_role": "^browser\\-window$" + } + ], + "type": "con" + } + ] +} + diff --git a/i3/i3/workspace-chat-schildi-tele.json b/i3/i3/workspace-chat-schildi-tele.json new file mode 100644 index 0000000..59127a9 --- /dev/null +++ b/i3/i3/workspace-chat-schildi-tele.json @@ -0,0 +1,49 @@ +// vim:ts=4:sw=4:et +{ + "border": "normal", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 996, + "width": 937, + "x": 1934, + "y": 40 + }, + "marks": [], + "name": "SchildiChat", + "percent": 0.5, + "swallows": [ + { + "class": "^SchildiChat$" + // "instance": "^schildichat$", + // "machine": "^julian\\-aspi$", + // "title": "^SchildiChat$", + // "window_role": "^browser\\-window$" + } + ], + "type": "con" +} + +{ + "border": "none", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 1026, + "width": 941, + "x": 2887, + "y": 12 + }, + "marks": [], + "name": "Telegram", + "percent": 0.5, + "swallows": [ + { + "class": "^TelegramDesktop$" + // "instance": "^telegram\\-desktop$", + // "machine": "^julian\\-aspi$", + // "title": "^Telegram\\ \\(71\\)$" + } + ], + "type": "con" +}