Add multiple hosts & restructure things

This commit is contained in:
2024-01-30 02:51:16 +00:00
parent f5f1a2b69c
commit 5e5508ec84
37 changed files with 596 additions and 510 deletions

View File

@@ -0,0 +1,12 @@
{ pkgs, ... }: {
home.file.".local/bin/start-session" = {
source = ./start-session;
executable = true;
};
home.packages = [
pkgs.xwayland
pkgs.xorg.xrandr
pkgs.gawk
];
}

View File

@@ -0,0 +1,5 @@
#!/bin/sh
Xwayland :1 -geometry $(xrandr -q | gawk 'match($0, /([0-9]+x[0-9]+)/, ary) {print ary[1]; exit}') -fullscreen &
xw_pid=$!
WAYLAND_DISPLAY= DISPLAY=:1 dbus-launch $1
kill $xw_pid