]> Dogcows Code - chaz/openbox/blobdiff - data/rc3
make interactive actions a type and not special cases.
[chaz/openbox] / data / rc3
index 87e761c66c65fb0e12b01c5b4caf9f998eb65150..1b553fa7a9006ca6cceb68b080b4bf0c66d70ca9 100644 (file)
--- a/data/rc3
+++ b/data/rc3
-[openbox]
-
-# the theme engine to use
-#engine = "openbox"
-
-# the theme to display with the theme engine
-theme = "ebox"
-
-# the order of the elements in windows' titlebars
-# n - icon
-# d - alldesktops button
-# s - shade button
-# l - text label
-# i - iconify button
-# m - maximize button
-# c - close button
-#titlebar.layout = "NDSLIMC"
-
-# the font for the window titlebars
-#font = "Sans-7"
-
-# the drop shadow for the window titlebars
-#font.shadow = no
-
-# the offset of the drop shadow for the window titlebars
-#font.shadow.offset = 1
-
-# the amount of opacity of the drop shadow for the window titlebars
-# -100 - 0 = white shadow (0 clear, -100 solid)
-# 0 - 100  = black shadow (0 clear, 100 solid)
-#font.shadow.tint = 25
-
-# does focus follow the mouse pointer
-#focusfollowsMouse = yes
-
-# focus new windows when they appear
-#focusNew = yes
-
-# place windows where they were last (for placement module)
-#placement.remember = yes
-
-# amount of resistance to provide at edges (for resistance module)
-#resistance = 10
-
-# resistance against other windows (for resistance module)
-#resistance.windows = yes
-
-# the distance a drag must go before it is recognized
-#mouse.dragThreshold = 3
-
-# the amount of time in milliseconds in which two clicks must occur to cause a
-# doubleclick event
-#mouse.doubleClickTime = 200
-
-[keyboard]
-
-kbind (C-A-Escape)     execute "xlock -nolock -mode puzzle"
-kbind (F14)            execute "sshot"
-
-# xterm
-kbind (A-space)                execute "xterm"
-kbind (XF86Start)      execute "xterm -geometry 80x30-0-0 -title eris -e ssh xor@eris.orodu.net"
-
-# konqueror
-kbind (W-e)            execute "kfmclient openProfile filemanagement"
-kbind (XF86HomePage)   execute "kfmclient openProfile webbrowsing"
-
-# xmms
-kbind (XF86AudioPlay)  execute "xmms -p"
-kbind (XF86AudioStop)  execute "xmms -u"
-kbind (XF86AudioPrev)  execute "xmms -r"
-kbind (XF86AudioNext)  execute "xmms -f"
-
-# copy current song
-kbind (W-w)            execute "getxmms"
-
-kbind (A-Left)         PreviousDesktopWrap
-kbind (A-Right)                NextDesktopWrap
-
-kbind (A-1)            Desktop 1
-kbind (A-2)            Desktop 2
-kbind (A-3)            Desktop 3
-kbind (A-4)            Desktop 4
-
-kbind (C-A-1)          SendToDesktop 1
-kbind (C-A-2)          SendToDesktop 2
-kbind (C-A-3)          SendToDesktop 3
-kbind (C-A-4)          SendToDesktop 4
-
-kbind (C-S-x x)                ToggleMaximizeFull
-kbind (C-S-x Up)       ToggleMaximizeVert
-kbind (C-S-x Right)    ToggleMaximizeHorz
-
-kbind (C-A-Left)       MoveRelativeHorz -3
-kbind (C-A-Right)      MoveRelativeHorz  3
-kbind (C-A-Up)         MoveRelativeVert -3
-kbind (C-A-Down)       MoveRelativeVert  3
-
-kbind (A-F4)           Close
-
-kbind (W-D)            ToggleDecorations
-
-[mouse]
-
-#mbind Context         Event           Button  Action [Parameter]
-
-mbind  Titlebar        Drag            Left    Move
-mbind  Handle          Drag            Left    Move
-mbind  Frame           Drag            A-Left  Move
-
-mbind  BLCorner        Drag            Left    Resize
-mbind  BRCorner        Drag            Left    Resize
-mbind  Frame           Drag            A-Right Resize
-
-mbind  Titlebar        Click           Left    Raise
-mbind  Titlebar        Press           Middle  Lower
-mbind  Handle          Click           Left    Raise
-mbind  Handle          Press           Middle  Lower
-mbind  Frame           Click           A-Left  Raise
-mbind  Frame           Click           A-Right Lower
-
-mbind  Titlebar        Press           Left    Focus
-mbind  Handle          Press           Left    Focus
-mbind  BLCorner        Press           Left    Focus
-mbind  BRCorner        Press           Left    Focus
-mbind  Client          Press           Left    Focus
-mbind  Client          Press           Middle  Focus
-
-mbind  Titlebar        DoubleClick     Left    ToggleShade
-mbind  Titlebar        Click           Up      Shade
-mbind  Titlebar        Click           Down    UnShade
-
-mbind  Maximize        Click           Left    ToggleMaximizeFull
-mbind  Maximize        Click           Middle  ToggleMaximizeVert
-mbind  Maximize        Click           Right   ToggleMaximizeHorz
-mbind  Iconify         Click           Left    Iconify
-mbind  Icon            DoubleClick     Left    Close
-mbind  Close           Click           Left    Close
-mbind  Close           Click           Middle  Kill
-mbind  AllDesktops     Click           Left    ToggleOmnipresent
-mbind  Shade           Click           Left    ToggleShade
-
-mbind  Root            Click           Up      NextDesktopWrap
-mbind  Root            Click           Down    PreviousDesktopWrap
-mbind  Root            Click           A-Up    NextDesktopWrap
-mbind  Root            Click           A-Down  PreviousDesktopWrap
-mbind  Frame           Click           A-Up    NextDesktopWrap
-mbind  Frame           Click           A-Down  PreviousDesktopWrap
-mbind  Frame           Click           C-A-Up  SendToNextDesktopWrap
-mbind  Frame           Click           C-A-Down SendToPreviousDesktopWrap
-
-mbind  Root            Click           Left    execute "xterm"
-
-[foo]
-
-mbind Titlebar, Handle {
-       Left            press   Focus
-       Middle          press   Lower
-       Left            click   Raise
-       Right           click   Lower
-       Left            drag    Move
-}
-
-mbind Titlebar {
-       Up              press   Shade
-       Down            press   Unshade
-       Left            dclick  ToggleShade
-}
-
-mbind Frame {
-       A-Left          click   Raise
-       A-Left          drag    Move
-       A-Right         click   Lower
-       A-Right         drag    Resize
-       A-Up            click   NextDesktopWrap
-       A-Down          click   PreviousDesktopWrap
-       C-A-Up          click   SendToNextDesktopWrap
-       C-A-Down        click   SendToPreviousDesktopWrap
-}
-
-mbind BLCorner, BRCorner {
-       Left            press   Focus
-       Left            drag    Resize
-}
-
-mbind Client {
-       Left            press   Focus
-       Middle          press   Focus
-}
-
-mbind Root {
-       Left            click   execute "xterm"
-       Up              click   NextDesktopWrap
-       Down            click   PreviousDesktopWrap
-       A-Up            click   NextDesktopWrap
-       A-Down          click   PreviousDesktopWrap
-}
-
-mbind Maximize {
-       Left            click   ToggleMaximizeFull
-       Middle          click   ToggleMaximizeVert
-       Right           click   ToggleMaximizeHorz
-}
-
-
-mbind Iconify {
-       Left            click   Iconify
-}
-
-mbind Icon {
-       Left            dclick  Close
-}
-
-mbind Close {
-       Left            click   Close
-       Middle          click   Kill
-}
-
-mbind AllDesktops {
-       Left            click   ToggleOmnipresent
-}
-
-mbind Shade {
-       Left            click   ToggleShade
-}
-
+<?xml version="1.0"?>
+
+<!-- Do not edit this file, it will be overwritten on install. Copy the file
+     to $HOME/.openbox/ instead. -->
+
+<openbox_config>
+
+<resistance>
+  <strength>10</strength>
+  <screen_edge_strength>10</screen_edge_strength>
+</resistance>
+
+<placement>
+  <remember>yes</remember>
+</placement>
+
+<focus>
+  <focusNew>yes</focusNew>
+  <followMouse>no</followMouse>
+  <focusLast>yes</focusLast>
+  <focusLastOnDesktop>yes</focusLastOnDesktop>
+</focus>
+
+<theme>
+  <theme>operation</theme>
+  <titlelayout>NLIMC</titlelayout>
+</theme>
+
+<desktops>
+  <number>4</number>
+  <names>
+    <name>one</name>
+    <name>two</name>
+    <name>three</name>
+    <name>four</name>
+  </names>
+</desktops>
+
+<resize>
+  <drawContents>yes</drawContents>
+</resize>
+
+<dock>
+  <position>topleft</position>
+  <stacking>top</stacking>
+  <direction>vertical</direction>
+  <floatingX>0</floatingX>
+  <floatingY>0</floatingY>
+  <autoHide>no</autoHide>
+  <hideTimeout>300</hideTimeout>
+</dock>
+
+<keyboard>
+  <chainQuitKey>C-g</chainQuitKey>
+
+  <keybind key="A-F10">
+    <action name="MaximizeFull"></action>
+  </keybind>
+  <keybind key="A-F5">
+    <action name="UnmaximizeFull"></action>
+  </keybind>
+  <keybind key="A-F12">
+    <action name="ToggleShade"></action>
+  </keybind>
+  <keybind key="C-A-Left">
+    <action name="DesktopLeft"></action>
+  </keybind>
+  <keybind key="C-A-Right">
+    <action name="DesktopRight"></action>
+  </keybind>
+  <keybind key="C-A-Up">
+    <action name="DesktopUp"></action>
+  </keybind>
+  <keybind key="C-A-Down">
+    <action name="DesktopDown"></action>
+  </keybind>
+  <keybind key="S-A-Left">
+    <action name="SendToDesktopLeft"></action>
+  </keybind>
+  <keybind key="S-A-Right">
+    <action name="SendToDesktopRight"></action>
+  </keybind>
+  <keybind key="S-A-Up">
+    <action name="SendToDesktopUp"></action>
+  </keybind>
+  <keybind key="S-A-Down">
+    <action name="SendToDesktopDown"></action>
+  </keybind>
+  <keybind key="C-A-d">
+    <action name="ToggleShowDesktop"></action>
+  </keybind>
+  <keybind key="A-F4">
+    <action name="Close"></action>
+  </keybind>
+  <keybind key="A-Tab">
+    <action name="NextWindow"></action>
+  </keybind>
+  <keybind key="A-S-Tab">
+    <action name="PreviousWindow"></action>
+  </keybind>
+  <keybind key="A-F7">
+    <action name="KeyboardMove"></action>
+  </keybind>
+  <keybind key="A-F8">
+    <action name="KeyboardResize"></action>
+  </keybind>
+  <keybind key="A-F9">
+    <action name="Iconify"></action>
+  </keybind>
+</keyboard>
+
+<mouse>
+  <dragThreshold>3</dragThreshold>
+  <doubleClickTime>200</doubleClickTime>
+
+  <context name="frame">
+    <mousebind button="A-Left" action="drag">
+      <action name="move"/>
+    </mousebind>
+    <mousebind button="A-Left" action="click">
+      <action name="raise"/>
+    </mousebind>
+    <mousebind button="A-Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="A-Middle" action="drag">
+      <action name="resize"/>
+    </mousebind> 
+    <mousebind button="A-Middle" action="click">
+      <action name="lower"/>
+    </mousebind>
+    <mousebind button="A-Right" action="press">
+      <action name="showmenu"><menu>client-menu</menu></action>
+    </mousebind>
+    <mousebind button="A-Up" action="click">
+      <action name="desktopnext"/>
+    </mousebind>
+    <mousebind button="A-Down" action="click">
+      <action name="desktopprevious"/>
+    </mousebind>
+    <mousebind button="C-A-Up" action="click">
+      <action name="sendtodesktopnext"/>
+    </mousebind>
+    <mousebind button="C-A-Down" action="click">
+      <action name="sendtodesktopprevious"/>
+    </mousebind>
+  </context>
+  <context name="titlebar">
+    <mousebind button="Left" action="drag">
+      <action name="move"/>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="raise"/>
+    </mousebind>
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Left" action="doubleclick">
+      <action name="toggleshade"/>
+    </mousebind>
+    <mousebind button="Middle" action="press">
+      <action name="lower"/>
+    </mousebind>
+    <mousebind button="Up" action="click">
+      <action name="shade"/>
+    </mousebind>
+    <mousebind button="Down" action="click">
+      <action name="unshade"/>
+    </mousebind>
+    <mousebind button="Right" action="press">
+      <action name="showmenu"><menu>client-menu</menu></action>
+    </mousebind>
+  </context>
+  <context name="handle">
+    <mousebind button="Left" action="drag">
+      <action name="move"/>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="raise"/>
+    </mousebind>
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Middle" action="press">
+      <action name="lower"/>
+    </mousebind>
+  </context>
+  <context name="blcorner">
+    <mousebind button="Left" action="drag">
+      <action name="resize"/>
+    </mousebind>
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+  </context>
+  <context name="brcorner">
+    <mousebind button="Left" action="drag">
+      <action name="resize"/>
+    </mousebind>
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+  </context>
+  <context name="tlcorner">
+    <mousebind button="Left" action="drag">
+      <action name="resize"/>
+    </mousebind>
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+  </context>
+  <context name="trcorner">
+    <mousebind button="Left" action="drag">
+      <action name="resize"/>
+    </mousebind>
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </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"/>
+    </mousebind>
+    <mousebind button="Right" action="press">
+      <action name="focus"/>
+    </mousebind>
+  </context>
+  <context name="icon">
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Right" action="press">
+      <action name="showmenu"><menu>client-menu</menu></action>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="showmenu"><menu>client-menu</menu></action>
+    </mousebind>
+    <mousebind button="Left" action="doubleclick">
+      <action name="close"/>
+    </mousebind>
+  </context>
+  <context name="alldesktops">
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="toggleomnipresent"/>
+    </mousebind>
+  </context>
+  <context name="shade">
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="toggleshade"/>
+    </mousebind>
+  </context>
+  <context name="iconify">
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="iconify"/>
+    </mousebind>
+  </context>
+  <context name="maximize">
+    <mousebind button="Left" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Middle" action="press">
+      <action name="focus"/>
+    </mousebind>
+    <mousebind button="Right" action="press">
+      <action name="focus"/>
+    </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"/>
+    </mousebind>
+    <mousebind button="Left" action="click">
+      <action name="close"/>
+    </mousebind>
+  </context>
+  <context name="desktop">
+    <mousebind button="Up" action="click">
+      <action name="desktopnext"><interactive>no</interactive></action>
+    </mousebind>
+    <mousebind button="Down" action="click">
+      <action name="desktopprevious"><interactive>no</interactive></action>
+    </mousebind>
+    <mousebind button="A-Up" action="click">
+      <action name="desktopnext"/>
+    </mousebind>
+    <mousebind button="A-Down" action="click">
+      <action name="desktopprevious"/>
+    </mousebind>
+    <mousebind button="Middle" action="press">
+      <action name="showmenu"><menu>client-list-menu</menu></action>
+    </mousebind> 
+    <mousebind button="Right" action="press">
+      <action name="showmenu">
+        <menu>root-menu</menu>
+      </action>
+    </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 -->
+
+  <!-- debian menu file -->
+  <file>/etc/X11/openbox/openbox-menu</file>
+
+  <!-- default menu file (or custom one in $HOME/.openbox/) -->
+  <file>menu</file>
+</menu>
+
+</openbox_config>
This page took 0.028774 seconds and 4 git commands to generate.