I want to run an xrandr command automatically as soon as I log on. I tried putting it in rc.local, but I think that's too soon in the boot sequence. Anyone have a suggestion for which file I should put the command in? Thanks.
Announcement
Collapse
No announcement yet.
[SOLVED] Automatic xrandr command
Collapse
This topic is closed.
X
X
-
Re: Automatic xrandr command
Originally posted by DonI want to run an xrandr command automatically as soon as I log on. I tried putting it in rc.local, but I think that's too soon in the boot sequence. Anyone have a suggestion for which file I should put the command in? Thanks.Don't blame me for being smarter than you, that's your parent's fault.
- Top
- Bottom
-
Re: Automatic xrandr command
Thanks for the suggestion. I gave that a try, creating "PortraitMode.desktop" with the command "xrandr -o left" and making it executable, but it did not run on boot-up. I have no doubt that I've screwed up something simple, but I'm sufficiently simple (always) and new (temporary, I hope) to Kubuntu that I don't know what it is.
- Top
- Bottom
Comment
-
Re: Automatic xrandr command
Originally posted by DonThanks for the suggestion. I gave that a try, creating "PortraitMode.desktop" with the command "xrandr -o left" and making it executable, but it did not run on boot-up. I have no doubt that I've screwed up something simple, but I'm sufficiently simple (always) and new (temporary, I hope) to Kubuntu that I don't know what it is.
The format of the file is:
Code:[Desktop Entry] Type=Application Exec=xrandr -o left Hidden=false X-GNOME-Autostart-enabled=true Name=PortraitMode Comment=
Don't blame me for being smarter than you, that's your parent's fault.
- Top
- Bottom
Comment
-
-
Re: Automatic xrandr command
Thanks for staying on this, and thanks especially for the coding. Before I try this, I note that in the fifth line of code you have "X-GNOME." I'm using the KDE desktop. Should I substitute "KDE" for "GNOME"?
- Top
- Bottom
Comment
-
Re: Automatic xrandr command
Originally posted by DonThanks for staying on this, and thanks especially for the coding. Before I try this, I note that in the fifth line of code you have "X-GNOME." I'm using the KDE desktop. Should I substitute "KDE" for "GNOME"?
This may work better for you.
Code:X-KDE-autostart-after=panel
Don't blame me for being smarter than you, that's your parent's fault.
- Top
- Bottom
Comment
-
Re: Automatic xrandr command
Originally posted by zlowOriginally posted by claydoh
- Top
- Bottom
Comment
-
Re: Automatic xrandr command
Originally posted by claydohOriginally posted by zlowOriginally posted by claydohDon't blame me for being smarter than you, that's your parent's fault.
- Top
- Bottom
Comment
Comment