[Nix-dev] wmii and xrandr
Lluís Batlle
viriketo at gmail.com
Thu Mar 12 22:00:20 CET 2009
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 <marco-oweber at gmx.de>:
>
> 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
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>
More information about the nix-dev
mailing list