17. 4. 2016.
Openbox: Izmene rc.xml fajla
Kao što je poznato, podešavanja Openbox menadžera prozora se nalaze u sadržaju tri fajla (autostart, menu.xml i rc.xml) koji se mogu pronaći na putanji: /home/user/.config/openbox. Ovde će biti prikazani delovi rc.xml fajla i to najvažnije sekcije koje se odnose na temu i font, broj ekrana i prečice za startovanje aplikacija. Kod koji sledi, u sekciji Theme, pored imena odabrane teme, sadrži i izabrani font za aktivne i neaktivne prozore, kao i font za naslovnu traku i stavku u meniju.
<theme>
<name>Onyx</name>
<titleLayout>DSLIMC</titleLayout>
<!--
avaible characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>no</animateIconify>
<font place="ActiveWindow">
<name>Liberation Serif</name>
<size>12</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>Liberation Serif</name>
<size>11</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>Liberation Serif</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>Liberation Serif</name>
<size>12</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
Sekcija Desktops sadrži detalje u vezi virtuelnih ekrana kao što su njihov broj, naziv i brzina prebacivanja.
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>4</number>
<firstdesk>1</firstdesk>
<names>
<name>Network</name>
<name>Office</name>
<name>Multimedia</name>
<name>Chat</name>
</names>
<popupTime>0</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
Najveća sekcija je Keyboard u kojoj se mogu podesiti prečice za pokretanja aplikacija, a i razne druge operacije. Primer pokazuje prečice za prelaz između virtuelnih ekrana, pokretanje programa i otvaranje menija. Tu je i prečica pomoću koje se povećava i smanjuje jačina zvuka
<keyboard>
<!-- Keybindings for desktop switching -->
<keybind key="W-F1">
<action name="Desktop">
<desktop>Network</desktop>
</action>
</keybind>
<keybind key="W-F2">
<action name="Desktop">
<desktop>Office</desktop>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="A-F2">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Run Program</name>
</startupnotify>
<command>gmrun</command>
</action>
</keybind>
<keybind key="W-f">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>pcmanfm</name>
</startupnotify>
<command>pcmanfm</command>
</action>
</keybind>
<keybind key="W-space">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="W-g">
<action name="Execute">
<command>amixer -q sset Master 5%+</command>
</action>
</keybind>
<keybind key="W-h">
<action name="Execute">
<command>amixer -q sset Master 5%-</command>
</action>
</keybind>
</keyboard>