pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
220 stars 42 forks source link

Option in settings to show frequent apps/items until you start typing #158

Open isle9 opened 1 year ago

isle9 commented 1 year ago

I'd like to see all of my frequent apps in a list when I open the launcher, before I start typing something in it.

mmstick commented 1 year ago

This should be easy to implement since 4eef0caae5deb3d608d4670af6457288490f85eb was merged.

canadaduane commented 1 year ago

I just did a little test, and I think this is simply a config change:

$ cat /usr/lib/pop-launcher/plugins/desktop_entries/plugin.ron 
(
    name: "Desktop Entries",
    description: "Query applications by their .desktop entries",
    query: (persistent: true),
    bin: (path: "desktop-entries"),
    icon: Name("new-window-symbolic"),
    history: true,
)

The query: (persistent: true) line makes the most frequently used apps show up in the result list even prior to typing a query term.

isle9 commented 1 year ago

Yap, works. Thanks a lot. Will I need to change the config with updates?

canadaduane commented 1 year ago

Will I need to change the config with updates?

Yes, unfortunately.

An alternative is to copy BOTH the plugin.ron file and the desktop-entries binary to your personal folder, below. This will override any system updates (which would be good for the plugin.ron file as it pins the configuration, but bad for the plugin binary, since it means system updates to this particular launcher plugin will be "ignored"):

$ mkdir -p ~/.local/share/pop-launcher/plugins/desktop_entries
$ cp /usr/lib/pop-launcher/plugins/desktop_entries/* \
        ~/.local/share/pop-launcher/plugins/desktop_entries

(Then edit the ~/.local/share/pop-launcher/plugins/desktop_entries/plugin.ron config file as mentioned earlier in this thread).

isle9 commented 1 year ago

Hopefully the plugin isn't updated that often then.

I've changed the title to better match the feature request. Ideally, this would be an option in the settings somewhere.