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
Create a .desktop file containing the command and place it in ~/.config/autostart.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
Sorry, yes substitute KDE. I pasted it from a GNOME box not KDE.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.
See this link to tweak to suit: http://l10n.kde.org/docs/admin/autos...d-runonce.htmlCode: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
It does its changes for all users, as well as doing its thing during the login process, not after (less visible resizing after the desktop loads). You of course can choose whatever works for youOriginally posted by zlowWhy mess with system files when it's much simpler to use autostart?Originally posted by claydoh
- Top
- Bottom
Comment
-
Re: Automatic xrandr command
Fair enough.Originally posted by claydohIt does its changes for all users, as well as doing its thing during the login process, not after (less visible resizing after the desktop loads). You of course can choose whatever works for youOriginally posted by zlowWhy mess with system files when it's much simpler to use autostart?Originally posted by claydoh
Don't blame me for being smarter than you, that's your parent's fault.
- Top
- Bottom
Comment
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.





Comment