dflock / ulauncher-window-switcher

Linux/X11 Window Switcher plugin for Ulauncher
GNU General Public License v3.0
14 stars 10 forks source link

Show icons next to applications #6

Open systemoperator opened 3 years ago

systemoperator commented 3 years ago

It would be great, to show the corresponding icon next to the applications in the list.

dflock commented 2 years ago

It would be nice. I haven't looked into doing this, but my guess is that it would be a fair amount of work & extra code - and I think it would probably slow down the display of the list quite a lot.

So, unless someone appears with a patch that magically does this without lots of extra complexity & slowness, then I'm going to close this, sorry.

systemoperator commented 2 years ago

@dflock How about this implementation: https://github.com/XCMer/fuzzy-window-switcher

It works like a charm. I could not observe any bottleneck concerning its performance.

It's also implemented with Python.

dflock commented 2 years ago

That's definitely a good find, thanks!

However, that's a GTK3 only implementation - that code requires GTK3 (& pygobject) installed to work. It also doesn't take themes etc into account, apparently: https://github.com/XCMer/fuzzy-window-switcher/issues/12

This plugin currently works on any system using the X Window Manager, afaik - and I wouldn't want to reduce that compatibility.

dflock commented 2 years ago

Although, thinking about it, we could probably put some code based on that implementation into a try ... catch block and have the current icon as a fallback.

That might not be too bad, maybe I'll try that.