Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Reintroduced standalone Xorg session
Browse files Browse the repository at this point in the history
  • Loading branch information
Elyhaka authored and Elyhaka committed Mar 25, 2020
1 parent aba31ca commit 5bff635
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,22 @@ let
# Managing connected screens
CONNECTED_SCREENS=`xrandr | grep -v "disconnected" | grep "connected" | awk '{ print $1 }'`
PREFERRED_SCREENS=(${builtins.concatStringsSep " " preferredScreens})
${screenManager}/bin/set-shadow-screens "$CONNECTED_SCREENS" "$PREFERRED_SCREENS" > /tmp/output.txt
${screenManager}/bin/set-shadow-screens "$CONNECTED_SCREENS" "$PREFERRED_SCREENS"
# Start VSync
${compton}/bin/compton --vsync -b --backend glx
exec ${shadow-package}/bin/shadow-${shadowChannel} "$@"
'';

standaloneSessionCommandWrapper = writeShellScriptBin "shadow-${shadowChannel}-standalone-session" ''
set -o errexit
exec startx ${sessionCommandWrapper}/bin/shadow-${shadowChannel}-session "$@"
'';
in symlinkJoin {
name = "shadow-${shadowChannel}-${shadow-package.version}";

paths = [ shadow-package ] ++ (optional xsessionDesktopFile sessionCommandWrapper);
paths = [ shadow-package ] ++ (optional xsessionDesktopFile [sessionCommandWrapper standaloneSessionCommandWrapper]);

nativeBuildInputs = [ makeWrapper ];

Expand Down

0 comments on commit 5bff635

Please sign in to comment.