On 12:03 Tue 22 Nov , Cameron Simpson wrote:
> On 21Nov2005 17:54, Mikhael Goikhman <[EMAIL PROTECTED]> wrote:
> | On 21 Nov 2005 12:23:19 -0500, Steve Talley wrote:
> | > How do I set my X resolution on startup without editing Xorg.conf?
> |
> | In modern X, you may switch X resolution using something like:
> |
> | xrandr -s 1280x1024
> | xrandr -s 1024x768
> | xrandr -s 800x600
> |
> | Don't expect however fvwm to honour this command dynamically.
> | You need to Restart.
>
> Of course, for convenience one may write a wrapper for xrandr that goes:
>
> if xrandr ${1+"$@"}
> then
> FvwmCommand Restart
> fi
Cool. How about something like...
DestroyFunc func_change_resolution
AddToFunc func_change_resolution
+ I Exec xrandr -s $0
+ I Restart
DestroyMenu menu_change_resolution
AddToMenu menu_change_resolution 'Resolution?'
+ '&1 1280x800' func_change_resolution 1280x800
+ '&2 640x400' func_change_resolution 640x
# ... etc ...
I think this needs to go into my config ASAP