From 877f2b6c6bc8c7721588638836fb1288cc3f7f80 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 26575106e..3ea5cec9e 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