News for hackers. Stuff that matters.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by TkTech on Saturday January 07, 2017 @12:00AM (#13342443)
I like it!

I've seen just about every terminal implement its own version of tiling, and I just have to ask: Why? Doesn't this just increase the line count and surface area without offering anything that doesn't already work just fine as a tool maintained by someone else?

Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by aumerle on Saturday January 07, 2017 @12:25AM (#13342516)
For me (I am the author of kitty) it is for two reasons:

1) Multiplexers are a hack -- there are various problems with them, such as passing control codes through safely, keyboard shortcuts, performance, etc

2) Tiling WMs -- these can work (in fact I use a tiling WM myself) however, the nice thing about having tiling (and tab management) built into the terminal is that you can manage terminal windows and other windows differently on the same screen. For example, on small screens I like to have most GUI windows such s browser, etc. maximized, but I like to have terminal windows side-by-side, this is hard to manage if you want to have them on the same screen. With tiling built into the terminal, managing terminal windows is in a separate "namespace" from all other types of windows

Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by dxhdr on Saturday January 07, 2017 @02:04PM (#13345905)
Multiplexers may have some control key quirks but they seem to be essential for any workflow that involves a remote machine or VM. I can have the same workflow everywhere with tmux, local and remote. Though nesting tmux sessions is annoying and can be more convenient to have a remote session in its own terminal window.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by aumerle on Saturday January 07, 2017 @10:02PM (#13348007)
Why? The only advantage I can see to running a multiplexer under ssh is that you can resume after disconnection. There are plenty of non-multiplexer based solutions for that. And you can have the same session locally or remotely if you terminal emulator locally, as long as the terminal emulator support sessions, which kitty does.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by hobarrera on Saturday January 07, 2017 @01:09PM (#13345574)
You opinion tiling WMs makes me thing you haven't tried something dead-simple like i3wm. What you describe is a non-issue for us i3 users.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by aumerle on Saturday January 07, 2017 @10:00PM (#13348004)
Really? Tell me how you would do the following with i3 or whatever tiling WM floats your boat. Have four terminal windows arranged in a grid, run a random gui program by typing the name of the program in one of those terminals and have the program open maximized. Close the program by using a quit command inside the program and have the terminals laid out in the grid again. And all this without having to use any window management/layout commands, keyboard shortcuts, mouse gestures.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by hobarrera on Sunday January 08, 2017 @10:00PM (#13353671)
> And all this without having to use any window management/layout commands, keyboard shortcuts, mouse gestures.

I need to interact with my computer for it to do stuff, I think you somehow exagerated here.

Exluding that incoherent requirement, I'd have two choices:

1. Run the command in a terminal and hit super+f 2. Run the command in a terminal, super+right, super+w (I can switch back and for to <-> from the terminal).

Bonus point of using i3 is that I can optionally have any external program become part of my grid or add/remove exiting terminals to/from different mixed layouts (or workspaces). With multiplexers you're screwed and can't do that.

Note: I do use tmux on all my sessions, but it's mostly for "tab" support, or attaching/detaching (even from different workstations).

Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by groovy2shoes on Wednesday January 11, 2017 @10:08AM (#13374391)
I use awesome, and there's a way you can assign particular programs to specific tags, so that they always open on that tag. I'd be surprised if i3 didn't have a way to do the same, given that even dwm can do it ;)

Then, there's a third option in addition to the two you mentioned: spend two minutes (if that) doing the one-time configuration of having the wm reserve a tag for your browser (and perhaps other GUI apps that you anticipate frequently needing/wanting to run full-screen). In awesome, you'd do that by adding an entry to your global rules table like this one (in rc.lua):

    { rule = {
        instance = "firefox"
      },
      properties = {
        screen = "HDMI1",
        tag = "3"
      }
    }
Which will configure awesome so that any time a new client becomes managed by the wm, it will ensure that its window opens on the XRandR screen "HDMI1", and specifically on that screen's tag "3". ("3" is a string here because, while tags are by default "integers", "1" - "9", they can be named by any string afaik, and many people will rename them things like "www", "irc", "term", etc.).

You can also use awesome-client(1) to send Lua code to a running awesome instance for execution within the wm's context. This could be tossed into a shell script (and parameterized as you see fit) for convenience, if desired:

    $ awesome-client <<EOF
      require("awful").spawn("firefox", {
        screen = mouse.screen,
        tag = "3",
        switchtotag = true
      })
    EOF
The same awful.spawn() call you'd send to awesome-client can also be bound to a keystroke or a menu entry for quick access.

As for me, I tend to only use tmux under X11 if I'm worried about losing an ssh connection and therefore (without tmux, of course) the ssh session. However, I have DEC vt520 glass TTY that connects via RS-232 serial cable to a couple of servers (one OpenBSD, the other FreeBSD) and, while the terminal is pretty damn featureful, it has limited scrollback and awkward copy/paste functionality. So, on that terminal I use tmux quite a bit (although it seems to be rather chatty and during periods of heavy pty traffic can sometimes wind up spitting a garbage glyph on the screen here and there, but I think I may just need to increase the baud rate (despite already being set to ~56 Kbaud! cha-tty!)). The vt520 also only supports 2 sessions at once directly (and I can't even figure out how to get the OS to recognize the second one -_-), so tmux's multiplexing capability is also greatly appreciated when I'm basking in the amber glow.

Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by wodenokoto on Saturday January 07, 2017 @12:07AM (#13342471)
that is kinda funny. The main complaint of the other OpenGL terminal on the frontpage right now is that it doesn't have support for things like tiling or tabs, arguing that it is because terminals don't have nice interface support that we have to use hacks such as multiplexers.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by vortico on Saturday January 07, 2017 @12:22AM (#13342506)
This issue actually divides the terminal userbase. There are the ones with tabs like Gnome Terminal, and the ones that don't manage screens like Termite, st, xterm, and urxvt.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by Fnoord on Saturday January 07, 2017 @04:18PM (#13346701)
..and all of them run Tmux/Screen.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by blux on Saturday January 07, 2017 @11:00AM (#13344725)
urxvt supports tabs as well.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by mos_basik on Saturday January 07, 2017 @11:50AM (#13345032)
...what? I guess I've not dug into the config options enough then. I use the i3 tiling window manager with some tweaks to add uniform gaps between windows and remove their borders/title bars - at first thought, I can't think where/how urxvt would put tabs and make them look good.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by blux on Friday January 13, 2017 @11:21AM (#13391976)
See for example: https://awhan.wordpress.com/2010/04/28/urxvt-tabbed/

Configuration is done through ~/.Xdefaults.

Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by simcop2387 on Saturday January 07, 2017 @12:04AM (#13342457)
I'm not sure if Kitty does this but with Konsole in KDE it enables a number of features that I've found useful in the past. With Konsole's split view I can have a different terminal setup in each view, i.e. different fonts, font sizes, color scheme, scrollback settings, etc. I've found that to be very useful at times where I've got a bunch of different things being tailed and some are either longer than others or more important and i want them to be up in my face when something goes badly.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by TkTech on Saturday January 07, 2017 @01:10AM (#13342630)
Ah interesting, different fonts is something I didn't consider and something that could likely only be done by the terminal itself!
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by simcop2387 on Sunday January 08, 2017 @02:31AM (#13348763)
Yea it's not something I do commonly but sometimes my coding/terminal font of choice (FiraCode) just doesn't work if I'm say looking at a database dump or some other output and I've got to switch it.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by gravypod on Saturday January 07, 2017 @12:15AM (#13342488)
Tiling is very useful for many workloads on one monitor (in a laptop enviroment). Need to run some long running process that needs intervention + do some editing + connect to IRC all in a 12" laptop formfactor? Well tiling is what you need.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by vortico on Saturday January 07, 2017 @12:18AM (#13342498)
He's saying there are other better tools for the purpose. You can use a tiling window manager like i3 or dwm, or a manager within the shell like screen or tmux.
Re:Show HN: Kitty – A modern, hackable, featureful, OpenGL b... by gravypod on Saturday January 07, 2017 @12:22AM (#13342508)
I think of my computer as two half's of the same coin. One I don't need to think about and use my mouse to click though. The other is the one that needs to be respectful interacted with using my dark incantations of Alt/Cntrl + keys to summon features. I don't want these realms mixing.

That's just my opinion but it's probably mirrored.