From 720a868137234982047f92a520e4a7d77f3bcff1 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sun, 18 Jun 2023 03:45:43 -0400 Subject: [PATCH] Startcomms shortcut --- shortcuts/session/logout | 3 +-- shortcuts/session/start-comms | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100755 shortcuts/session/start-comms diff --git a/shortcuts/session/logout b/shortcuts/session/logout index 48ea791..344b7fb 100755 --- a/shortcuts/session/logout +++ b/shortcuts/session/logout @@ -1,4 +1,3 @@ #!/usr/bin/env bash -session=`loginctl session-status | head -n 1 | awk '{print $1}'` -loginctl terminate-session $session +hyprctl dispatch exit diff --git a/shortcuts/session/start-comms b/shortcuts/session/start-comms new file mode 100755 index 0000000..1978f7f --- /dev/null +++ b/shortcuts/session/start-comms @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +export SIGNAL_USE_WAYLAND=1 +export GDK_BACKEND=wayland + +# messenger first +gio launch /etc/profiles/per-user/nathan/share/applications/messenger-chrome.desktop + +# Split messenger with discord +hyprctl dispatch focuswindow "^(chrome-messenger.com__-Default)$" +gio launch /etc/profiles/per-user/nathan/share/applications/webcord.desktop + +# Split messenger with messages +hyprctl dispatch focuswindow "^(chrome-messenger.com__-Default)$" +gio launch /etc/profiles/per-user/nathan/share/applications/messages.desktop + +# Split messages with cinny +hyprctl dispatch focuswindow "^(chrome-messages.google.com__web-Default)$" +gio launch /etc/profiles/per-user/nathan/share/applications/cinny.desktop +sleep 1 + +# split messenger with signal +hyprctl dispatch focuswindow "^(chrome-messenger.com__-Default)$" +signal-desktop --enable-features=UseOzonePlatform -ozone-platform=wayland & disown