You are not logged in.

#1 2025-11-27 18:16:04

dauriac
Member
Registered: 2019-01-29
Posts: 54

autokey-gtk not working

I installed autokey-gtk from the aur. The installation and configuration went fine. I used the same Phrases and Hotkey that I use on another archlinux and an ubuntu, but hitting the  hot keys does not send the expected phrase

2025-11-27 19:12:56,777 DEBUG - autokey.iomediator.iomediator - Key.SUPER pressed
2025-11-27 19:12:58,304 DEBUG - autokey.service - Raw key: <Key.F1: '<f1>'>, modifiers: [<Key.SUPER: '<super>'>], Key: Key.F1
2025-11-27 19:12:58,304 DEBUG - autokey.service - Window visible title: 'Terminal - dauriac@runningJack:~', Window class: 'xfce4-terminal.Xfce4-terminal'
2025-11-27 19:12:58,869 DEBUG - autokey.iomediator.iomediator - Key.SUPER released

Thank you for any help since living without autokey is quite hard for me !

Offline

#2 2025-11-27 20:24:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,716

Re: autokey-gtk not working

Is this on X11 or wayland?

loginctl sessin-status

(Spoiler: you can more or less forget about this on wayland and will require some other solution)

Offline

#3 2025-11-27 20:39:30

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,094
Website

Re: autokey-gtk not working

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2025-11-28 09:54:36

dauriac
Member
Registered: 2019-01-29
Posts: 54

Re: autokey-gtk not working

On X11 :

dauriac@megajack:~$ loginctl session-status
1 - dauriac (1000)
  Since: Wed 2025-11-26 17:57:34 CET; 16h ago
  State: active
 Leader: 673 (lightdm)
   Seat: seat0; vc7
Display: :0
 Remote: no
Service: lightdm-autologin
   Type: x11
  Class: user
Desktop: xfce
   Idle: no
   Unit: session-1.scope
         ├─   673 lightdm --session-child 13 16
         ├─   713 xfce4-session
         ├─   790 /usr/bin/ssh-agent -s
         ├─   800 xfwm4 --display :0.0 --sm-client-id 2ed0950a9-82a9-455b-87f0->
         ├─   822 xfsettingsd --display :0.0 --sm-client-id 2900fe125-c5e2-4fb7>
         ├─   842 xfce4-panel --display :0.0 --sm-client-id 2be63ab71-2a59-4983>
         ├─   848 Thunar --sm-client-id 270665407-d5ad-4069-9ff0-125517df40e8 ->
         ├─   855 xfdesktop --display :0.0 --sm-client-id 2d1e9a0f7-fc46-4e57-a>
         ├─   918 xfce4-power-manager --restart --sm-client-id 21cafd706-c05f-4>
         ├─   938 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins>
         ├─   939 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins>
         ├─   950 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins>
         ├─   951 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins>
         ├─   966 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins>
         ├─   998 /usr/bin/python /usr/bin/autokey-gtk
         ├─  1003 /usr/lib/localsearch-3
         ├─  1004 xfce4-screensaver
         ├─  1009 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
         ├─  1016 nm-applet
         ├─  4681 /usr/bin/discord
         ├─  4685 /opt/discord/Discord --type=zygote --no-zygote-sandbox
         ├─  4686 /opt/discord/Discord --type=zygote
         ├─  4688 /opt/discord/Discord --type=zygote
         ├─  4703 /opt/discord/chrome_crashpad_handler --monitor-self-annotatio>
         ├─  4733 /opt/discord/Discord --type=zygote --no-zygote-sandbox
         ├─  4740 /proc/self/exe --type=utility --utility-sub-type=network.mojo>
         ├─  4803 /proc/self/exe --type=renderer --crashpad-handler-pid=4703 -->
         ├─  4864 /proc/self/exe --type=utility --utility-sub-type=audio.mojom.>
         ├─ 85522 Telegram
         ├─ 93648 /usr/lib/firefox/firefox
         ├─ 93653 /usr/lib/firefox/crashhelper 93648 9 /tmp/ 11
         ├─ 93717 /usr/lib/firefox/firefox -contentproc -ipcHandle 0 -signalPip>
         ├─ 93734 "/usr/lib/firefox/firefox -contentproc -parentBuildID 2025112>
         ├─ 93747 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─ 93757 "/usr/lib/firefox/firefox -contentproc -parentBuildID 2025112>
         ├─ 93803 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─ 93856 "/usr/lib/firefox/firefox -contentproc -parentBuildID 2025112>
         ├─ 93867 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─ 95577 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─ 96582 /usr/bin/xfce4-terminal
         ├─ 96607 bash
         ├─102263 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─116617 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─117092 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─117215 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─117379 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─117572 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─117596 "/usr/lib/firefox/firefox -contentproc -isForBrowser -prefsHa>
         ├─117739 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117740 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117746 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117747 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117749 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117751 /usr/lib/glycin-loaders/2+/glycin-image-rs --dbus-fd 21
         ├─117753 /usr/lib/glycin-loaders/2+/glycin-image-rs --dbus-fd 44
         ├─117754 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117755 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117761 /usr/lib/glycin-loaders/2+/glycin-image-rs --dbus-fd 26
         ├─117767 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117769 /usr/lib/glycin-loaders/2+/glycin-image-rs --dbus-fd 21
         ├─117771 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117775 bwrap --unshare-all --die-with-parent --chdir / --ro-bind /us>
         ├─117776 /usr/lib/glycin-loaders/2+/glycin-image-rs --dbus-fd 28
         ├─117837 loginctl session-status
         └─117838 less

nov. 26 18:06:59 megajack sudo[4469]: pam_unix(sudo:session): session closed fo>
nov. 26 20:51:48 megajack sudo[24033]:  dauriac : TTY=pts/2 ; PWD=/home/dauriac>
nov. 26 20:51:48 megajack sudo[24033]: pam_unix(sudo:session): session opened f>
nov. 26 21:05:20 megajack sudo[24033]: pam_unix(sudo:session): session closed f>
nov. 26 22:16:23 megajack systemd[1]: session-1.scope: Unit now frozen-by-paren>
nov. 27 09:56:54 megajack systemd[1]: session-1.scope: Unit now thawed.
nov. 27 19:04:08 megajack Telegram[85522]: QPainter::begin: Paint device return>
nov. 27 19:04:08 megajack Telegram[85522]: QWidget::render: Cannot render with >
nov. 27 20:26:50 megajack systemd[1]: session-1.scope: Unit now frozen-by-paren>
nov. 28 08:46:38 megajack systemd[1]: session-1.scope: Unit now thawed.

thx !

Offline

#5 2025-11-28 15:42:40

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,716

Re: autokey-gtk not working

Does it extend to all receiving clients (eg some text editor - pasting into an interactive shell is "special")
Speaking of which,  which https://autokey.github.io/api/keyboard. … d.SendMode do you use?

Offline

#6 2025-11-28 20:42:19

dauriac
Member
Registered: 2019-01-29
Posts: 54

Re: autokey-gtk not working

It is not working with all receiving clients that I tried : xfce4-terminal, firefox, emacs.
Sorry but I don't understand the next question. I don't use any script, only interactive use to avoid typing recurrent text.

Offline

#7 2025-11-28 21:05:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,716

Re: autokey-gtk not working

configuration went fine

Post the config.

Idk how much of https://github.com/autokey/autokey/wiki … s-not-work is actually true, but almost nothing accepts synthetic events since decadeS - certainly not gtk clients.
You'd want to use "xdotool type foobar"

Offline

#8 2025-11-28 22:04:29

dauriac
Member
Registered: 2019-01-29
Posts: 54

Re: autokey-gtk not working

~/.config/autokey$ more autokey.json
{
    "version": "0.96.0",
    "userCodeDir": null,
    "settings": {
        "isFirstRun": true,
        "serviceRunning": true,
        "menuTakesFocus": false,
        "showTrayIcon": true,
        "sortByUsageCount": true,
        "promptToSave": false,
        "enableQT4Workaround": false,
        "interfaceType": "XRecord",
        "undoUsingBackspace": true,
        "windowDefaultSize": [
            600,
            400
        ],
        "hPanePosition": 150,
        "columnWidths": [
            150,
            50,
            100
        ],
        "showToolbar": true,
        "notificationIcon": "autokey-status",
        "workAroundApps": ".*VirtualBox.*|krdc.Krdc",
        "triggerItemByInitial": false,
        "disabledModifiers": [],
        "scriptGlobals": {},
        "gtkTheme": "classic",
        "gtkExpandedRows": [
            "0"
        ],
        "pathLastOpen": "0"
    },
    "folders": [],
    "toggleServiceHotkey": {
        "enabled": true,
        "modifiers": [
            "<shift>",
            "<super>"
        ],
        "hotKey": "k"
    },
    "configHotkey": {
        "enabled": true,
        "modifiers": [
            "<super>"
        ],
        "hotKey": "k"
    }
}

Offline

#9 Yesterday 08:54:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,716

Re: autokey-gtk not working

This doesn't look like you've configured anything that would be expected to insert some text somewhere on a shortcut?
(It also says that this the still running first run?)

Offline

#10 Yesterday 09:10:53

dauriac
Member
Registered: 2019-01-29
Posts: 54

Re: autokey-gtk not working

The Phrases and associated Hot keys are not in the config file, but rather in a other directory data/. I checked that this files (text and json) are OK.

Offline

#11 Yesterday 09:18:13

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,716

Re: autokey-gtk not working

Replace those w/ a single config that assigns one hotkey to printing one string "snafu" and make sure the file doesn't contain any other non-ascii characters.
strace autokey-gtk to make sure its sourced (and not any of your old config)
Test and post that config.

Offline

#12 Today 10:36:49

dauriac
Member
Registered: 2019-01-29
Posts: 54

Re: autokey-gtk not working

Thank you for your answer.
I already removed and re-intsalled autoukey-gtk deleting the .config/autokey directory three times. Using the default Phrases and very simple hotkey it is still not working.  So I give up and I will write my own small  and basic python app to capture 4  specific keys associated to fixed phrases. Autokey is fine but really overkill for my need.
However I feel frustrated not understanding why autokey-gtk does not work on my archlinux  on my new computer, while all others apps have been  easily installed !
Thank you again for your help.

Offline

Board footer

Powered by FluxBB