[Nix-dev] wmii and xrandr

Marc Weber marco-oweber at gmx.de
Thu Mar 12 21:39:56 CET 2009


Hi,

AFAIK wmii doesn't have any support for switching screen resolutions..
Howwever it when you kill it it stores the window tag associatons.
so one way to rotate your screen or switch resolution is using

xrand --size 600x800; kill wmii # then restart wmii..

However you can't restart wmii because the xsession ends.

So does someone mind me changing the fix-style branch wmii windowManager
start session script this way?

diff --git a/upstart-jobs/xserver/windowManager/wmii.nix
b/upstart-jobs/xserver/windowManager/wmii.nix
index 59a88f9..50d6a3d 100644
--- a/upstart-jobs/xserver/windowManager/wmii.nix
+++ b/upstart-jobs/xserver/windowManager/wmii.nix
@@ -21,8 +21,10 @@ in
         session = mkIf cfg.enable [{
           name = "wmii";
           start = "
+          while :; do
             ${pkgs.wmiiSnap}/bin/wmii &
             waitPID=$!
+          done
           ";
         }];
       };


Then wmii will be restarted forever and you'll be able to switch
rotation occasionally.

Marc Weber



More information about the nix-dev mailing list