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

add ability for clients to set mode/plugin automatically #266

Open
craftyguy opened this issue Mar 23, 2025 · 1 comment
Open

add ability for clients to set mode/plugin automatically #266

craftyguy opened this issue Mar 23, 2025 · 1 comment

Comments

@craftyguy
Copy link

I'm not sure if I described the title correctly, so feel free to edit if there's a better way to state this... but I would basically like to be able to run cosmic-launcher (which uses pop-launcher), and have it start up with some plugin of mine automatically selected so I can just start typing to filter the plugin's output.

For example, I have a plugin that runs my password manager. Today I have to hit some key binding to run cosmic-launcher, then I have to type some key/word to start the query for the password manager plugin and hit space, THEN I can start trying to select the password entry I want. The flow today is something like:

  1. <super>D to start cosmic launcher
  2. bw<space> to start the "bw" plugin in pop-launcher that I want
  3. then I can start trying to find the thing I want

Ideally I could just have a key binding that runs cosmic-launcher in some way and have it show the pop-launcher plugin I want so I could skip the query/keyword step entirely and just start trying to select the password entry from the plugin. It would be nice if the flow was like:

  1. <super>P (or whatever) to start cosmic-launcher --mode bw
  2. then I can start trying to find the thing I want
@craftyguy
Copy link
Author

craftyguy commented Mar 24, 2025

I am currently hacking around this by creating a script like this, and then setting a custom keybinding to run it:

#!/bin/sh
cosmic-launcher &

# type the given keyword for pop-launcher to load the plugin I want
wtype "$1 " 

wait

Binding example for cosmic-launcher:

{
    (
        modifiers: [
            Super,
        ],
        key: "e",
        description: Some("Get emoji"),
    ): Spawn("~/bin/pop-launcher-auto-plugin emoji"),
...
}

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

1 participant