Startcomms shortcut

This commit is contained in:
Nathan McCarty 2023-06-18 03:45:43 -04:00
parent 13ff4b59ad
commit 720a868137
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 25 additions and 2 deletions

View File

@ -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

24
shortcuts/session/start-comms Executable file
View File

@ -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