From 9fcab129b0286752129d5d0491594c074a4e96b4 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2015 11:31:40 +0100 Subject: tv xserver bash: sudo per XMONAD_SPAWN_WORKSPACE --- tv/2configs/xserver/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix index 2657510..3ea5cec 100644 --- a/tv/2configs/xserver/default.nix +++ b/tv/2configs/xserver/default.nix @@ -70,6 +70,14 @@ let ExecStart = "${xserver}/bin/xserver"; }; }; + + programs.bash.interactiveShellInit = '' + case ''${XMONAD_SPAWN_WORKSPACE-} in + za|zh|zj|zs) + exec sudo -u zalora -i + ;; + esac + ''; }; xmonad-pkg = pkgs.haskellPackages.callPackage xmonad-src {}; -- cgit v1.2.3