i3-switcher-x11 icon indicating copy to clipboard operation
i3-switcher-x11 copied to clipboard

Running but not working

Open tkapias opened this issue 11 months ago • 11 comments

I installed i3-switcher-x11 with cargo+git and apt+deb, both binaries seem to run fine but nothing works. There is no output, window or reaction to alt+tab.

I don't have any prior binding on alt+tab and I tried with win+tab, which is my i3wm modifier but it doesn't work too.

OS: Debian Testing - trixie/sid x86_64 WM: i3 (X11) - version 4.23 (2023-10-29) i3bar: i3status-rs - 0.33.0 (commit e62d10e 2024-02-19) i3-switcher-x11: 0.2 i3wm modifier: MOD4 (win key)

tkapias avatar Mar 16 '24 09:03 tkapias

Thank you for reporting this. I'm working now on reimplementing big parts of the code, which might fix your problem. I will let you know when a new version will be available.

iondodon avatar Mar 16 '24 12:03 iondodon

@tkapias There is new version 0.3.0. Please try it and tell me if the problem still persists. Use left Alt key.

iondodon avatar Mar 16 '24 12:03 iondodon

Still not working.

But now I have a warning in the output at launch:

(i3-switcher-x11:1469639): Gtk-WARNING **: 22:24:45.348: Theme parser error: <data>:10:13-23: No property named "max-height"

(i3-switcher-x11:1469639): Gtk-WARNING **: 22:24:45.348: Theme parser error: <data>:13:13-22: No property named "max-width"

tkapias avatar Mar 16 '24 15:03 tkapias

Ok, will continue to investigate this.

iondodon avatar Mar 16 '24 16:03 iondodon

@tkapias What do you get if you run with RUST_LOG=trace i3-switcher-x11?

iondodon avatar Mar 17 '24 11:03 iondodon

I get a loop of Window visible - false. Even when I press Alt+Tab.

$ RUST_LOG=trace i3-switcher-x11                                             
                                                                             
(i3-switcher-x11:2714523): Gtk-WARNING **: 19:02:24.209: Theme parser error: <data>:10:13-23: No property named "max-height"                              
                                                                             
(i3-switcher-x11:2714523): Gtk-WARNING **: 19:02:24.209: Theme parser error: <data>:13:13-22: No property named "max-width"                               
[2024-03-17T12:02:24Z DEBUG i3_switcher_x11::ui] Window visible - false      
[2024-03-17T12:02:24Z DEBUG i3_switcher_x11::ui] Window visible - false      
[2024-03-17T12:02:24Z DEBUG i3_switcher_x11::ui] Window visible - false

tkapias avatar Mar 17 '24 12:03 tkapias

I checked xev to be sure that there is no issue with my alt key code. Here is the log when pressing and releasing Alt+Tab:

KeyPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179959622, (1161,519), root:(1163,521),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179959902, (1161,519), root:(1163,521),
    state 0x18, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) " "
    XmbLookupString gives 1 bytes: (09) "       "
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179960030, (1161,519), root:(1163,521),
    state 0x18, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) " "
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179960246, (1161,519), root:(1163,521),
    state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

tkapias avatar Mar 17 '24 12:03 tkapias

And I tried also to see if the i3-switcher-x11 window exist by running wmctrl -l while pressing Alt-Tab, but there is no visible or hidden matching window.

tkapias avatar Mar 17 '24 12:03 tkapias

Check if you have these installed:

libayatana-appindicator3-1 llvm clang libx11-6 libxcb-randr0 libxrandr2

iondodon avatar Mar 17 '24 17:03 iondodon

  • [x] All of them were already installed.

tkapias avatar Mar 17 '24 18:03 tkapias

Hey, I am running into the same issue here. With the RUST_LOG=trace set, I get just the following output

[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false

When I press Alt+Tab, I get en indent in the console, not sure if this means anything `^[ [2024-07-01T08:17:00Z DEBUG i3_switcher_x11::ui] Window visible - false

Lextum avatar Jul 01 '24 08:07 Lextum