Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

It looks like LXRandr can save configurations.

enter image description here

But where are they saved and in what form?

(I was thinking about activating them by shortkey.)

share|improve this question

2 Answers 2

up vote 4 down vote accepted

To know what has changed in the home folder:

find ~/ -mmin -5 -type f

You can change 5 to a smaller number if you wish.

In this way, after saving configuration in LXRandr and running this command, the last change recorded is in ~/.config/autostart/lxrandr-autostart.desktop. That's it.

To open that:

gedit ~/.config/autostart/lxrandr-autostart.desktop

It contains something like:

[Desktop Entry]
Type=Application
Name=LXRandR autostart
Comment=Start xrandr with settings done in LXRandR
Exec=xrandr --output LVDS --mode 1680x1050 --rate 60.1 --output VGA-0 --off
OnlyShowIn=LXDE

It says that it just starts "xrandr with settings done in LXRandR". It's an xrandr configuration. In the example the external display is connected by VGA but shut down.

(To activate that configuration by a keybind, the line to be used is the one after Exec=. It will vary according to the active display settings at the moment when LXRandr saved them. Many separate configurations can be saved in this way to be used with different keybinds; but after saving with LXRandr the file lxrandr-autostart.desktop is overwritten.)

share|improve this answer
1  
the line gave me a lot more answers (many mozilla related as i am in it): but the first might be the one i want: ~/.config/autostart/lxrandr-autostart.desktop. i'll see what is to be done with that –  cipricus Feb 22 '13 at 15:09
    
True, but with a little precaution, you can make sure that other entries don't pollute the output. –  user25656 Feb 22 '13 at 15:19

Try checking in the home directory: ~/.xrandr/ or ~/.lxrandr/

share|improve this answer
    
no such directories among my hidden ones in ~/ –  cipricus Feb 22 '13 at 14:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.