Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help! how can you temporarily pin the main window so that it will not close after each pasting? #2433

Closed
H5820121 opened this issue Aug 21, 2023 · 2 comments

Comments

@H5820121
Copy link

Sometimes I have to do a series of many pastings, is it possible to temporarily pin the main window that won't close after each pasting?, maybe someone knows how to make a script that will do that?

Thanks!

@GFDGIT
Copy link

GFDGIT commented Aug 23, 2023

[Command]
Name=Toggle always_on_top
MatchCommand="
    copyq:
    var on = config(\"always_on_top\") === \"true\"
    if (on) {
      menuItem['text'] = 'Always On Top'
      menuItem['icon'] = '\xf023'
    } else {
      menuItem['text'] = 'Cancel'
      menuItem['icon'] = '\xf3c1'
    }"
Command="
    copyq:
    var rows = selectedItems()
    var on = config(\"always_on_top\") === \"true\"

    config(\"always_on_top\", !on)
    config(\"activate_closes\",on)
    config(\"close_on_unfocus\",on)

    selectItems.apply(this, rows)"
InMenu=true
Icon=\xf023
Shortcut=ctrl+`

@H5820121
Copy link
Author

Many many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants