iondodon / i3-switcher-x11

A workspace switcher for i3wm (X11)
MIT License
32 stars 1 forks source link

Running but not working #2

Open tkapias opened 8 months ago

tkapias commented 8 months ago

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)

iondodon commented 8 months ago

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 commented 8 months ago

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

tkapias commented 8 months ago

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"
iondodon commented 8 months ago

Ok, will continue to investigate this.

iondodon commented 8 months ago

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

tkapias commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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.

iondodon commented 8 months ago

Check if you have these installed:

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

tkapias commented 8 months ago
Lextum commented 5 months ago

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