News for hackers. Stuff that matters.
Re:Hyprland Crash Course by m1keil on Saturday March 23, 2024 @07:05PM (#39803663)
Does anybody knows about a tiling WM that allows customising the position of the first window you open? I have an ultra wide display, and I want the first window I open to be roughly 1/3 in screen width and placed in the centre. From memory of playing with i3/sway, it would allow different layouts but the 1st screen would always be full screen and I would have to do something like choose "thirds layout" and "open terminal, open app I want, open terminal".
Re:Hyprland Crash Course by nullwarp on Saturday March 23, 2024 @08:14PM (#39804011)
I did this with AwesomeWM. The Lain (plugin/extension/i forget what its called in awesome) has a "centerwork" style layout that solves this exact issue.

Actually it's really surprising how few tiling WMs support this sort of scenario.

I eventually just gave up and switched to KDE+KZones as it covers 90% of what I'd get from a tiling WM anyway.

Re:Hyprland Crash Course by nerdix on Saturday March 23, 2024 @07:13PM (#39803702)
I do something like that on a 49 inch 32:9 ultra wide with hyprland.i don't have my config handy but basically you want to use the master layout and set orientation to center. You can also play around with new_is_master and always_center_master based on your preferences.

https://wiki.hyprland.org/Configuring/Master-Layout/

Re:Hyprland Crash Course by m1keil on Saturday March 23, 2024 @07:24PM (#39803756)
Thanks, will take a look.
Re:Hyprland Crash Course by phero_cnstrcts on Saturday March 23, 2024 @09:21PM (#39804340)
Please report back if it is working for you. I have the same problem.
Re:Hyprland Crash Course by ccakes on Sunday March 24, 2024 @04:23AM (#39805800)
I just changed and this is a LOT nicer! Also on a 49" ultrawide

Thanks for the protip!

Re:Hyprland Crash Course by nerdix on Sunday March 24, 2024 @09:09PM (#39812021)
You can also use the swapwithmaster dispatch to cycle windows into the center position with a keyboard shortcut.
Re:Hyprland Crash Course by FreeFull on Saturday March 23, 2024 @07:09PM (#39803688)
That's possible with Niri, with its center-focused-column and default-column-width settings. It's not a traditional tiling WM, though
Re:Hyprland Crash Course by m1keil on Saturday March 23, 2024 @07:25PM (#39803762)
Never heard of Niri before. Will take a look, cheers.
Re:Hyprland Crash Course by christophilus on Saturday March 23, 2024 @09:21PM (#39804341)
I do it with PaperWM which is a niri-like Gnome extension.
Re:Hyprland Crash Course by gryn on Saturday March 23, 2024 @07:48PM (#39803875)
you can write a script to hack that behaviour with i3-msg `i3-msg -t get_tree`. it's frustrating that you cant have empty tiles though, you'll need to write in your a script 0% opacity panes that get replaced when a new windows is created.
Re:Hyprland Crash Course by clircle on Saturday March 23, 2024 @08:45PM (#39804177)
Dwm has a patch for this. I think you can use vanity gaps, and make the outer gaps depend on a layout or window rule.
Re:Hyprland Crash Course by dsissitka on Saturday March 23, 2024 @10:08PM (#39804579)
That's one of the reasons I use i3.

  gaps horizontal 417
  gaps inner      10
  smart_gaps inverse_outer
https://imgur.com/a/MjNBgms
Re:Hyprland Crash Course by pkkm on Saturday March 23, 2024 @10:28PM (#39804675)
Related question, since we're on the topic: does Linux have a way to split a single wide monitor into smaller "virtual" monitors?
Re:Hyprland Crash Course by throw20240324 on Sunday March 24, 2024 @01:36AM (#39805345)
Re:Hyprland Crash Course by chills on Sunday March 24, 2024 @07:20PM (#39811422)
X does, you can use xrandr --setmonitor.

For example, splitting a 5120x1440 monitor into three:

  xrandr --setmonitor DisplayPort-0-0 1280/297x1440/340+0+0 none
  xrandr --setmonitor DisplayPort-0-1 2560/595x1440/340+1280+0 none
  xrandr --setmonitor DisplayPort-0-2 1280/297x1440/340+3840+0 none
Re:Hyprland Crash Course by mxmilkiib on Sunday March 24, 2024 @07:39PM (#39811525)
I'd like to do this under AwesomeWM but cannot https://github.com/awesomeWM/awesome/issues/3132
Re:Hyprland Crash Course by pkulak on Saturday March 23, 2024 @11:37PM (#39804985)
I wrote my own layout manager to do exactly this:

https://github.com/pkulak/filtile

Re:Hyprland Crash Course by kinleyd on Sunday March 24, 2024 @05:02AM (#39805927)
Hyprland can do that, quite easily. It has windows rules that allow you to place everything just so.
Re:Hyprland Crash Course by 000ooo000 on Monday March 25, 2024 @06:33AM (#39814536)
IIRC, Sway supports this. On an empty workspace, the first window I open is centered and about 800x800px, and on opening a second, both windows begin tiling and take up the whole screen.

I think is the relevant setting:

    # Only enable outer gaps when there is exactly one container
    smart_gaps inverse_outer
And I have these gap values in my config:

    gaps horizontal 1000px
    gaps vertical 100px
HTH
Re:Hyprland Crash Course by beginnings on Tuesday March 26, 2024 @04:40AM (#39825461)
hyprland isnt a window manager, its a wayland compositor that doesnt sacrifice on looks