summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-26 11:31:40 +0100
committertv <tv@shackspace.de>2015-10-26 11:31:40 +0100
commit877f2b6c6bc8c7721588638836fb1288cc3f7f80 (patch)
tree9cd02a2571cba6cf92a81606d9b36f15f8c3e858 /tv
parent4e7a5a107f18037d126120fe0f59c6b80658bd46 (diff)
tv xserver bash: sudo per XMONAD_SPAWN_WORKSPACE
Diffstat (limited to 'tv')
-rw-r--r--tv/2configs/xserver/default.nix8
1 files changed, 8 insertions, 0 deletions
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 {};