Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

kitty does not tile

Open ChristianChiarulli opened this issue 3 years ago • 12 comments

Describe the bug kitty does not respect tiling

Applications: kitty Terminal

To Reproduce Install kitty and try to tile

Expected behavior Kitty should tile

Versions:

  • macOS: ventura 13.0
  • Amethyst: 0.16.0 (94)

Debug Info

Version: 0.16.0 (94)

OS version: Version 13.0 (Build 22A380)

Screens:
	(0.0, 0.0, 1470.0, 956.0) [(0.0, 0.0, 1470.0, 956.0)]

Configuration:
use-canary-build: 0
window-resize-step: 5
restore-layouts-on-launch: 1
ignore-menu-bar: 1
debug-layout-info: 0
enables-layout-hud: 0
screen-padding-left: 0
follow-space-thrown-windows: 1
focus-follows-mouse: 0
float-small-windows: 0
floating: (
        {
        id = "org.blenderfoundation.blender";
        "window-titles" =         (
        );
    },
        {
        id = "com.hnc.Discord";
        "window-titles" =         (
        );
    },
        {
        id = "org.gimp.gimp-2.10:";
        "window-titles" =         (
        );
    },
        {
        id = "im.riot.app";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.systempreferences";
        "window-titles" =         (
        );
    },
        {
        id = "com.valvesoftware.steam";
        "window-titles" =         (
        );
    }
)
enables-layout-hud-on-space-change: 0
new-windows-to-main: 1
window-minimum-height: 0
floating-is-blacklist: 1
screen-padding-right: 0
smart-window-margins: 1
mod1: (
    option,
    shift
)
screen-padding-bottom: 0
screen-padding-top: 0
window-margin-size: 10
mod2: (
    option,
    shift,
    control
)
layouts: (
    tall,
    fullscreen
)
mouse-follows-focus: 0
window-margins: 1
window-minimum-width: 0

Additional context Was working fine before ventura update

ChristianChiarulli avatar Nov 04 '22 17:11 ChristianChiarulli

I have the same problem. For me, most of the times the first Kitty window is tiled, but the second one seems to float.

paulmiddelkoop avatar Nov 07 '22 13:11 paulmiddelkoop

I have the same problem but am still on Monterey

jammus avatar Nov 10 '22 01:11 jammus

Trying to debug this further...

  • I'm using Kitty installed via Nix (https://github.com/jammus/dotfiles)
  • I'm generally launching kitty using skhd
  • The non-tiling behavior happens if I launch using kitty -1 via skhd
  • When launching with, via skhd, kitty tiling works as expected
  • However in both cases (and like @paulmiddelkoop says it seems to be the second window onwards) cycling to the kitty window does not give it full focus (the cursor remains greyed out and typing does nothing) and further cycling is not possible
  • When cycling to the kitty window with mouse follow on the mouse does indeed follow
  • Kitty sessons launched by running kitty from the default mac terminal (or, in fact, Kitty itself - even a 'broken' one) have the correct tiling and cycling behaviour (as do further windows created with ctrl-n inside kitty)
  • Seems to be, at least in my case, an artifact of kitty on Nix. Launching via skhd creates a .kitty-wrapped process (as seen when cmd-tabbing), whereas via command line it is a 'real' Kitty

My initial guess is that it's Kitty/Nix doing something unexpected rather than Amethyst. But I don't know enough about them all to know for certain

jammus avatar Nov 10 '22 01:11 jammus

I experience similar behaviour with Telegram native app (installed via brew) on Ventura -- no matter what I do, it just stays floating.

kblcuk avatar Nov 10 '22 19:11 kblcuk

Also facing this issue.

anoother avatar Nov 11 '22 20:11 anoother

I also have the problem with Zim. Zim is a Python/GTK app which I start from a terminal.

fsperling avatar Nov 14 '22 09:11 fsperling

Alacritty tiles fine if anyone wants a better terminal app than Kitty.

825i avatar Nov 23 '22 11:11 825i

Might be addressed with #1396

ianyh avatar Jan 31 '23 01:01 ianyh

Secure Keyboard Entry doesn't help me.

I'm facing all of @jammus's exact symptoms (without Nix).

Hitting "Open new OS window" from the sidebar doesn't tile the new window. But running kitty inside of kitty to launch a new window does tile.

Note that launching a third window causes the second window to tile. In fact, launching an N+1 window always causes window N to tile.

surprisetalk avatar Apr 01 '23 12:04 surprisetalk

Whoa. Just discovered that if you have more than 5 kitty windows open on the same screen, it starts tiling correctly again.

surprisetalk avatar Apr 01 '23 12:04 surprisetalk

Also experiencing this and hoping it gets resolved, but I wonder if this isn't because Kitty is doing something weird, and not Amethyst. Here's why I say this: I'm only experiencing this behaviour in certain situations. Here's what I'm seeing:

Condition Steps Result
Kitty not launched Launch Kitty * Amethyst grabs the app's window and then tiles it properly.
* If I Cmd+n, the second window tiles properly.
* If I Cmd+n again, the third window does not tile.
* If I Cmd+n again, the third window tiles, but the fourth window (the new one) does not tile.
* etc
Kitty not launched Launch Kitty * Amethyst grabs the app's window and then tiles it properly.
* If I Cmd+n, the second window tiles properly.
* If I Cmd+w, the second window closes, and Amethyst continues tiling everything properly.
* A Cmd+n, now opens a non-tiled Kitty window.
* Same behaviour as above continues for opening new windows.
Kitty launched
One open window
Open new windows * Weird tiling behaviour continues.
Kitty launched
No open windows
Open new windows * Weird tiling behaviour continues.

I'm continuing to use iTerm2 for now because I want tiling, but I really want to use Kitty because it's so much faster with much less bloat. lol. I would switch over to Alacritty, but I like ligatures so.... 🤷‍♂️

adudenamedruby avatar Jul 02 '23 14:07 adudenamedruby

For anyone having this issue: There is a kitty option named macos_quit_when_last_window_closed. If you set this option to yes, the first launched kitty window will always properly tile because kitty will quit after you have executed "exit" in terminal. Anyways, this will not fix the issue when opening a second kitty window. For me, one pane is always enough because I am using tmux.

simaxme avatar Dec 04 '23 12:12 simaxme