Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Caffeine keybind not working (again)

Open Deivis44 opened this issue 1 year ago • 9 comments

As we saw, wlinhibit needed to be compiled by hand to solve a problem with the package in the installation, however with the new implementation caffeine is not being enabled, I reinstalled everything, made settings by default and now nothing is working haha, idk what to do, the kebinds was working previosly (not wit the ax-shell) implementation, just with wlinhibit compiled

Deivis44 avatar Jun 01 '25 01:06 Deivis44

I see. Could you check if wlinhibit is running? It could interfere with the custom implementation.

Axenide avatar Jun 01 '25 08:06 Axenide

I see. Could you check if wlinhibit is running? It could interfere with the custom implementation.

As I said, I had to compile it myself, and when you added the keybind and new implementation without it, I erased the binary, however it's not working, trying to activate the keybind and does nothing, I mean, was trying to use other commands even reinstalled your config, checked new dependencies and nothing :c. Where is that trigger located in the config to see if something is going wrong

Also, IDK why I can't upload a video showing the problem, where I show changing the shortcut in the ax-shell options, algo using wev to show my keyboard actions but nothing works

Deivis44 avatar Jun 01 '25 16:06 Deivis44

I see. Could you check if wlinhibit is running? It could interfere with the custom implementation.

As I said, I had to compile it myself, and when you added the keybind and new implementation without it, I erased the binary, however it's not working, trying to activate the keybind and does nothing, I mean, was trying to use other commands and just. I reinstalled your config, checked new dependencies and nothing :c. Where is that trigger located in the config to see if something is going wrong

Also, IDK why I can't upload a video showing the problem, where I show changing the shortcut in the ax-shell options, algo using wev to show my keyboard actions but nothing works

Already found the trigger in the script inhibit.py, when you run it by yourself shows you the listener correctly, However I think it might be then implementation made in the module buttons.py, when you call it nothing happens in my case, or maybe it's not taking the current status

Image

Deivis44 avatar Jun 01 '25 17:06 Deivis44

I don't understand why it wouldn't work in your end, it works on all my devices. PC, laptop and VMs.

Could you run the script and check for a process called "ax-inhibit"?

Axenide avatar Jun 01 '25 17:06 Axenide

Image

Image

Image

Here it is, the main problem is the keybing is not updating the dock status, also running the script

Image

Deivis44 avatar Jun 01 '25 18:06 Deivis44

Wait, I misunderstood the issue and completely ignored the "keybind" thing. lmao

I think I forgot to update the keybind when I replaced wlinhibit.

Axenide avatar Jun 01 '25 18:06 Axenide

Wait, I misunderstood the issue and completely ignored the "keybind" thing. lmao

I think I forgot to update the keybind when I replaced wlinhibit.

It could be the thing, I'm debugging and added print lines to confirm the process is being activated, when you use the button of the dock everything goes nice, the problem is the keybind haha. where can i modify it?

Image

Deivis44 avatar Jun 01 '25 18:06 Deivis44

Image

Yeah, the problem is here, you're calling the other function that does not exist anymore Solution: change ... button.toggle_wlinhibit to toggle_inhibit

Image

Note: I think now the problem is gone but is upside down, you got a notification about caffeine enabled but updates the button to off, and when you have the notification about is being enabled the button turns on haha, i'll check later if i'm the problem

Image

Image

Deivis44 avatar Jun 01 '25 18:06 Deivis44

Fixed

Axenide avatar Jun 01 '25 21:06 Axenide