137
submitted 2 days ago by Evkob@lemmy.ca to c/asklemmy@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] communist@lemmy.frozeninferno.xyz 13 points 1 day ago* (last edited 1 day ago)

I have possibly the dumbest workaround to anything in history

bindntr=CTRL,C,exec,hyprctl activewindow | rg -q "class: Wfica" && ( sleep 0.02 && hyprctl closewindow class:alacrittyclipboard ; alacritty -qq --config-file ~/.config/alacritty/alacrittyclipboard.toml --class 'alacrittyclipboard' --title 'Office 365 Desktop (SSL/TLS Secured, 256 bit)' -e sh -c 'sleep 0.03 && xclip -o | copyq copy - ; copyq clipboard | xclip -i' ) & ( sleep 0.2 && closewindow class:alacrittyclipboard )

windowrulev2 = float,class:(alacrittyclipboard) 

windowrulev2 = stayfocused,class:(alacrittyclipboard) 

windowrulev2 = noborder,class:(alacrittyclipboard) 

windowrulev2 = noanim,class:(alacrittyclipboard) 

windowrulev2 = noblur,class:(alacrittyclipboard) 

windowrulev2 = opacity 0,class:(alacrittyclipboard) 

windowrulev2 = maxsize 1 1,class:(alacrittyclipboard) 

allow me to explain this monstrocity... the clipboard in citrix workspace is broken in a stupid way

it doesn't update the system clipboard unless you move focus away from the window... and out of focus windows can't update the clipboard for security reasons... this makes it so that if I hit ctrl c when citrix is open it opens a terminal window that's tiny, invisible and steals focus that essentially forces the clipboard to work.

nonsense hack, but it works

this post was submitted on 09 Mar 2025
137 points (98.6% liked)

Asklemmy

46262 readers
1099 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS