Most active commenters

    ←back to thread

    Okay, I Like WezTerm

    (alexplescan.com)
    488 points alexpls | 20 comments | | HN request time: 0.499s | source | bottom
    Show context
    leblancfg ◴[] No.41224245[source]
    Recently switched to WezTerm and I'm very happy. Was using kitty before that – loved the set up and simplicity coming from iTerm2. WezTerm is leaps and bounds better in terms of what comes out-of-the-box. My terminal config is short enough to sit all in one screen on my editor. After that, the terminal just... gets out of the way and I don't need to think about it.

    But the straw that broke my back with using kitty was, I'd end up encountering issues or trying to recreate some of iTerm2's features, only to end up time and again on kitty's maintainer's terse and dismissive comments.

    e.g. IIRC his answer to "How do I set up tmux with kitty?" was something like "Don't, tmux is dumb" and closing it. Eventually I gave up.

    replies(13): >>41224353 #>>41224451 #>>41225545 #>>41225699 #>>41226105 #>>41226387 #>>41228168 #>>41228348 #>>41229104 #>>41231822 #>>41234027 #>>41235510 #>>41264822 #
    1. throwanem ◴[] No.41225545[source]
    Does WezTerm support an equivalent of iTerm's "hotkey window"?

    For those unfamiliar, that's a window tied to a show/hide keybinding which when shown floats above all other windows, making a terminal instantly available everywhere - a feature I could live without, but don't care to. I'd love to switch for all of WezTerm's other features, but without that it's simply a nonstarter for me.

    replies(6): >>41225686 #>>41225693 #>>41226027 #>>41226343 #>>41227294 #>>41233557 #
    2. lambdaba ◴[] No.41225686[source]
    You can set this up very easily with Hammerspoon, and have it work with whichever terminal or app you want.
    3. ssijak ◴[] No.41225693[source]
    That is the first thing I configure in iTerm. To have it slide down like Quake terminal, and hide it from the dock
    replies(1): >>41227890 #
    4. lupusreal ◴[] No.41226027[source]
    If you use X, you can use tdrop to do this with any window. I have it set up with kitty, pcmanfm, and emacs client.
    replies(2): >>41226696 #>>41236018 #
    5. technojamin ◴[] No.41226343[source]
    Not out of the box, but I use Hammerspoon to implement a global hotkey to show WezTerm: https://github.com/jaminthorns/environment/blob/a609e81f3f41...

    I don't have a keybinding to hide, but you could easily achieve that by inspecting the active window with `hs.window.focusedWindow()`/`hs.window.frontmostWindow()` and making the behavior conditional based on the application: https://www.hammerspoon.org/docs/hs.window.html#focusedWindo...

    In WezTerm, you can control whether the terminal is always on top with the `ToggleAlwaysOnTop` action: https://wezfurlong.org/wezterm/config/lua/keyassignment/Togg...

    replies(2): >>41226580 #>>41227560 #
    6. pmarreck ◴[] No.41226580[source]
    I was unfamiliar with Hammerspoon; to those like me, https://www.hammerspoon.org/
    replies(1): >>41232104 #
    7. adammarples ◴[] No.41226696[source]
    X?
    replies(1): >>41226755 #
    8. vladvasiliu ◴[] No.41226755{3}[source]
    X11, the "old" [0] Linux graphics server.

    ---

    [0] "old" because there's a new kid in town: wayland.

    replies(2): >>41231267 #>>41240276 #
    9. ainka-ainka ◴[] No.41227294[source]
    I do it using https://gist.github.com/meowtochondria/8b99b8fbf364eec41ef66... on my Debian based machine running X11. I've bound this script to a key as a global shortcut using OS provided facilities. See the comment on gist if you have a different setup and want to adapt it to your needs. Algo: 1. Find path to wezterm binary by looking at desktop file 2. Use pgrep to get pid of running binary from previous step. 3. If no window is running, launch desktop file using gio 4. If window is running, bring it to front using wmctrl
    10. DavideNL ◴[] No.41227560[source]
    Note that this does only the “show/hide’ the window part;

    The iTerm2 hotkey window, is a floating window, which for example also works in a space with another Fullscreen window/app opened (without moving to another space.)

    replies(1): >>41305579 #
    11. organsnyder ◴[] No.41227890[source]
    Yakuake is usually the first app I install on a fresh KDE system.
    12. bgm1975 ◴[] No.41231267{4}[source]
    And a middle-age'd man named XFree86 lol.
    13. spartanatreyu ◴[] No.41232104{3}[source]
    I use it to add window snapping to macos:

    https://gist.github.com/spartanatreyu/850788a0441e1c5565668a...

    14. wyclif ◴[] No.41233557[source]
    Is the setting you're talking about the one under Settings>General>Startup>Window Restoration Policy>Only Restore Hotkey Window, or something else?
    replies(1): >>41236904 #
    15. mst ◴[] No.41236018[source]
    https://github.com/noctuid/tdrop is really rather interesting.

    Thank you.

    16. throwanem ◴[] No.41236904[source]
    That's related to it, but the feature per se is more like a specially handled variety of iTerm's profiles. See https://iterm2.com/documentation-hotkey.html, section "Dedicated Hotkey Windows".
    17. naikrovek ◴[] No.41240276{4}[source]
    I’ve been reading about Wayland since around 2010 and it still isn’t ubiquitous, and still doesn’t work everywhere.

    How long can we call something that’s at least 15 years old “the new kid”?

    replies(1): >>41270393 #
    18. mega-tux ◴[] No.41270393{5}[source]
    Wayland has arrived in lot of distros as default graphics server pretty recently, that's why it is OK to be called the new kid, IMO.
    19. matthewmc3 ◴[] No.41305579{3}[source]
    You can get the rest of the way there by combining the Hammerspoon method of launching with WezTerm's ToggleAlwaysOnTop feature. I use a similar method described here: https://github.com/wez/wezterm/issues/1751#issuecomment-2299...

    You could probably even use Hammerspoon to initiate the keyboard shortcut if you didn't want to mark the window manually.

    replies(1): >>41308630 #
    20. DavideNL ◴[] No.41308630{4}[source]
    I expect that won't work on macOS, because an "Always On Top window" is not equal to a "floating window"...

    It's described here: https://github.com/wez/wezterm/issues/1751#issuecomment-1973...