My most ridiculous solution yet, completely solving citrix clipboard issues


<span style="color:#323232;">bindntr=CTRL,C,exec,hyprctl dispatch closewindow alacrittyclipboard & hyprctl activewindow | rg -q "class: Wfica" && alacritty -qq --config-file ~/.config/alacritty/alacrittyclipboard.toml --class 'alacrittyclipboard' --title 'Office365 Desktop - Nexus (SSL/TLS Secured, 256 bit)' -e sh -c 'sleep .03 && xclip -o | wl-copy'
</span><span style="color:#323232;">windowrulev2 = float,class:(alacrittyclipboard)
</span><span style="color:#323232;">windowrulev2 = stayfocused,class:(alacrittyclipboard)
</span><span style="color:#323232;">windowrulev2 = noborder,class:(alacrittyclipboard)
</span><span style="color:#323232;">windowrulev2 = noanim,class:(alacrittyclipboard)
</span><span style="color:#323232;">windowrulev2 = noblur,class:(alacrittyclipboard)
</span><span style="color:#323232;">windowrulev2 = opacity 0,class:(alacrittyclipboard)
</span><span style="color:#323232;">windowrulev2 = maxsize 1 1,class:(alacrittyclipboard)
</span>

i’ve done it, I’ve finally figured out a workaround for this stupid bug that has existed on my system for the last 10 years. the citrix clipboard now works properly, this is the glueyest dumbest thing i’ve ever had to do and i’ve spent literally years trying to figure it out, turns out the wayland protocol forbids windows that don’t have focus from accessing the clipboard, so, i had to make a window, it had to be focused for enough time for it to be recognized and it was a whole thing. Here you go for anybody that needs it, should be relatively easy to adapt from hyprland over to whatever. Fuck.

Xephonian,

Congrats on chasing down a decade-old bug!

ipsirc,

Useless use of terminal.

ReveredOxygen,
@ReveredOxygen@sh.itjust.works avatar

What?

edit: oh, you’re talking about spawning alacritty. it’s just a window that’s easy to spawn with an arbitrary class ig. what would you use?

Communist,
@Communist@lemmy.ml avatar

The real reason for alacritty is that it’s my terminal emulator of choice and it needed to run “xclip -o | wl-copy” while in focus, or the clipboard won’t update properly.

Communist,
@Communist@lemmy.ml avatar

Do you have any better suggestions?

Crackhappy,
@Crackhappy@lemmy.world avatar

Wish stackoverflow. Since they embraced enshittification I think this is the right place to post this.

delirious_owl,
@delirious_owl@discuss.online avatar

Why? SO has no authwall, all its content is CC BY-SA, and its better indexed than Lemmy.

SO hasn’t (and legally cannot) lock their content up like reddit. You can email them and force them to send you their entire DB of content so you can fork it to create a mirror if they ever do actually become unusable.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • fightinggames
  • All magazines