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