applying a variation of patch 939710--numlock patch
[bbkeys.git] / README
blob9bb6d4deeb021f3bc9c17aabc59b5e3b267d65fe
1 -[  README for bbkeys, a general XWindow keygrabber, meant to be a working
2 -[  example of a better window-hinting scheme with blackbox.
4     Check out NEWS for more information....
6     This is the brave new world of bbkeys, the next generation.  The first
7     bbkeys (through 0.8.6) had gotten big and out of control, code-wise.
8     It was the first C++ code I'd ever written and it showed.  Then along
9     came openbox and woodblock's simple and elegant epist keygrabber was
10     beefed up big-time, and now it's known as epist-ng, and it's
11     distributed with openbox2.
13     Wellsir, bbkeys either needed a complete rewrite or project
14     abandonment.  I chose the former.  Time will tell as to the wisdom of
15     that.  Bbkeys now supports a much more flexible configuration file.  It
16     more accurately represents the config file as a tree object, which it
17     is.  It also shares blackbox's menu-file's structure, so hopefully
18     blackbox and bbkeys will be able to share common file-parser code.
20     Bbkeys 0.8.6 and before was never designed for parameters in the
21     config-file, nor was it able to handle chained keybindings.  I
22     personally never used emacs before a few months ago, but since I've
23     started using it, I completely understand how valuable it is--and how
24     some users do need chained keybindings (ya just run out of them with
25     emacs).  So, this next generation of bbkeys will allow for both chained
26     keybindings and parameterized keybindings.
28     The other neato thing that's coming out of this bbkeys complete
29     overhaul is the fact that it will be sharing code for the first time
30     with blackbox proper!!  This is EXTREMELY good news, and is the best
31     thing to happen to blackbox since sliced bread!
33 -[  A note on the config file....
35     Previously, bbkeys kept its config options and its keybinding
36     definition file in two separate places.  This was yucky and wasteful
37     and was only done because I didn't think 2 seconds about it before now.
38     But learning from mistakes (and learning from others' good code) is a
39     Good Thing (TM).  Thus, bbkeys's config-file has changed.  It resembles
40     blackbox's menu-file structure, as shown below....
42 [begin] (bbkeys configuration file)
44   [config]
45     [option] (honorModifiers) {false}
46     [option] (stackedCycling) {true}
47     [option] (stackedRaise) {false}
48     [option] (showCycleMenu)  {true}
49     [option] (menuTextJustify) {right}
50     [option] (autoConfig)   {true}
51     [option] (autoConfigCheckTimeout) {10}
52     [option] (workspaceColumns) {4}
53     [option] (workspaceRows) {2}
54   [end]
56   [keybindings] (begin keybindings)
57     [chain] (Mod1-Y)
58       [execute] (1) {xmms}
59       [execute] (2) {aumix -v +5}
60       [execute] (3) {aumix -v -5}
61     [end]
62     [Lower]  (Mod1-Down)
63     [Raise]  (Mod1-Up)
64     [toggleShade]  (Mod1-F9)
65     [Close]  (Mod1-F4)
66     [Iconify]  (Mod1-M)
67     [toggleMaximizeFull]  (Mod1-F12)
68     [toggleMaximizeHorizontal]  (Mod1-F11)
69     [toggleMaximizeVertical]  (Mod1-F10)
70     [toggleOmnipresent]  (Mod1-Control-S)
71     [toggleDecorations]  (Mod1-Control-T)
72     [resizeWindowWidth]  (Mod1-Control-Shift-Left) {-5}
73     [resizeWindowWidth]  (Mod1-Control-Shift-Right) {5}
74     [resizeWindowHeight]  (Mod1-Control-Shift-Up) {-5}
75     [resizeWindowHeight]  (Mod1-Control-Shift-Down) {5}
76     [moveWindowUp]  (Mod1-Control-Up) 
77     [moveWindowDown]  (Mod1-Control-Down)
78     [moveWindowLeft]  (Mod1-Control-Left)
79     [moveWindowRight]  (Mod1-Control-Right)
80     [NextWindow]  (Mod1-Tab)
81     [NextWindowOnAllWorkspaces]  (Mod1-Control-Tab)
82     [PrevWindow]  (Mod1-Shift-Tab)
83     [changeWorkspace]  (Mod1-1) {1}
84     [changeWorkspace]  (Mod1-2) {2}
85     [changeWorkspace]  (Mod1-3) {3}
86     [changeWorkspace]  (Mod1-4) {4}
87     [changeWorkspace]  (Mod1-5) {5}
88     [changeWorkspace]  (Mod1-6) {6}
89     [changeWorkspace]  (Mod1-7) {7}
90     [changeWorkspace]  (Mod1-8) {8}
92     [showRootMenu] (Mod1-Control-Escape)
94     [Execute]  (Mod1-F5) {xrefresh}
95     [Execute]  (Mod1-F1) {aterm -fn smoothansi -fg white -bg black -trsb -tr -sh 80 -tint steelblue -cr green -sl 5000}
96   [end] (end keybindings)
97 [end] (end bbkeys configuration)
99     As you can see, it's the same structure as blackbox's menu file.  All
100     config options for bbkeys are kept in a [config] submenu structure, while all
101     keybindings are kept in a [keybindings] submenu structure.  Inside the
102     keybindings structure, the only other submenu structure is the [chain]
103     directive.  It is important to note that both the config submenu
104     structure and the keybindings submenu structure must have an [end] to
105     delimit the section.  If it's not there, well, good luck. =:)
106       
107     
108 -[  Is it perfect? Absolutely not.  
110     Will it core-dump all over your lap and puke on your blue suede 
111     shoes? Hopefully not.  
113     Are there bugs? Oh, you betcha.  
115     Do I want to know about them there bugs? Yah, for sure.
117     Are there things that I'm still planning to do? Ayup (that's what TODO is for).