What do you mean, "the OS as a whole"? This is the OS!
53 karma · joined May 9, 2018
niri msg action focus-window --id $(niri msg --json windows | jq '.[] | select(.app_id=="foot") | .id')Really a unit type is just one that contains only a single value. This is a unit in the same way that 1 is a unit for the integers. With some hand waving it is an identity for product types, for example (int, ()) is the "same" (xxxmorphic yada yada) as int
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 noneYou'll be interested in https://github.com/thoughtpolice/buck2-nix
Imagine (sorry for pseudocode):
type Option T = Some T | None
type Nullable T = T | null
The difference here is that Option "tags" each part of its union, which guarantees that the parts are disjoint. In Nullable, the parts of the union are disjoint only if T is not itself nullable. If T is S | null, Nullable T is S | null | null, which is just S | null (since null and null are not disjoint.I'm not convinced by this, because RDP feels laggy even remoting to a vm on the same machine