summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-10-26 11:31:40 +0100
committertv <tv@krebsco.de>2015-10-26 11:31:40 +0100
commit9fcab129b0286752129d5d0491594c074a4e96b4 (patch)
tree10f253af387fa6925e1142e96205fa6b40ac81fb /tv/2configs
parenta5ea4c530f430417b30e3407a0e8a509e6b252d8 (diff)
tv xserver bash: sudo per XMONAD_SPAWN_WORKSPACE
Diffstat (limited to 'tv/2configs')
-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 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 {};