l: add xephyrify
This commit is contained in:
parent
742cda0e22
commit
7eb71976f1
@ -99,6 +99,7 @@ in {
|
|||||||
zathura
|
zathura
|
||||||
|
|
||||||
cabal2nix
|
cabal2nix
|
||||||
|
xephyrify
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
@ -129,7 +130,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.xmonad = {
|
systemd.user.services.xmonad = {
|
||||||
#wantedBy = [ "graphical-session.target" ];
|
|
||||||
environment = {
|
environment = {
|
||||||
DISPLAY = ":${toString config.services.xserver.display}";
|
DISPLAY = ":${toString config.services.xserver.display}";
|
||||||
RXVT_SOCKET = "%t/urxvtd-socket";
|
RXVT_SOCKET = "%t/urxvtd-socket";
|
||||||
|
9
lass/5pkgs/xephyrify/default.nix
Normal file
9
lass/5pkgs/xephyrify/default.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ writeDashBin, coreutils, xorg, virtualgl, ... }:
|
||||||
|
|
||||||
|
writeDashBin "xephyrify" ''
|
||||||
|
NDISPLAY=:$(${coreutils}/bin/shuf -i 100-65536 -n 1)
|
||||||
|
${xorg.xorgserver}/bin/Xephyr -br -ac -reset -terminate -resizeable $NDISPLAY &
|
||||||
|
XEPHYR_PID=$!
|
||||||
|
DISPLAY=$NDISPLAY ${virtualgl}/bin/vglrun "$@"
|
||||||
|
kill $XEPHYR_PID
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user