why i3 wm maneger wont show gui of autokey ?

74 views
Skip to first unread message

Zhe Lee

unread,
Aug 20, 2020, 11:41:17 PM8/20/20
to autokey-users
I use i3 wm, I call autokey from rofi, autokey-qt, autokey-gtk. But the autokey gui wont show out how to fix this problem? 

os: manajaro 20
i3: i3 version 4.18.2 (2020-07-26) © 2009 Michael Stapelberg and contributors.

it works fine in kde plasma. How to fix this problem? 

Any other info I need provide? 

Zhe Lee

unread,
Aug 20, 2020, 11:48:18 PM8/20/20
to autokey-users
By the way the autokey running success but no gui showed.

Joe

unread,
Aug 21, 2020, 4:02:05 AM8/21/20
to autoke...@googlegroups.com
First, eliminate the obvious. By default, when AutoKey starts, it does
not display the main window. It places its icon in your panel and runs
in the background.

If you left click on the icon in the panel, it  should display the main
window. If you right click on the icon, it displays a context menu with
several options and, optionally, a list of scripts and phrases you have
set to display there.

Try both clicks on the icon and see what happens. If that doesn't work,
then try the next few steps.

Do you have any other Qt or GTK applications that do work on your desktop?

Open a terminal and run

pkill autokey
autokey-gtk -c --verbose

(You can use autokey-qt instead, if you prefer.)

This will kill any running autokey and start it up again telling it to
show the main menu once it loads. It will also start a trace of
AutoKey's activities.

You can copy and paste the trace from your terminal into an email to
this list/forum post.

This should give us some clues as to why it's not working as desired.

Once you have the trace, stop AutoKey and restart it normally for normal
use so it doesn't fill your terminal with garbage or exit when you close
the terminal window.

----

I don't know i3 or rofi, but I can help with your settings.

You'll find the backspace setting in
$HOME/.config/autokey/data/.folder.json . Set it to "false." This may be
a global setting, see below.

Each script and phrase has it's own metadata sidecar file in the same
folder.

By default, they live in a directory subtree starting at
$HOME/.config/autokey/data.

I think the default folder for phrases is 'My Phrases". I don't use that
any more.

If a phrase is named myphrase, then the text of the phrase will be in
myphrase.txt and the metadata (all the settings for that phrase) will be
in .myphrase.json.

Since the names of the metadata files start with a dot, they are hidden
files in Linux, so you have to use something like ls -a to list them
from the CLI (terminal command line interface) or tell your GUI file
manager to display hidden files.

In this file you'll see all the settings in a human readable form. Part
of it looks like this:

    "abbreviation": {
        "abbreviations": [],
        "backspace": true,
        "ignoreCase": false,
        "immediate": false,
        "triggerInside": false,
        "wordChars": "[\\w]"
    },

It looks like you may be able to control what backspace does on a phrase
by phrase basis by setting backspace to false here. I'm not sure what
that parameter does. It might instead have to do with removing the typed
abbreviation. (The above abbreviation [] is empty because I copied it
from a phrase that doesn't have one.)

While you might be able to get away with editing these files while
AutoKey is running, it's a better idea to terminate AutoKey first and
restart it when you're done editing. Eventually, you will probably also
want to delete any backup files your text editor might create, but
AutoKey should ignore them, so they're not a problem.

Joe
> --
> 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
> <mailto:autokey-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/autokey-users/acf9d82d-ba51-4eeb-a446-bc330f5b1707n%40googlegroups.com
> <https://groups.google.com/d/msgid/autokey-users/acf9d82d-ba51-4eeb-a446-bc330f5b1707n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages