3

Under LXDE desktop manager Alt+F11 can be used to switch a program to full screen.

I use this shortcut so often that'd I rather have certain programs always open in full screen instead of doing it manually.

Is it possible to define some system configuration, or a shell script that'd always launch particular programs in full screen? (Particular not all because I wouldn't want certain small windows like network configuration window and system calendar to open in full screen).

5

Put this in your ~/.config/openbox/lubuntu-rc.xml in between <applications> tags:

<application class="Firefox" name="Navigator">
    <fullscreen>yes</fullscreen>
</application>

To get specific class or name for your applications, use this:

obxprop | grep '^_OB_APP'

and then click with your cursor inside the app window.


Useful website: http://openbox.org/wiki/Help:Configuration

  • Running obxprop gives me _OB_APP_CLASS(UTF8_STRING) = "lxpanel" _OB_APP_NAME(UTF8_STRING) = "panel". Not firefox and Navigator as you've specified. – Kshitiz Sharma Jul 22 '15 at 13:02
  • @KshitizSharma did you click inside firefox window after running obxprop? – MichalH Jul 22 '15 at 15:18
  • No. I was clicking on the firefox taskbar entry. Directly clicking inside the window works correctly. – Kshitiz Sharma Jul 23 '15 at 9:40
  • However, after entering it into lubuntu-rc.xml it only works for firefox. Entries for sublime text and chrome don't result in full screen. Is it working for you? – Kshitiz Sharma Jul 23 '15 at 9:41
  • Yes, it works. Here is an example snippet of the file: pastebin.com/Grb3Yehs – MichalH Jul 24 '15 at 9:17
2

Generally lxde will have a rc.xml/lxde-rc.xml/lubuntu-rc.xml inside ~/.config/openbox/

Example contents of the xml file:

<application name="firefox">
  <fullscreen>true</fullscreen>
</application>

You should add the following line under your preferred application node (as shown above in the example):

 <fullscreen>true</fullscreen>

And execute openbox --reconfigure

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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