[Openbox] Menambah Fungsi Window Snap pada Openbox

Bismillah,

Kebanyakan lingkungan desktop ada fitur window snap, misalnya dengan menekan alt+panah kiri maka window akan di snap ke kiri. Pada tulisan kali ini, saya akan memberi sedikit contoh untuk menambah fitur tersebut pada openbox.

Langkah-langkah:

  1. Buka file konfigurasi openbox (rc.xml)
  2. tambahkan skrip berikut:
    <!-- Keybindings snap windows ke kiri -->
    <keybind key="W-Left">
    <action name="UnmaximizeFull"/>
    <action name="MaximizeVert"/>
    <action name="MoveResizeTo">
    <width>50%</width>
    </action>
    <action name="MoveToEdge">
    <direction>west</direction></action>
    </keybind>
    <!– Keybindings snap windows ke kanan –>
    <keybind key=”W-Right”>
    <action name=”UnmaximizeFull”/>
    <action name=”MaximizeVert”/>
    <action name=”MoveResizeTo”>
    <width>50%</width>
    </action>
    <action name=”MoveToEdge”>
    <direction>east</direction></action>
    </keybind>

    <!– Keybindings Unmaximized–>
    <keybind key=”W-Down”>
    <action name=”Unmaximize”/>
    </keybind>
    <!– Keybindings Maximized–>
    <keybind key=”W-Up”>
    <action name=”Maximize”/>
    </keybind>

Terima kasih, semoga bermanfaat.

signature
signature
Advertisements

Tinggalkan komentar:

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s