-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
[window_switcher:1.1] support global query #171
Conversation
I am not really a friend of the shipped icons. there is the freedesktop icon lookup for such things. albert implements it. this way the users icon theme is taken into account. iirc older version supported this. well they used |
Nice. XDG is a good way, but lots of icon can not be found. Do we have icon_lookup fun to return false , then start using shipped icons ? |
they are tried in the order you provide them in this url list. but actually every window should have an icon. which ones are not found? |
note that we dont have icon_lookup fun at all. 0.18 (iirc) began making use of an icon url list in item. |
using icon like |
See here https://github.com/albertlauncher/python/blob/master/.archive/window_switcher/__init__.py#L38 this probably works every app comes with an icon installed. therefore this should work. Shipping icons is not generalizing well. |
hey! any chance I can add this plugin this from source to test out ? |
I do not have free time to find a good way of icon lookup func.🥹 |
Icon lookup is built in. Just use the xdg URL scheme. Like |
OK, I have changed it to the if someone likes, here is the window_switcher backup using the "the shipped icons". |
built the project from source and loaded this plugin, albert throws this warning and doesn't seem to load the plugin, am I doing something wrong?
|
0.21 on master is not released yet. Get the pre-built one or build the latest tag |
building from the latest tag got it working, thank you! |
e9f11dc
to
6a76444
Compare
how to do not use Triggers in python plugins ? https://github.com/albertlauncher/python/issues/170 Now python plugins support global trigger? And how to support? |
You have to differentiate between GlobalQuery- and TriggerQueryHandlers. There have always been GlobalQueryHandlers. It's nothing new. The plugin just has to implement it. Having a TriggerQueryHandler without a trigger is not possible since it would alway be triggered and prevent the GlobalQuery from beeing executed. See the stubfile on GlobalQueryHandler |
here is the window_switcher with some icons support albert 0.21.1 |
Hi, talengu. I am testing the plugin and I want provide some feedback, if it will be useful. The plugin working well, but 1 - Sometimes I can see the terminal flash quickly when the switching is performing; 2 - Sometimes, the window is bring to front, but the focus is not give, so I need repeat the act in Albert one more time or many times until switch to window. 3 - Switch to window take some time compared with ULauncher and KRunner (native Launcher in KDE Desktop). |
Hi, Manuel. Sorry, I didn't understand what I should do about stuff that you sent, 😅. Should replace something, is it? |
I just pushed some new stuff. you have to |
talengu can you please reabase and make it python api 2.0 ready? |
oops! git rebase faliled , and the api of albert is changing too fast! But, I will learn it. 😸 |
Thats just an unfortunate time atm. usually the api does not change over years. move the directory of your plugin outside the plugin dir for a moment an do |
did you close this pr intentionally? |
No,I will pull it when fixed. |
please get it upstream. |
Hi, New albert can not run OK in my OS. So I can not debug the python plugin. albertlauncher/albert#1289 (comment)
|
Have you installed all the required dependencies? |
If you don't develop native plugins you could also just install the prebuilt packages |
Please continue any discussion here: https://github.com/orgs/albertlauncher/discussions/1299 |
No description provided.