You are not logged in.

#1 2017-08-23 20:05:44

Marvix
Member
Registered: 2013-10-08
Posts: 157

[SOLVED] Autoswitch on opebox login to external monitor

Hello to community.

On my laptop I use openbox and I want after the login to have the system at switch at my external monitor. I have tried setting the lxrandr in the xinit and also I haven't find any similar solution.

How can I do it? Do I have to install the lxsession?

Thank you.

Last edited by Marvix (2017-11-02 17:08:22)

Offline

#2 2017-08-23 20:15:23

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Autoswitch on opebox login to external monitor

Run the appropriate xrandr command in an openbox autostart file.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-08-23 21:22:32

Marvix
Member
Registered: 2013-10-08
Posts: 157

Re: [SOLVED] Autoswitch on opebox login to external monitor

That was under my very nose. The lxrandr had a file in .config/Autostart/LXRandR autostart with the configuration I had saved from the start

[Desktop Entry]
Type=Application
Name=LXRandR autostart
Comment=Start xrandr with settings done in LXRandR
Exec=sh -c 'xrandr --output HDMI1 --mode 1920x1080 --rate 60.00 --same-as LVDS1 --output LVDS1 --off'
OnlyShowIn=LXDE

and I copied the xrandr output to paste it in openbox autostart file.

Can I make it start from selecting the lxrandr file?

Offline

Board footer

Powered by FluxBB