SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-09-18 16:49:22

Digit
#! Die Hard
From: the internet
Registered: 2009-05-26
Posts: 1,083
Website

post your rc.xml tweaks for openbox.

sry if a thread like this has already been made, a did a breif search but didnt see anything.

so, in the style of the conky thread, here's the openbox's rc.xml thread. (i suppose the menu.xmls might wanna sneak in here from time to time too)

at the very least, you'll be making a backup for yourself.
but i think most of us will see that the real benefit here is the sharing. wink

without much further ado, here's mine (+ elaboration).
since i went from 8 to 9.04, i learned it's wise to keep things tidy... so i've tried to make sure all the changes i add are marked within the same relevent heading, except with a "Digit's" infront of it. ( such as "    <!-- Digit's Keybindings for window switching -->" added with my commands, as well as leaving the default "    <!-- Keybindings for window switching -->" intact)
this makes it a touch easier for me to follow along with new versions as they come out, keep up to date with the default changes, and still be able to add in my own preferred keybinds in a easy copy&paste.   also it should make it easier for anyone else to see what i've added.
there are likely at least a couple things somewhere that i added or changed that are not within those confines though.

<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
  <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
  </resistance>
  <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
       apply -->
    <followMouse>no</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>yes</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
       under the mouse pointer. when followMouse is enabled -->
    <underMouse>no</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>200</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
       this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
       mouse into it, also raise the window -->
  </focus>
  <placement>
    <policy>Smart</policy>
    <!-- 'Smart' or 'UnderMouse' -->
    <center>yes</center>
    <!-- whether to place windows in the center of the free area found or
       the top left corner -->
    <monitor>Any</monitor>
  </placement>
  <theme>
    <name>Simple</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>yes</animateIconify>
    <font place="ActiveWindow">
      <name>sans</name>
      <size>8</size>
      <!-- font size in points -->
      <weight>bold</weight>
      <!-- 'bold' or 'normal' -->
      <slant>normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="InactiveWindow">
      <name>sans</name>
      <size>8</size>
      <!-- font size in points -->
      <weight>normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuHeader">
      <name>sans</name>
      <size>8</size>
      <!-- font size in points -->
      <weight>normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuItem">
      <name>sans</name>
      <size>8</size>
      <!-- font size in points -->
      <weight>normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="OnScreenDisplay">
      <name>sans</name>
      <size>8</size>
      <!-- font size in points -->
      <weight>normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
  </theme>
  <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>9</number>
    <firstdesk>1</firstdesk>
    <names>
      <name>1</name>
      <name>2</name>
      <name>3</name>
      <name>4</name>
      <name>5</name>
      <name>6</name>
      <name>7</name>
      <name>8</name>
      <name>9</name>
    </names>
    <popupTime>875</popupTime>
    <!-- The number of milliseconds to show the popup for when switching
       desktops.  Set this to 0 to disable the popup. -->
  </desktops>
  <resize>
    <drawContents>yes</drawContents>
    <popupShow>Nonpixel</popupShow>
    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupPosition>Center</popupPosition>
    <!-- 'Center' or 'Top' -->
    <popupFixedPosition>
      <x>0</x>
      <y>0</y>
    </popupFixedPosition>
  </resize>
  <!-- You can reserve a portion of your screen where windows will not cover when
     they are maximized, or when they are initially placed.
     Many programs reserve space automatically, but you can use this in other
     cases. -->
  <margins>
    <top>0</top>
    <bottom>20</bottom>
    <left>0</left>
    <right>0</right>
  </margins>
  <dock>
    <position>TopLeft</position>
    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    <floatingX>0</floatingX>
    <floatingY>0</floatingY>
    <noStrut>no</noStrut>
    <stacking>Above</stacking>
    <!-- 'Above', 'Normal', or 'Below' -->
    <direction>Vertical</direction>
    <!-- 'Vertical' or 'Horizontal' -->
    <autoHide>no</autoHide>
    <hideDelay>300</hideDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <showDelay>300</showDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <moveButton>Middle</moveButton>
    <!-- 'Left', 'Middle', 'Right' -->
  </dock>
  <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left">
      <action name="DesktopLeft">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Right">
      <action name="DesktopRight">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Up">
      <action name="DesktopUp">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Down">
      <action name="DesktopDown">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Left">
      <action name="SendToDesktopLeft">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Right">
      <action name="SendToDesktopRight">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Up">
      <action name="SendToDesktopUp">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Down">
      <action name="SendToDesktopDown">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="W-F1">
      <action name="Desktop">
        <desktop>1</desktop>
      </action>
    </keybind>
    <keybind key="W-F2">
      <action name="Desktop">
        <desktop>2</desktop>
      </action>
    </keybind>
    <keybind key="W-F3">
      <action name="Desktop">
        <desktop>3</desktop>
      </action>
    </keybind>
    <keybind key="W-F4">
      <action name="Desktop">
        <desktop>4</desktop>
      </action>
    </keybind>
    <keybind key="W-F5">
      <action name="Desktop">
        <desktop>5</desktop>
      </action>
    </keybind>
    <keybind key="W-F6">
      <action name="Desktop">
        <desktop>6</desktop>
      </action>
    </keybind>
    <keybind key="W-F7">
      <action name="Desktop">
        <desktop>7</desktop>
      </action>
    </keybind>
    <keybind key="W-F8">
      <action name="Desktop">
        <desktop>8</desktop>
      </action>
    </keybind>
    <keybind key="W-F9">
      <action name="Desktop">
        <desktop>9</desktop>
      </action>
    </keybind>
    <keybind key="W-d">
      <action name="ToggleShowDesktop"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="A-F4">
      <action name="Close"/>
    </keybind>
    <keybind key="A-Escape">
      <action name="Lower"/>
      <action name="FocusToBottom"/>
      <action name="Unfocus"/>
    </keybind>
    <keybind key="A-space">
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
    </keybind>
    <keybind key="Print">
      <action name="Execute">
        <execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/screenshots/ &amp; gpicview ~/images/screenshots/$f'</execute>
      </action>
    </keybind>
    <keybind key="A-Print">
      <action name="Execute">
        <execute>scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/screenshots &amp; gpicview ~/images/screenshots/$f'</execute>
      </action>
    </keybind>
    <!-- Keybindings for window switching -->
    <keybind key="A-Tab">
      <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
      <action name="PreviousWindow"/>
    </keybind>
    <!-- Digit's Keybindings for window switching -->
    <keybind key="W-Tab">
      <action name="NextWindow">
        <allDesktops>yes</allDesktops>
      </action>
    </keybind>
    <keybind key="W-C-Tab">
      <action name="PreviousWindow">
        <allDesktops>yes</allDesktops>
      </action>
    </keybind>
    <!-- Digit's Keybindings for running applications -->
    <keybind key="A-W-w">
      <action name="Execute">
        <startupnotify>
          <enabled>false</enabled>
          <name>Clock</name>
        </startupnotify>
        <command>~/.config/gworldclock/gworldclock.sh</command>
      </action>
    </keybind>
    <keybind key="C-W-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>calculator</name>
        </startupnotify>
        <command>calcoo</command>
      </action>
    </keybind>
    <keybind key="W-A-o">
      <action name="Restart"/>
    </keybind>
    <keybind key="C-W-A-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit .conkyrc</name>
        </startupnotify>
        <command>gedit ~/.conkyrc</command>
      </action>
    </keybind>
    <keybind key="C-W-A-o">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit rc.xml</name>
        </startupnotify>
        <command>gedit ~/.config/openbox/rc.xml</command>
      </action>
    </keybind>
    <keybind key="C-W-A-a">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit autostart.sh</name>
        </startupnotify>
        <command>gedit ~/.config/openbox/autostart.sh</command>
      </action>
    </keybind>
    <keybind key="C-W-A-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit menu.xml</name>
        </startupnotify>
        <command>gedit ~/.config/openbox/menu.xml</command>
      </action>
    </keybind>
    <keybind key="W-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>skype and pidgin</name>
        </startupnotify>
        <command>skype</command>
      </action>
    </keybind>
    <keybind key="W-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>skype and pidgin</name>
        </startupnotify>
        <command>pidgin</command>
      </action>
    </keybind>
    <keybind key="W-p">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>package manager</name>
        </startupnotify>
        <command>gksudo synaptic</command>
      </action>
    </keybind>
    <keybind key="W-A-p">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>partitioner</name>
        </startupnotify>
        <command>gksudo gparted</command>
      </action>
    </keybind>
    <keybind key="W-A-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>conkywonky</name>
        </startupnotify>
        <command>conkywonky</command>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Mediaplayer</name>
        </startupnotify>
        <command>vlc</command>
      </action>
    </keybind>
    <keybind key="W-3">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>3D Graphics</name>
        </startupnotify>
        <command>terminator --command="LIBGL_ALWAYS_SOFTWARE=1 blender"</command>
      </action>
    </keybind>
    <keybind key="W-3">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>3D Graphics help</name>
        </startupnotify>
        <command>evince ~/downloads/blendercheatsheet.pdf</command>
      </action>
    </keybind>
    <keybind key="W-g">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Graphics Editor</name>
        </startupnotify>
        <command>gimp</command>
      </action>
    </keybind>
    <keybind key="W-A-b">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>change background</name>
        </startupnotify>
        <command>nitrogen /home/g/images/wallpapers/</command>
      </action>
    </keybind>
    <keybind key="W-A-n">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>tint2 wonky</name>
        </startupnotify>
        <command>tint2wonky</command>
      </action>
    </keybind>
    <keybind key="C-W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>root text Editor</name>
        </startupnotify>
        <command>gksudo gedit</command>
      </action>
    </keybind>
    <keybind key="S-W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Editor</name>
        </startupnotify>
        <command>leafpad</command>
      </action>
    </keybind>
    <keybind key="C-A-W-n">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>tint2 pannel config</name>
        </startupnotify>
        <command>gedit /home/g/.config/tint2/tint2rc</command>
      </action>
    </keybind>
    <keybind key="S-C-A-W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal config</name>
        </startupnotify>
        <command>gedit /home/g/.config/terminator/config</command>
      </action>
    </keybind>
    <keybind key="W-A-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>htop</name>
        </startupnotify>
        <command>terminator --command="htop"</command>
      </action>
    </keybind>
    <keybind key="W-a">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Audacity</name>
        </startupnotify>
        <command>audacity</command>
      </action>
    </keybind>
    <keybind key="S-A-W-f">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Alternative File Search</name>
        </startupnotify>
        <command>searchmonkey</command>
      </action>
    </keybind>
    <keybind key="A-W-f">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>File Search</name>
        </startupnotify>
        <command>catfish</command>
      </action>
    </keybind>
    <keybind key="C-A-W-f">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>baobab</name>
        </startupnotify>
        <command>baobab</command>
      </action>
    </keybind>
    <keybind key="C-W-f">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>sudo PCManFM</name>
        </startupnotify>
        <command>gksudo pcmanfm</command>
      </action>
    </keybind>
    <keybind key="W-A-space">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>dmenu-bind</name>
        </startupnotify>
        <command>~/.config/dmenu/dmenu-bind.sh</command>
      </action>
    </keybind>
    <keybind key="A-W-k">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>change keybaord local</name>
        </startupnotify>
        <command>setxkbmap us</command>
      </action>
    </keybind>
    <keybind key="A-W-k">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>change keybaord local</name>
        </startupnotify>
        <command>setxkbmap uk</command>
      </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="A-F3">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>dmenu-bind</name>
        </startupnotify>
        <command>~/.config/dmenu/dmenu-bind.sh</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-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal</name>
        </startupnotify>
        <command>terminator</command>
      </action>
    </keybind>
    <keybind key="W-w">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Web Browser</name>
        </startupnotify>
        <command>terminator --command="GDK_USE_XFT=0 firefox"</command>
      </action>
    </keybind>
    <keybind key="W-l">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Lock screen</name>
        </startupnotify>
        <command>gnome-screensaver-command -l</command>
      </action>
    </keybind>
    <keybind key="W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Editor</name>
        </startupnotify>
        <command>gedit</command>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Mediaplayer</name>
        </startupnotify>
        <command>vlc</command>
      </action>
    </keybind>
    <keybind key="W-v">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Volume</name>
        </startupnotify>
        <command>gnome-volume-control</command>
      </action>
    </keybind>
    <keybind key="W-u">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>SystemUpdate</name>
        </startupnotify>
        <command>system-update</command>
      </action>
    </keybind>
    <keybind key="W-x">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Logout</name>
        </startupnotify>
        <command>openbox-logout</command>
      </action>
    </keybind>
    <keybind key="W-Tab">
      <action name="ShowMenu">
        <menu>client-list-combined-menu</menu>
      </action>
    </keybind>
    <keybind key="W-space">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>
    <keybind key="A-C-q">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>
  </keyboard>
  <mouse>
    <dragThreshold>8</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
       screen while moving a window, in milliseconds (1000 = 1 second).
       Set this to 0 to disable warping -->
    <context name="Frame">
      <mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="A-Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Right" action="Drag">
        <action name="Resize"/>
      </mousebind>
      <mousebind button="A-Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-S-Up" action="Click">
        <action name="SendToDesktopPrevious"/>
      </mousebind>
      <mousebind button="A-S-Down" action="Click">
        <action name="SendToDesktopNext"/>
      </mousebind>
    </context>
    <context name="Titlebar">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="Left" action="DoubleClick">
        <action name="ToggleMaximizeFull"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="Up" action="Click">
        <action name="Shade"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
        <action name="Lower"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="Unshade"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="Top">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>top</edge>
        </action>
      </mousebind>
    </context>
    <context name="Left">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>left</edge>
        </action>
      </mousebind>
    </context>
    <context name="Right">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>right</edge>
        </action>
      </mousebind>
    </context>
    <context name="Bottom">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>bottom</edge>
        </action>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="BLCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="BRCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="TLCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="TRCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="Client">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Icon">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="AllDesktops">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleOmnipresent"/>
      </mousebind>
    </context>
    <context name="Shade">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleShade"/>
      </mousebind>
    </context>
    <context name="Iconify">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Iconify"/>
      </mousebind>
    </context>
    <context name="Maximize">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleMaximizeFull"/>
      </mousebind>
      <mousebind button="Middle" action="Click">
        <action name="ToggleMaximizeVert"/>
      </mousebind>
      <mousebind button="Right" action="Click">
        <action name="ToggleMaximizeHorz"/>
      </mousebind>
    </context>
    <context name="Close">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Close"/>
      </mousebind>
    </context>
    <context name="Desktop">
      <mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Root">
      <!-- Menus -->
      <mousebind button="Middle" action="Press">
        <action name="ShowMenu">
          <menu>client-list-combined-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="ShowMenu">
          <menu>root-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="MoveResize">
      <mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
    </context>
  </mouse>
  <menu>
    <!-- You can specify more than one menu file in here and they are all loaded,
       just don't make menu ids clash or, well, it'll be kind of pointless -->
    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
    <!-- system menu files on Debian systems 
    <file>/var/lib/openbox/debian-menu.xml</file>
    <file>debian-menu.xml</file> -->
    <file>menu.xml</file>
    <hideDelay>200</hideDelay>
    <middle>no</middle>
    <submenuShowDelay>100</submenuShowDelay>
    <applicationIcons>yes</applicationIcons>
  </menu>
  <applications>
    <!--
  # this is an example with comments through out. use these to make your
  # own rules, but without the comments of course.

  <application name="first element of window's WM_CLASS property (see xprop)"
              class="second element of window's WM_CLASS property (see xprop)"
               role="the window's WM_WINDOW_ROLE property (see xprop)">
  # the name or the class can be set, or both. this is used to match
  # windows when they appear. role can optionally be set as well, to
  # further restrict your matches.

  # the name, class, and role use simple wildcard matching such as those
  # used by a shell. you can use * to match any characters and ? to match
  # any single character.

  # when multiple rules match a window, they will all be applied, in the
  # order that they appear in this list


    # each element can be left out or set to 'default' to specify to not 
    # change that attribute of the window

    <decor>yes</decor>
    # enable or disable window decorations

    <shade>no</shade>
    # make the window shaded when it appears, or not

    <position>
      # the position is only used if both an x and y coordinate are provided
      # (and not set to 'default')
      <x>center</x>
      # a number like 50, or 'center' to center on screen. use a negative number
      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
      # right edge (or bottom).
      <y>200</y>
      <monitor>1</monitor>
      # specifies the monitor in a xinerama setup.
      # 1 is the first head, or 'mouse' for wherever the mouse is
    </position>

    <focus>yes</focus>
    # if the window should try be given focus when it appears. if this is set
    # to yes it doesn't guarantee the window will be given focus. some
    # restrictions may apply, but Openbox will try to

    <desktop>1</desktop>
    # 1 is the first desktop, 'all' for all desktops

    <layer>normal</layer>
    # 'above', 'normal', or 'below'

    <iconic>no</iconic>
    # make the window iconified when it appears, or not

    <skip_pager>no</skip_pager>
    # asks to not be shown in pagers

    <skip_taskbar>no</skip_taskbar>
    # asks to not be shown in taskbars. window cycling actions will also
    # skip past such windows

    <fullscreen>yes</fullscreen>
    # make the window in fullscreen mode when it appears

    <maximized>true</maximized>
    # 'Horizontal', 'Vertical' or boolean (yes/no)
  </application>

  # end of the example
-->
    <application name="gmessage">
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <skip_taskbar>yes</skip_taskbar>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
    </application>
    <application name="openbox-logout">
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
      <layer>above</layer>
    </application>
  </applications>
</openbox_config>

done anything particularly radical or innovative with your rc.xml ?

Offline

Be excellent to each other!

#2 2009-12-17 23:28:20

bouncylj
New Member
Registered: 2009-12-17
Posts: 2

Re: post your rc.xml tweaks for openbox.

not to sound too noobish, but could someone please post a copy of the original config file.

Offline

#3 2009-12-18 07:56:17

pitje
#! Junkie
From: me to you
Registered: 2009-02-10
Posts: 438
Website

Re: post your rc.xml tweaks for openbox.

bouncylj wrote:

not to sound too noobish, but could someone please post a copy of the original config file.

it can be found @ /etc/skel/.config/openbox/rc.xml


oh yeah? well, your momma dresses you funny and you need a mouse to delete files

Offline

#4 2010-01-04 22:30:03

bouncylj
New Member
Registered: 2009-12-17
Posts: 2

Re: post your rc.xml tweaks for openbox.

thanks very much

Offline

#5 2010-02-26 01:46:43

zengrapefruit
#! Junkie
Registered: 2009-12-11
Posts: 281

Re: post your rc.xml tweaks for openbox.

Because I've no idea what I'm doing, I put all my modifications in a separate section:

                                          #KEYBOARD
  <keyboard>
                                          
                                        #My additions
  #Move window to edge (N, S, E, W) Use Super plus Arrow key
      <keybind key="W-Up"><action name="MoveToEdgeNorth"/></keybind>
    <keybind key="W-Down"><action name="MoveToEdgeSouth"/></keybind>
    <keybind key="W-Left">
        action name="MoveToEdgeWest"/&gt;
    </keybind>
    <keybind key="W-Right"><action name="MoveToEdgeEast"/></keybind>

   #Grow to edge Use Ctrl plus Arrow key
       <keybind key="C-Up"><action name="GrowToEdgeNorth"/></keybind>
    <keybind key="C-Down"><action name="GrowToEdgeSouth"/></keybind>
    <keybind key="C-Left"><action name="GrowToEdgeWest"/></keybind>
    <keybind key="C-Right"><action name="GrowToEdgeEast"/>
                                #End of my additions

    </keybind>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left"><action name="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action></keybind>
    <keybind key="C-A-Right"><action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action></keybind>

Offline

#6 2010-02-26 02:12:29

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

I added these binds I can just use my middle mouse button for minimizing/closing. My titlebar has no buttons big_smile

      <mousebind button="Middle" action="Press">
        <action name="Close"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="Iconify"/>
      </mousebind>

Last edited by anonymous (2010-02-26 02:14:31)

Offline

#7 2010-02-26 02:37:54

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

Re: post your rc.xml tweaks for openbox.

^ cunning, like it... I have to think to a way to do a buttonless window but only using a laptop touch pad.

I know that if I click left+right together it simulates a middle click, i'm just not sure what I'd use for iconify.


I blog too much....       geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao

Offline

#8 2010-02-26 03:43:04

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: post your rc.xml tweaks for openbox.

zengrapefruit wrote:

Because I've no idea what I'm doing, I put all my modifications in a separate section:

                                          #KEYBOARD
  <keyboard>
                                          
                                        #My additions
  #Move window to edge (N, S, E, W) Use Super plus Arrow key
      <keybind key="W-Up"><action name="MoveToEdgeNorth"/></keybind>
    <keybind key="W-Down"><action name="MoveToEdgeSouth"/></keybind>
    <keybind key="W-Left">
        action name="MoveToEdgeWest"/&gt;
    </keybind>
    <keybind key="W-Right"><action name="MoveToEdgeEast"/></keybind>

   #Grow to edge Use Ctrl plus Arrow key
       <keybind key="C-Up"><action name="GrowToEdgeNorth"/></keybind>
    <keybind key="C-Down"><action name="GrowToEdgeSouth"/></keybind>
    <keybind key="C-Left"><action name="GrowToEdgeWest"/></keybind>
    <keybind key="C-Right"><action name="GrowToEdgeEast"/>
                                #End of my additions

    </keybind>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left"><action name="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action></keybind>
    <keybind key="C-A-Right"><action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action></keybind>

That's an xml file, and comments don't work the same as for shell scripts etc. You need to enclose the comments in html comment tags like this:

<!-- comment here -->

Now, it's possible your #comment type entries were safely ignored by openbox because they're outside the xml tags, but they could cause problems.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#9 2010-02-26 08:12:08

Kookaburra
#! CrunchBanger
From: Orléans - France
Registered: 2009-09-03
Posts: 234

Re: post your rc.xml tweaks for openbox.

I make some modifications in my rc.xml ... And I don't remember all ! lol lol

Just take a look :

<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
  <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
  </resistance>
  <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
       apply -->
    <followMouse>no</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>yes</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
       under the mouse pointer. when followMouse is enabled -->
    <underMouse>no</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>200</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
       this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
       mouse into it, also raise the window -->
  </focus>
  <placement>
    <policy>Smart</policy>
    <!-- 'Smart' or 'UnderMouse' -->
    <center>yes</center>
    <!-- whether to place windows in the center of the free area found or
       the top left corner -->
    <monitor>Any</monitor>
  </placement>
  <theme>
    <name>Clearlooks-Zenburn</name>
    <titleLayout>NDSLIMC</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>yes</animateIconify>
    <font place="ActiveWindow">
      <name>FreeSans</name>
      <size>11</size>
      <!-- font size in points -->
      <weight>Bold</weight>
      <!-- 'bold' or 'normal' -->
      <slant>Normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="InactiveWindow">
      <name>FreeSans</name>
      <size>11</size>
      <!-- font size in points -->
      <weight>Normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>Normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuHeader">
      <name>FreeSans</name>
      <size>9</size>
      <!-- font size in points -->
      <weight>Bold</weight>
      <!-- 'bold' or 'normal' -->
      <slant>Normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuItem">
      <name>FreeSans</name>
      <size>9</size>
      <!-- font size in points -->
      <weight>Normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>Normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
    <font place="OnScreenDisplay">
      <name>FreeSans Oblique</name>
      <size>9</size>
      <!-- font size in points -->
      <weight>Normal</weight>
      <!-- 'bold' or 'normal' -->
      <slant>Normal</slant>
      <!-- 'italic' or 'normal' -->
    </font>
  </theme>
  <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>3</number>
    <firstdesk>1</firstdesk>
    <names>
      <name>Internet</name>
      <name>Multimedia</name>
      <name>System</name>
    </names>
    <popupTime>875</popupTime>
    <!-- The number of milliseconds to show the popup for when switching
       desktops.  Set this to 0 to disable the popup. -->
  </desktops>
  <resize>
    <drawContents>yes</drawContents>
    <popupShow>Nonpixel</popupShow>
    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupPosition>Center</popupPosition>
    <!-- 'Center' or 'Top' -->
    <popupFixedPosition>
      <x>0</x>
      <y>0</y>
    </popupFixedPosition>
  </resize>
  <!-- You can reserve a portion of your screen where windows will not cover when
     they are maximized, or when they are initially placed.
     Many programs reserve space automatically, but you can use this in other
     cases. -->
  <margins>
    <top>16</top>
    <bottom>0</bottom>
    <left>0</left>
    <right>0</right>
  </margins>
  <dock>
    <position>TopLeft</position>
    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    <floatingX>0</floatingX>
    <floatingY>0</floatingY>
    <noStrut>no</noStrut>
    <stacking>Above</stacking>
    <!-- 'Above', 'Normal', or 'Below' -->
    <direction>Vertical</direction>
    <!-- 'Vertical' or 'Horizontal' -->
    <autoHide>no</autoHide>
    <hideDelay>300</hideDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <showDelay>300</showDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <moveButton>Middle</moveButton>
    <!-- 'Left', 'Middle', 'Right' -->
  </dock>
  <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left">
      <action name="DesktopLeft">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Right">
      <action name="DesktopRight">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Up">
      <action name="DesktopUp">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Down">
      <action name="DesktopDown">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Left">
      <action name="SendToDesktopLeft">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Right">
      <action name="SendToDesktopRight">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Up">
      <action name="SendToDesktopUp">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Down">
      <action name="SendToDesktopDown">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="W-F1">
      <action name="Desktop">
        <desktop>1</desktop>
      </action>
    </keybind>
    <keybind key="W-F2">
      <action name="Desktop">
        <desktop>2</desktop>
      </action>
    </keybind>
    <keybind key="W-F3">
      <action name="Desktop">
        <desktop>3</desktop>
      </action>
    </keybind>
    <keybind key="W-F4">
      <action name="Desktop">
        <desktop>4</desktop>
      </action>
    </keybind>
    <keybind key="W-d">
      <action name="ToggleShowDesktop"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="A-F5">
      <action name="Close"/>
    </keybind>
    <keybind key="A-Escape">
      <action name="Lower"/>
      <action name="FocusToBottom"/>
      <action name="Unfocus"/>
    </keybind>
    <keybind key="A-space">
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
    </keybind>
    <keybind key="Print">
      <action name="Execute">
        <execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Images/ &amp; gpicview ~/Images/$f'</execute>
      </action>
    </keybind>
    <keybind key="A-Print">
      <action name="Execute">
        <execute>scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Images/ &amp; gpicview ~/Images/$f'</execute>
      </action>
    </keybind>
    <!-- Keybindings for window switching -->
    <keybind key="A-Tab">
      <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
      <action name="PreviousWindow"/>
    </keybind>
    <keybind key="C-A-Tab">
      <action name="NextWindow">
        <panels>yes</panels>
        <desktop>yes</desktop>
      </action>
    </keybind>
    <!-- Keybindings for running applications -->
    <keybind key="A-F1">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Run Program</name>
        </startupnotify>
        <command>terminator</command>
      </action>
    </keybind>
    <keybind key="A-F2">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>gmrun</name>
        </startupnotify>
        <command>gmrun</command>
      </action>
    </keybind>
    <keybind key="A-F3">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>dmenu-bind</name>
        </startupnotify>
        <command>~/.config/dmenu/dmenu-bind.sh</command>
      </action>
    </keybind>
    <keybind key="A-F4">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Run Program</name>
        </startupnotify>
        <command>xfce4-mixer</command>
      </action>
    </keybind>
    <keybind key="W-f">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Thunar</name>
        </startupnotify>
        <command>thunar</command>
      </action>
    </keybind>
    <keybind key="W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal</name>
        </startupnotify>
        <command>terminator</command>
      </action>
    </keybind>
    <keybind key="W-w">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Web Browser</name>
        </startupnotify>
        <command>firefox-3.5</command>
      </action>
    </keybind>
    <keybind key="W-g">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Graphics Editor</name>
        </startupnotify>
        <command>gimp</command>
      </action>
    </keybind>
    <keybind key="W-l">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Lock screen</name>
        </startupnotify>
        <command>gnome-screensaver-command -l</command>
      </action>
    </keybind>
    <keybind key="W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Editor</name>
        </startupnotify>
        <command>geany</command>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Mediaplayer</name>
        </startupnotify>
        <command>vlc</command>
      </action>
    </keybind>
    <keybind key="W-v">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Volume</name>
        </startupnotify>
        <command>gnome-volume-control</command>
      </action>
    </keybind>
    <keybind key="W-u">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>SystemUpdate</name>
        </startupnotify>
        <command>system-update</command>
      </action>
    </keybind>
    <keybind key="W-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Clock</name>
        </startupnotify>
        <command>~/.config/gworldclock/gworldclock.sh</command>
      </action>
    </keybind>
    <keybind key="W-x">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Logout</name>
        </startupnotify>
        <command>oblogout</command>
      </action>
    </keybind>
    <keybind key="W-Tab">
      <action name="ShowMenu">
        <menu>client-list-combined-menu</menu>
      </action>
    </keybind>
    <keybind key="A-C-q">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>
    <keybind key="W-Up">
      <action name="Execute">
        <execute>aumix -v+10</execute>
      </action>
    </keybind>
    <keybind key="W-Down">
      <action name="Execute">
        <execute>aumix -v-10</execute>
      </action>
    </keybind>
    <keybind key="W-Right">
      <action name="Execute">
        <execute>banshee --next</execute>
      </action>
    </keybind>
    <keybind key="W-Left">
      <action name="Execute">
        <execute>banshee --previous</execute>
      </action>
    </keybind>
    <keybind key="W-space">
      <action name="Execute">
        <execute>banshee --toggle-playing</execute>
      </action>
    </keybind>
  </keyboard>
  <mouse>
    <dragThreshold>8</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
       screen while moving a window, in milliseconds (1000 = 1 second).
       Set this to 0 to disable warping -->
    <context name="Frame">
      <mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="A-Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Right" action="Drag">
        <action name="Resize"/>
      </mousebind>
      <mousebind button="A-Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-S-Up" action="Click">
        <action name="SendToDesktopPrevious"/>
      </mousebind>
      <mousebind button="A-S-Down" action="Click">
        <action name="SendToDesktopNext"/>
      </mousebind>
    </context>
    <context name="Titlebar">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="Left" action="DoubleClick">
        <action name="ToggleMaximizeFull"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="Up" action="Click">
        <action name="Shade"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
        <action name="Lower"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="Unshade"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="Top">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>top</edge>
        </action>
      </mousebind>
    </context>
    <context name="Left">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>left</edge>
        </action>
      </mousebind>
    </context>
    <context name="Right">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>right</edge>
        </action>
      </mousebind>
    </context>
    <context name="Bottom">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>bottom</edge>
        </action>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="BLCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="BRCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="TLCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="TRCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="Client">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Icon">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="AllDesktops">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleOmnipresent"/>
      </mousebind>
    </context>
    <context name="Shade">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleShade"/>
      </mousebind>
    </context>
    <context name="Iconify">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Iconify"/>
      </mousebind>
    </context>
    <context name="Maximize">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleMaximizeFull"/>
      </mousebind>
      <mousebind button="Middle" action="Click">
        <action name="ToggleMaximizeVert"/>
      </mousebind>
      <mousebind button="Right" action="Click">
        <action name="ToggleMaximizeHorz"/>
      </mousebind>
    </context>
    <context name="Close">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Close"/>
      </mousebind>
    </context>
    <context name="Desktop">
      <mousebind action="DoubleClick" button="Left">
        <action name="ToggleShowDesktop"/>
      </mousebind>
      <mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Root">
      <!-- Menus -->
      <mousebind button="Left" action="Press">
        <action name="ShowMenu">
          <menu>client-list-combined-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="ShowMenu">
          <menu>root-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="MoveResize">
      <mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
    </context>
  </mouse>
  <menu>
    <!-- You can specify more than one menu file in here and they are all loaded,
       just don't make menu ids clash or, well, it'll be kind of pointless -->
    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
    <!-- system menu files on Debian systems -->
    <file>/var/lib/openbox/debian-menu.xml</file>
    <file>debian-menu.xml</file>
    <file>menu.xml</file>
    <hideDelay>200</hideDelay>
    <middle>no</middle>
    <submenuShowDelay>100</submenuShowDelay>
    <applicationIcons>yes</applicationIcons>
  </menu>
  <applications>
    <!--
  # this is an example with comments through out. use these to make your
  # own rules, but without the comments of course.

  <application name="first element of window's WM_CLASS property (see xprop)"
              class="second element of window's WM_CLASS property (see xprop)"
               role="the window's WM_WINDOW_ROLE property (see xprop)">
  # the name or the class can be set, or both. this is used to match
  # windows when they appear. role can optionally be set as well, to
  # further restrict your matches.

  # the name, class, and role use simple wildcard matching such as those
  # used by a shell. you can use * to match any characters and ? to match
  # any single character.

  # when multiple rules match a window, they will all be applied, in the
  # order that they appear in this list


    # each element can be left out or set to 'default' to specify to not 
    # change that attribute of the window

    <decor>yes</decor>
    # enable or disable window decorations

    <shade>no</shade>
    # make the window shaded when it appears, or not

    <position>
      # the position is only used if both an x and y coordinate are provided
      # (and not set to 'default')
      <x>center</x>
      # a number like 50, or 'center' to center on screen. use a negative number
      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
      # right edge (or bottom).
      <y>200</y>
      <monitor>1</monitor>
      # specifies the monitor in a xinerama setup.
      # 1 is the first head, or 'mouse' for wherever the mouse is
    </position>

    <focus>yes</focus>
    # if the window should try be given focus when it appears. if this is set
    # to yes it doesn't guarantee the window will be given focus. some
    # restrictions may apply, but Openbox will try to

    <desktop>1</desktop>
    # 1 is the first desktop, 'all' for all desktops

    <layer>normal</layer>
    # 'above', 'normal', or 'below'

    <iconic>no</iconic>
    # make the window iconified when it appears, or not

    <skip_pager>no</skip_pager>
    # asks to not be shown in pagers

    <skip_taskbar>no</skip_taskbar>
    # asks to not be shown in taskbars. window cycling actions will also
    # skip past such windows

    <fullscreen>yes</fullscreen>
    # make the window in fullscreen mode when it appears

    <maximized>true</maximized>
    # 'Horizontal', 'Vertical' or boolean (yes/no)
  </application>

  # end of the example
-->
    <application name="iceweasel">
      <desktop>1</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="icedove">
      <desktop>1</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="liferea">
      <desktop>1</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="emesene">
      <desktop>1</desktop>
    </application>
    <application name="rhythmbox">
      <desktop>2</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="banshee">
      <desktop>2</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="xfce4-mixer">
      <desktop>2</desktop>
    </application>
    <application name="deluge">
      <desktop>2</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="amule">
      <desktop>2</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="gimp">
      <desktop>2</desktop>
    </application>
    <application name="gthumb">
      <desktop>2</desktop>
    </application>
    <application name="phatch">
      <desktop>2</desktop>
    </application>
    <application name="jbrout">
      <desktop>2</desktop>
    </application>
    <application name="rawtherapee">
      <desktop>2</desktop>
    </application>
    <application name="hugin">
      <desktop>2</desktop>
    </application>
    <application name="thunar">
      <desktop>3</desktop>
    </application>
    <application name="pcmanfm">
      <desktop>3</desktop>
    </application>
    <application name="geany">
      <desktop>3</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="xterm">
      <maximized>yes</maximized>
    </application>
    <application name="synaptic">
      <desktop>3</desktop>
    </application>
    <application name="xfce4-terminal">
      <desktop>3</desktop>
      <maximized>yes</maximized>
    </application>
    <application name="gmessage">
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <skip_taskbar>yes</skip_taskbar>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
    </application>
    <application name="bashrun">
      <decor>no</decor>
      <focus>yes</focus>
      <skip_pager>yes</skip_pager>
      <layer>above</layer>
    </application>
    <application name="openbox-logout">
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
      <layer>above</layer>
    </application>
  </applications>
</openbox_config>

Offline

#10 2010-02-26 11:24:24

Digit
#! Die Hard
From: the internet
Registered: 2009-05-26
Posts: 1,083
Website

Re: post your rc.xml tweaks for openbox.

oh cool, this thread finally took off today.  smile

i've made a few changes since posting mine, like i now have xkill on alt-F6, but for now,  i'll just share this one section though:

    <!-- Digit's Keybindings for window transparency -->
    <keybind key="W-1">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.1</name>
        </startupnotify>
        <command>transset 0.1</command>
      </action>
    </keybind>
    <keybind key="W-2">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.2</name>
        </startupnotify>
        <command>transset 0.2</command>
      </action>
    </keybind>
    <keybind key="W-3">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.3</name>
        </startupnotify>
        <command>transset 0.3</command>
      </action>
    </keybind>
    <keybind key="W-4">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.4</name>
        </startupnotify>
        <command>transset 0.4</command>
      </action>
    </keybind>
    <keybind key="W-5">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.5</name>
        </startupnotify>
        <command>transset 0.5</command>
      </action>
    </keybind>
    <keybind key="W-6">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.6</name>
        </startupnotify>
        <command>transset 0.6</command>
      </action>
    </keybind>
    <keybind key="W-7">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.7</name>
        </startupnotify>
        <command>transset 0.7</command>
      </action>
    </keybind>
    <keybind key="W-8">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.8</name>
        </startupnotify>
        <command>transset 0.8</command>
      </action>
    </keybind>
    <keybind key="W-9">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.9</name>
        </startupnotify>
        <command>transset 0.9</command>
      </action>
    </keybind>
    <keybind key="W-0">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 1</name>
        </startupnotify>
        <command>transset 1</command>
      </action>
    </keybind>

that's right!  make any window transparent with only one click of a mouse.   (..well, a key combo press first too).
much easier than navigating through menus when u need to see whats beneath a window while still seeing it.

Offline

#11 2010-02-26 11:30:58

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

Re: post your rc.xml tweaks for openbox.

I do believe this thread is a useful one but can we post just the important snippets and not the whole RC each time? It makes reading a bit tough when the whole RC is posted.

Or if you do post the whole thing maybe some form of highlighting of the important bits (not sure how you'd do that)


I blog too much....       geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao

Offline

#12 2010-02-26 11:38:39

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

Re: post your rc.xml tweaks for openbox.

I think one of my favourite bits in my RC is this under the applications section at the bottom

    <application name="swiftfox-bin">
      <decor>no</decor>

Switfox (my web browser) opens fullscreen and undecorated so it does not waste any space.

~~

Also I make my terminal open to a nice widescreen format

    <keybind key="W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>terminator</name>
        </startupnotify>
        <command>terminator --geometry 930x420</command>
      </action>
    </keybind>

Last edited by tawan (2010-02-26 11:41:44)


I blog too much....       geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao

Offline

#13 2010-03-04 05:04:24

zengrapefruit
#! Junkie
Registered: 2009-12-11
Posts: 281

Re: post your rc.xml tweaks for openbox.

johnraff wrote:

That's an xml file, and comments don't work the same as for shell scripts etc. You need to enclose the comments in html comment tags like this:

<!-- comment here -->

Now, it's possible your #comment type entries were safely ignored by openbox because they're outside the xml tags, but they could cause problems.

Changed. Thanks, JR.

Told you I didn't know what I was doing!! It did work, tho. smile

Offline

#14 2010-03-15 02:31:10

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

I made these to emulate a couple of Windows 7 keybinds:

    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>640</width>
      </action>
      <action name="MoveToEdgeWest"/>
    </keybind>
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>640</width>
      </action>
      <action name="MoveToEdgeEast"/>
    </keybind>

You should change the numbers based on your display resolution and any panels you have.

Last edited by anonymous (2010-03-17 20:45:31)

Offline

#15 2010-03-15 02:38:29

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: post your rc.xml tweaks for openbox.

Cool, anonymous!  It works great.

Last edited by pvsage (2010-03-15 07:30:07)

Offline

#16 2010-03-15 03:19:49

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 1,020

Re: post your rc.xml tweaks for openbox.

I wanted to open all apps without decor (7" netbookscreen):

not really knowing what I am doing.. big_smile – but I guessed right! for my netbook, I put this at the very end of rc.xml (just before the </applications> tag:

<application name="*">
   <decor>no</decor>
   </application>

not wasting any screen anymore on buttons! to get rid of the remaining thin borders (otherwise tint and conky look strange), untick window borders in the openbox GUI Config Tool. Now I close windows with alt+f4, move and resize with alt+left/right mouse button if need be.

but fullscreening all apps works not too good sad maybe I try maximize.. what's the difference between the both?

good thread – bookmark'd!

Last edited by saneks (2010-03-15 03:23:27)


eee701 user & other lap/desktops

Offline

#17 2010-03-15 03:36:58

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

When you maximize an app, the decorations stay and it doesn't cover panels. When you fullscreen the app, decorations are removed and the app will cover panels.

Offline

#18 2010-03-15 09:03:29

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 1,020

Re: post your rc.xml tweaks for openbox.

^ thanks, after some thinking about it,I came to that conclusion too. so no decor plus maximize is pretty good for me with small screen. most apps that need being maximized seem already maximized here, though.


eee701 user & other lap/desktops

Offline

#19 2010-03-15 14:08:26

bozhkov
#! Junkie
Registered: 2009-12-29
Posts: 464

Re: post your rc.xml tweaks for openbox.

I just added the ability to start certain gtk applications in maximised state:
</application>

<application name="abiword">
<maximized>yes</maximized>
</application>

Offline

#20 2010-04-06 00:09:09

anthony
Member
From: Brisbane, Australia
Registered: 2010-04-05
Posts: 13
Website

Re: post your rc.xml tweaks for openbox.

One of the things I do with Openbox is have it type text into input boxes such as web browsers, web forms, email, or terminals.

For example I arrange Windows F1 to type my email address and W-F2 my personal home page. To do this I run a X winodw event generating programs such as "xte" from the "xautomation" package, or "xmacroplay" from the "xmacro" package.

The big trick is that before the 'macro' is performed you must pause to give the user time to release the 'windows' or any other shift key.  If you don't the macro gets 'typed' in with that same shift still in play. 

Here for example is my URL macro...

    <keybind key="W-F2">
      <action name="Execute">
        <command>bash -c "xte 'usleep 500000' \\\
            'str http://www.cit.griffith.edu.au/'`printf '\176'`'anthony/'"
        </command>
      </action>
    </keybind>

Note the big 'usleep' delay option in the "xte" command. That is a 1/2 second delay. The other point is the use of a "printf" to output a tilde '~' character, which also then requires the use of a "bash" shell wrapper.  In older OpenBox ~ would expand to the location of the users home ANYWHERE it appeared!  This was fixed in later releases.

For more information on generating keyboard macros, and the problems of 'shift' keys, see my notes
   http://www.cit.griffith.edu.au/~anthony … ndling.txt
And yes the first part of this URL was typed into the forum reply text box using that same macro!

Last edited by anthony (2010-04-07 05:24:34)


Anthony Thyssen   -- Webmaster for ImageMagick Example Pages
                  http://www.imagemagick.org/Usage/

Offline

#21 2010-04-07 04:35:22

Digit
#! Die Hard
From: the internet
Registered: 2009-05-26
Posts: 1,083
Website

Re: post your rc.xml tweaks for openbox.

fascinating and ingenious anthony.  smile

Offline

#22 2010-04-07 06:23:23

anthony
Member
From: Brisbane, Australia
Registered: 2010-04-05
Posts: 13
Website

Re: post your rc.xml tweaks for openbox.

Another addition I have in my Openbox rc.xml file is some hotkeys to lookup information about some text I highlight with my mouse.

Basically it calls a script I wrote more than 15 years ago (and updated as appropriate) which first looks up the highlighted text using "xselection".  It then create a URL and calls my web browser to display that URL.

basically it means I could highlight a URL and press F12 to do to it, even if no 'link' is provided.
Or highlight like some application name, or error message, and press F11 to google for it. or Ctrl-F11 to look it up on Wikipedia!

The text can come from anywhere.  Email, Web pages, Terminals, Pop-up error messages, Chat, etc.  I do not have to rely on any specific application to make a 'link', I just highlight and do it.

The program is called "www_ctrl" and you can download and modify it from
    http://www.cit.griffith.edu.au/~anthony … /#www_ctrl
(Yes I used the W-F2 key again here :-)

Here is the Openbox rc.xml snipt...

    <!--
        Keybindings for Web Browsing
    -->
    <keybind key="F11">
      <action name="Execute">
        <command>www_ctrl -s</command>  <!-- google -->
      </action>
    </keybind>
    <keybind key="s-F11">
      <action name="Execute">
        <command>www_ctrl -si</command> <!-- google image -->
      </action>
    </keybind>
    <keybind key="c-F11">
      <action name="Execute">
        <command>www_ctrl -wp</command> <!-- wikipedia -->
      </action>
    </keybind>
    <keybind key="F12">
      <action name="Execute">
        <command>www_ctrl</command> <!-- goto URL -->
      </action>
    </keybind>

yes I know things like Gnome does some things like this with special multi-media buttons (specifically F12 - goto URL).  But you don't have much control, and you can expand it or modify it as you needs change.

The combination of Openbox and the "www_crtl" script does let you expand and modify as things change, or use other search engines or information source.  For example send the highlighted data to  dictionary/thesaurus/spelling  site?  Or if you deal with some foreign language a translation site.   It is just a matter of having the script compose the right URL from the highlighted data and passing it to firefox (or whatever).

Let me know what additions you come up with.

Last edited by anthony (2010-04-19 00:46:52)


Anthony Thyssen   -- Webmaster for ImageMagick Example Pages
                  http://www.imagemagick.org/Usage/

Offline

#23 2010-04-18 21:24:05

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 1,020

Re: post your rc.xml tweaks for openbox.

anthony, this is pretty cool. thanks for sharing!


eee701 user & other lap/desktops

Offline

#24 2010-04-25 12:57:37

achristoffersen
#! Junkie
Registered: 2009-03-23
Posts: 354

Re: post your rc.xml tweaks for openbox.

Using keypad 1,3,7,9 to move and resize active window to respectively bottom left, bottom right, top left, top right corner. Adjust to you screen resultion (it would be coool to automatically get screen resolution from e.g. xrandr and then divide by half - but I don't know how to do this)

It took me a short while to figure out that keypad 3 was KP_3 and not just 3 - but thank you google and gentoo forums :-)

 <keybind key="W-KP_3">
        <action name="UnmaximizeFull"/>
        <action name="MoveResizeTo">
            <!-- put the window in the bottom right corner -->
            <x>-0</x>
            <y>-0</y>
            <height>540</height>
            <width>950</width>
        </action>
    </keybind>
    <keybind key="W-KP_1">
        <action name="UnmaximizeFull"/>
        <action name="MoveResizeTo">
            <!-- put the window in the bottom left corner -->
            <x>+-0</x>
            <y>-0</y>
            <height>540</height>
            <width>950</width>
        </action>
    </keybind>
        <keybind key="W-KP_7">
        <action name="UnmaximizeFull"/>
        <action name="MoveResizeTo">
            <!-- put the window in the top left corner -->
            <x>+-0</x>
            <y>+-0</y>
            <height>540</height>
            <width>950</width>
        </action>
    </keybind>
         <keybind key="W-KP_9">
        <action name="UnmaximizeFull"/>
        <action name="MoveResizeTo">
            <!-- put the window in the top right corner -->
            <x>-0</x>
            <y>+-0</y>
            <height>540</height>
            <width>950</width>
        </action>
    </keybind>

Last edited by achristoffersen (2010-04-25 13:03:58)

Offline

Be excellent to each other!

#25 2010-04-25 13:50:09

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

@achristoffersen - you do know your code always makes your windows the same size: 950*540? I don't know if you did that on purpose.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo