Add multiple hosts & restructure things
This commit is contained in:
12
hosts/vinegar/start-session/home.nix
Normal file
12
hosts/vinegar/start-session/home.nix
Normal 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
|
||||
];
|
||||
}
|
||||
5
hosts/vinegar/start-session/start-session
Normal file
5
hosts/vinegar/start-session/start-session
Normal 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
|
||||
Reference in New Issue
Block a user