1 { config, lib, pkgs, ... }:
5 cfg = config.services.xserver.windowManager.wmii;
10 services.xserver.windowManager.wmii.enable = mkEnableOption "wmii";
13 config = mkIf cfg.enable {
14 services.xserver.windowManager.session = singleton
16 # $wmiir xwrite /ctl quit
17 # this will cause wmii exiting with exit code 0
18 # (or "mod+a quit", which is bound to do the same thing in wmiirc
22 # wmii crashes once a month here. That doesn't matter that much
23 # wmii can recover very well. However without loop the X session
24 # terminates and then your workspace setup is lost and all
25 # applications running on X will terminate.
26 # Another use case is kill -9 wmii; after rotating screen.
27 # Note: we don't like kill for that purpose. But it works (->
28 # subject "wmii and xrandr" on mailinglist)
32 ${wmii}/bin/wmii && break
37 environment.systemPackages = [ wmii ];