diff options
| author | spl3g <notspl3g@duck.com> | 2026-03-18 18:01:41 +0300 |
|---|---|---|
| committer | spl3g <notspl3g@duck.com> | 2026-03-18 18:01:59 +0300 |
| commit | 03648b3d9f177227df40129bed22558f6924b91c (patch) | |
| tree | 8a22eda142beeafd9002a8d5901ba9428a77ad52 /home-manager/homeModules/attachments/hypr-scripts/toggle-tg.sh | |
| parent | dc19a2b583b3ab50d8e36ff0a90ca633495f675f (diff) | |
so.. v2 i guess
Diffstat (limited to 'home-manager/homeModules/attachments/hypr-scripts/toggle-tg.sh')
| -rwxr-xr-x | home-manager/homeModules/attachments/hypr-scripts/toggle-tg.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/home-manager/homeModules/attachments/hypr-scripts/toggle-tg.sh b/home-manager/homeModules/attachments/hypr-scripts/toggle-tg.sh deleted file mode 100755 index 44ed52d..0000000 --- a/home-manager/homeModules/attachments/hypr-scripts/toggle-tg.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -TG_CLASS=org.telegram.desktop - -tg_workspace=$(hyprctl clients -j | jq -e ".[] | select((.class | contains(\"${TG_CLASS}\"))) | .workspace.id") -if [[ -z $tg_workspace ]]; then - telegram-desktop -elif [[ $tg_workspace -eq $(hyprctl activeworkspace -j | jq -e '.id') ]]; then - hyprctl dispatch pin class:$TG_CLASS - hyprctl dispatch movetoworkspacesilent special:magic,class:$TG_CLASS -else - hyprctl dispatch movetoworkspacesilent +0,class:$TG_CLASS - hyprctl dispatch pin class:$TG_CLASS - hyprctl dispatch focuswindow -fi |
