5

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).

2 Answers 2

6

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

7
  • Running obxprop gives me _OB_APP_CLASS(UTF8_STRING) = "lxpanel" _OB_APP_NAME(UTF8_STRING) = "panel". Not firefox and Navigator as you've specified. Commented Jul 22, 2015 at 13:02
  • @KshitizSharma did you click inside firefox window after running obxprop? Commented Jul 22, 2015 at 15:18
  • No. I was clicking on the firefox taskbar entry. Directly clicking inside the window works correctly. Commented Jul 23, 2015 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? Commented Jul 23, 2015 at 9:41
  • Yes, it works. Here is an example snippet of the file: pastebin.com/Grb3Yehs Commented Jul 24, 2015 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

1
  • This is not working. Commented Jul 22, 2015 at 11:12

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.