Feb 15, 2012 at 6:49 PM
Edited Feb 15, 2012 at 6:50 PM
Hey, thanks for the fast reply!
Thanks for the good words. :) I actually had to use a dictionary for "kudos" - I didn't know that word existed. :D
Sorry I'm no native speaker and thought this word was more common. :P
1. and 3. worked like a charm. :)
2. Okay, I wasn't clear but I wanted to toggle it with a keybinding. So I also tried
config.Workspaces.barsAtTop = [config.Bars]
(so that I could toggle the content of barsAtTop) but it threw an error: barsAtTop is read-only.
Then I tried to make a kind of pointer to an array, i.e.
testWorkspaces = 
config.Workspaces = Enumerable.ToArray[Workspace]([
Workspace(windawesome.monitors, FloatingLayout(), testWorkspaces)
testWorkspaces = [config.Bars]
...didn't work nor threw an error. Hope you understand what I was attempting to do. ^_^
4. awesome has a keygrabber API -> http://awesome.naquadah.org/doc/api/modules/keygrabber.html
In short: While the keygrabber runs it will invoke a (user-defined) function on every key-event with the modifiers, the key and the type of keyevent as arguments. If the return value is true it will keep on grabbing else it will stop. Pretty simple.
Now what I did in awesome with that API was I used the keygrabber to create a mode where I could use vi-style key combos - i.e. gg or cw. I did that with RegExps.
My question is if that was possible in Windawesome with some simple code, too? I have absolutely no experience in C# and .NET. :P