summaryrefslogtreecommitdiffstats
path: root/tv/2configs/xserver/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-28 21:00:29 +0100
committertv <tv@shackspace.de>2015-10-28 21:00:29 +0100
commit057c4836c10eebf3141d7b20a9e942518357606c (patch)
treecf3a178377e08c66024a5cbca10266686625bb1e /tv/2configs/xserver/default.nix
parent737922a20e1b15ef5a8d11956c9395f7fede735c (diff)
tv xmonad: resume by reading state from file
Diffstat (limited to 'tv/2configs/xserver/default.nix')
-rw-r--r--tv/2configs/xserver/default.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix
index 3ea5cec9e..388a33bbe 100644
--- a/tv/2configs/xserver/default.nix
+++ b/tv/2configs/xserver/default.nix
@@ -119,12 +119,7 @@ let
settle ${pkgs.xorg.xhost}/bin/xhost +LOCAL:
settle ${pkgs.xorg.xrdb}/bin/xrdb -merge ${import ./Xresources.nix args}
settle ${pkgs.xorg.xsetroot}/bin/xsetroot -solid '#1c1c1c'
- if test -e "$XMONAD_STATE"; then
- IFS=''$'\n'
- exec ${xmonad-pkg}/bin/xmonad --resume $(< "$XMONAD_STATE")
- else
- exec ${xmonad-pkg}/bin/xmonad
- fi
+ exec ${xmonad-pkg}/bin/xmonad
'';
xmonad-stop = pkgs.writeScriptBin "xmonad-stop" ''