I use a loop like this for my dwm, in my sessionstarter script: xsetroot -solid "LightSkyBlue4" while ! ( statusbar ) | /home/viric/bin/dwm; do echo dwm restarted ; done exit -1 # Because the session script in my home is called in a while loop.
2009/3/12, Marc Weber <[email protected]>: > > 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 > _______________________________________________ > nix-dev mailing list > [email protected] > https://mail.cs.uu.nl/mailman/listinfo/nix-dev > _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
