Compare commits

..

2 Commits

Author SHA1 Message Date
Nathan McCarty 720a868137
Startcomms shortcut 2023-06-18 03:45:43 -04:00
Nathan McCarty 13ff4b59ad
Start pypr after tray target 2023-06-18 03:31:45 -04:00
3 changed files with 26 additions and 3 deletions

View File

@ -319,7 +319,7 @@ in with lib; {
systemd.user.services.pypr = { systemd.user.services.pypr = {
Unit = { Unit = {
Description = "pypr"; Description = "pypr";
After = [ "graphical-session.target" ]; After = [ "tray.target" ];
}; };
Service = { Service = {
Type = "simple"; Type = "simple";

View File

@ -1,4 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
session=`loginctl session-status | head -n 1 | awk '{print $1}'` hyprctl dispatch exit
loginctl terminate-session $session

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