noctuid / tdrop

A Glorified WM-Independent Dropdown Creator
BSD 2-Clause "Simplified" License
1.11k stars 44 forks source link

Tdrop autohide wayland error #422

Open neondeex opened 1 year ago

neondeex commented 1 year ago

⌠ ΠΣΔΠ ⚡⌡► WAYLAND_DISPLAY=no tdrop -n tdrop-thunar -a auto_hide -mta -w45% -h75% -y0 -x25% thunar --class=tdrop_thunar

XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1) xdo_get_active_window reported an error /usr/bin/tdrop: line 705: /tmp/tdropneondeex:1/classes/: Is a directory /usr/bin/tdrop: line 769: /tmp/tdropneondeex:1/geometries/: Is a directory X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 10 (X_UnmapWindow) Resource id in failed request: 0x0 Serial number of failed request: 18 Current serial number in output stream: 20

I-Want-ToBelieve commented 1 year ago

@neondeex hi tdrop don't support wayland, but support xwayland.

plz see https://github.com/noctuid/tdrop#wayland-support

for example: WAYLAND_DISPLAY=no tdrop -n tdrop_terminal --post-create-hook "autohide-tdrop &" -mta -h 60% -w 70% -x 15% -y 0 alacritty --class=tdrop_terminal

and

WAYLAND_DISPLAY=no tdrop -n tdrop-thunar --post-create-hook "autohide-tdrop &" -mta -h 60% -w 70% -x 15% -y 0 thunar --class=tdrop-thunar

Recording 2023-07-11 at 16 54 19

neondeex commented 1 year ago

tdrop -am -w45% -h75% -y0 -x25% thunar this was my previous key mapping and it hides the dropdown when pressing again now my new one in wayland (WAYLAND_DISPLAY=no tdrop -n tdrop-thunarx -mta -h60% -w70% -x25% -y0 thunar --class=tdrop-thunar) just create a new window every time

neondeex commented 1 year ago

@neondeex hi tdrop don't support wayland, but support xwayland.

plz see https://github.com/noctuid/tdrop#wayland-support

for example: WAYLAND_DISPLAY=no tdrop -n tdrop_terminal --post-create-hook "autohide-tdrop &" -mta -h 60% -w 70% -x 15% -y 0 alacritty --class=tdrop_terminal

and

WAYLAND_DISPLAY=no tdrop -n tdrop-thunar --post-create-hook "autohide-tdrop &" -mta -h 60% -w 70% -x 15% -y 0 thunar --class=tdrop-thunar

Recording 2023-07-11 at 16 54 19

image I get this error and i want to use kitty so bad

I-Want-ToBelieve commented 1 year ago

@neondeex
WAYLAND_DISPLAY=no KITTY_DISABLE_WAYLAND=1 tdrop -n tdrop_terminl --post-create-hook "autohide-tdrop &" -mta -h 65% -w 70% -x 15% -y 0 kitty --class tdrop_terminl

https://github.com/I-Want-ToBelieve/autohide-tdrop/issues/4#issuecomment-1627875592

KITTY_DISABLE_WAYLAND=1