From dbf86f2f1e0f71367dc0963801cb54bf711e4339 Mon Sep 17 00:00:00 2001 From: Andreas Backx Date: Mon, 28 Oct 2024 10:08:29 +0000 Subject: [PATCH] Update .local/share/applications/WorkChat.desktop Update .config/hypr/windows.conf Change attributes of .config/hypr/exec.conf --- .../share/private_applications/executable_WorkChat.desktop | 4 ++-- private_dot_config/hypr/{exec.conf => exec.conf.tmpl} | 3 +++ private_dot_config/hypr/windows.conf.tmpl | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) rename private_dot_config/hypr/{exec.conf => exec.conf.tmpl} (95%) diff --git a/dot_local/share/private_applications/executable_WorkChat.desktop b/dot_local/share/private_applications/executable_WorkChat.desktop index 2c27e65..852109a 100644 --- a/dot_local/share/private_applications/executable_WorkChat.desktop +++ b/dot_local/share/private_applications/executable_WorkChat.desktop @@ -3,7 +3,7 @@ Version=1.0 Terminal=false Type=Application -Name=Workplace +Name=WorkChat Exec=/opt/google/chrome/google-chrome --profile-directory=Default --app-id=hondjlkedhnofcgbhifciodpdjfnonjm Icon=chrome-hondjlkedhnofcgbhifciodpdjfnonjm-Default -StartupWMClass=crx_hondjlkedhnofcgbhifciodpdjfnonjm +StartupWMClass=WorkChat diff --git a/private_dot_config/hypr/exec.conf b/private_dot_config/hypr/exec.conf.tmpl similarity index 95% rename from private_dot_config/hypr/exec.conf rename to private_dot_config/hypr/exec.conf.tmpl index 82b2553..e993db6 100644 --- a/private_dot_config/hypr/exec.conf +++ b/private_dot_config/hypr/exec.conf.tmpl @@ -28,6 +28,9 @@ exec-once = spotify # exec-once = obsidian || md.obsidian.Obsidian exec-once = discord exec-once = mattermost-desktop +{{ if eq .environment "work" }} +exec-once = workchat +{{ end }} # exec-once = zulip exec-once = trayscale --hide-window || dev.deedles.Trayscale --hide-window exec-once = 1password --silent diff --git a/private_dot_config/hypr/windows.conf.tmpl b/private_dot_config/hypr/windows.conf.tmpl index 1ed6534..0b6c7a7 100644 --- a/private_dot_config/hypr/windows.conf.tmpl +++ b/private_dot_config/hypr/windows.conf.tmpl @@ -40,6 +40,9 @@ windowrule=workspace 4 silent, ^(Slack)$ {{ else }} # Workspace 3 windowrule=workspace 3 silent, ^(Mattermost)$ +# This is WorkChat(.desktop), have been failing to override the class ID. +# Seems to be stable across machines however. +windowrule=workspace 3 silent, ^(chrome-hondjlkedhnofcgbhifciodpdjfnonjm-Default)$ # Workspace 4 windowrule=workspace 4 silent, ^([dD]iscord)$