如何配置某些程序始终全屏打开?

Ksh*_*rma 5 lxde lubuntu fullscreen

LXDE 下的桌面管理器Alt+F11可用于将程序切换到全屏。

我经常使用这个快捷方式,所以我宁愿让某些程序总是全屏打开,而不是手动打开。

是否可以定义一些系统配置或始终以全屏方式启动特定程序的 shell 脚本?(尤其不是全部,因为我不希望网络配置窗口和系统日历等某些小窗口全屏打开)。

Mic*_*alH 6

把它放在你~/.config/openbox/lubuntu-rc.xml的中间<applications>标签中:

<application class="Firefox" name="Navigator">
    <fullscreen>yes</fullscreen>
</application>
Run Code Online (Sandbox Code Playgroud)

要获得特定的classname针对您的应用程序,请使用:

obxprop | grep '^_OB_APP'
Run Code Online (Sandbox Code Playgroud)

然后在应用程序窗口内用光标单击。


有用的网站:http : //openbox.org/wiki/Help : Configuration


neu*_*ron 2

一般里面lxde会有一个rc.xml//lxde-rc.xmllubuntu-rc.xml~/.config/openbox/

文件内容示例xml

<application name="firefox">
  <fullscreen>true</fullscreen>
</application>
Run Code Online (Sandbox Code Playgroud)

您应该在您的首选应用程序节点下添加以下行(如上面的示例所示):

 <fullscreen>true</fullscreen>
Run Code Online (Sandbox Code Playgroud)

并执行openbox --reconfigure