Where does autokey store usage counts?

4 views
Skip to first unread message

William Morris

unread,
Oct 16, 2025, 1:33:41 PM (4 days ago) Oct 16
to autokey-users
I see in .config/autokey... that it's possible to sort by usageCounts, but how is that information stored? 

Little Girl

unread,
Oct 16, 2025, 4:29:37 PM (3 days ago) Oct 16
to autoke...@googlegroups.com
Hey there,

William Morris wrote:

>I see in .config/autokey... that it's possible to sort by
>usageCounts, but how is that information stored?

That setting enables the sorting of the items in the tray menu, which
can either be sorted alphabetically if the setting is disabled or be
sorted by how frequently you use each item if you enable it.

The setting can be toggled here in AutoKey GTK:
Edit --> Preferences --> General --> Popup Menu --> Sort menu items
with most frequently used first

The setting can be toggled here in AutoKey Qt:
Settings --> General --< Popup Menu --> Sort menu items with most
frequently used first

--
Little Girl

There is no spoon.

William Morris

unread,
Oct 16, 2025, 4:48:48 PM (3 days ago) Oct 16
to autoke...@googlegroups.com
Thanks for taking the time, but that wasn't even close to the question I asked. Perhaps I should have been more specific:

If Autokey can sort by usage, it has to track that usage. Where is the data that tracks usage stored?

--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/autokey-users/68f155ad.050a0220.c5e58.ed12%40mx.google.com.

Little Girl

unread,
Oct 16, 2025, 7:11:19 PM (3 days ago) Oct 16
to autoke...@googlegroups.com
Hey there,

William Morris wrote:

>Thanks for taking the time, but that wasn't even close to the
>question I asked. Perhaps I should have been more specific:
>
>If Autokey can sort by usage, it has to track that usage. Where is
>the data that tracks usage stored?

This should give you the answers you're after:

https://github.com/search?q=repo%3Aautokey%2Fautokey+usageCount&type=code

David King

unread,
Oct 17, 2025, 12:59:01 AM (3 days ago) Oct 17
to autoke...@googlegroups.com
On 10/16/25 1:33 PM, William Morris wrote:
> I see in .config/autokey... that it's possible to sort by usageCounts,
> but how is that information stored?

The usage counts are stored in the JSON files associated with each
phrase/script in your configuration directory, key = "usageCount". 
These files will be in the directory tree under
${HOME}/.config/autokey/data, unless you've customized that path in your
config.

--
David King
dave at daveking dot com

Reply all
Reply to author
Forward
0 new messages