hluk / copyq-commands

Useful commands for CopyQ clipboard manager.
338 stars 73 forks source link

Window title not working in Hyprland #88

Closed CptLeeChuck closed 9 months ago

CptLeeChuck commented 10 months ago

I would like to ignore text like passwords copied from specific windows. Therefore I understood a built in command is available but obviously not working in Hyprland. In Hyprland hyprctl clients shows all active windows, their class, title and so on, below an example of Firefox running and showing this GitHub page. However it seems copyq is considering some other values for the window name, as the filter criteria ^$ matches all windows I tried so far. Is there any way I can compare my regex against one of the values from below?

...
Window 590ed6fd0700 -> Issues · hluk/copyq-commands — Mozilla Firefox:
    mapped: 1
    hidden: 0
    at: 647,36
    size: 611,742
    workspace: 3 (3)
    floating: 0
    monitor: 0
    class: firefox
    title: Issues · hluk/copyq-commands — Mozilla Firefox
    initialClass: firefox
    initialTitle: Mozilla Firefox
    pid: 80075
    xwayland: 0
    pinned: 0
    fullscreen: 0
    fullscreenmode: 0
    fakefullscreen: 0
    grouped: 0
    swallowing: 0
    focusHistoryID: 1
...
CptLeeChuck commented 9 months ago

After some further investigation I found this which solves the problem described above.

https://github.com/hluk/CopyQ/issues/27