Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kitty does not tile #1335

Open
ChristianChiarulli opened this issue Nov 4, 2022 · 12 comments
Open

kitty does not tile #1335

ChristianChiarulli opened this issue Nov 4, 2022 · 12 comments

Comments

@ChristianChiarulli
Copy link

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

@paulmiddelkoop
Copy link

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

@jammus
Copy link

jammus commented Nov 10, 2022

I have the same problem but am still on Monterey

@jammus
Copy link

jammus commented Nov 10, 2022

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

@kblcuk
Copy link

kblcuk commented Nov 10, 2022

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

@anoother
Copy link

Also facing this issue.

@fsperling
Copy link

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

@825i
Copy link

825i commented Nov 23, 2022

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

@ianyh
Copy link
Owner

ianyh commented Jan 31, 2023

Might be addressed with #1396

@surprisetalk
Copy link

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
Copy link

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

@adudenamedruby
Copy link

adudenamedruby commented Jul 2, 2023

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.... 🤷‍♂️

@simaxme
Copy link

simaxme commented Dec 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests