add xinit overlay
This commit is contained in:
parent
46b16c07e1
commit
023c408aff
3 changed files with 37 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
transcrypt = import ./overlays/transcrypt.nix;
|
transcrypt = import ./overlays/transcrypt.nix;
|
||||||
winetricks = import ./overlays/winetricks.nix;
|
winetricks = import ./overlays/winetricks.nix;
|
||||||
wine-osu = import ./overlays/wine-osu.nix;
|
wine-osu = import ./overlays/wine-osu.nix;
|
||||||
|
xinit = import ./overlays/xinit.nix;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
26
overlays/misc/startx.patch
Normal file
26
overlays/misc/startx.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
diff --git a/startx.cpp b/startx.cpp
|
||||||
|
index 125c398..296b29f 100644
|
||||||
|
--- a/startx.cpp
|
||||||
|
+++ b/startx.cpp
|
||||||
|
@@ -47,10 +47,10 @@ XCOMM so export the new PATH just in case the user changes the shell
|
||||||
|
export PATH
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-userclientrc=$HOME/.xinitrc
|
||||||
|
+userclientrc="${XINITRC:-$HOME/.xinitrc}"
|
||||||
|
sysclientrc=XINITDIR/xinitrc
|
||||||
|
|
||||||
|
-userserverrc=$HOME/.xserverrc
|
||||||
|
+userserverrc="${XSERVERRC:-$HOME/.xserverrc}"
|
||||||
|
sysserverrc=XINITDIR/xserverrc
|
||||||
|
defaultclient=XTERM
|
||||||
|
defaultserver=XSERVER
|
||||||
|
@@ -270,7 +270,7 @@ if [ x"$enable_xauth" = x1 ] ; then
|
||||||
|
dummy=0
|
||||||
|
|
||||||
|
XCOMM create a file with auth information for the server. ':0' is a dummy.
|
||||||
|
- xserverauthfile=$HOME/.serverauth.$$
|
||||||
|
+ xserverauthfile=$XAUTHORITY
|
||||||
|
trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
|
||||||
|
xauth -q -f "$xserverauthfile" << EOF
|
||||||
|
add :$dummy . $mcookie
|
||||||
10
overlays/xinit.nix
Normal file
10
overlays/xinit.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
self: super: {
|
||||||
|
xorg = super.xorg // {
|
||||||
|
xinit = super.xorg.xinit.overrideAttrs(o: {
|
||||||
|
# Some info:
|
||||||
|
# - Make startx use $XAUTHORITY as server auth files instead of .serverauth.$$
|
||||||
|
# - Make startx respect $XINITRC and $XSERVERRC
|
||||||
|
patches = o.patches ++ [ ./misc/startx.patch ];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue