-###########################################################################
-### Options that affect the behavior of the focus module. ###
-###########################################################################
-avoid_skip_taskbar = 1
-"""Don't focus windows which have requested to not be displayed in taskbars.
- You will still be able to focus the windows, but not through cycling, and
- they won't be focused as a fallback if 'fallback' is enabled."""
-raise_window = 1
-"""When cycling focus, raise the window chosen as well as focusing it. This
- does not affect fallback focusing behavior."""
-fallback = 0
-"""Send focus somewhere when nothing is left with the focus, if possible."""
-###########################################################################
-
-def next(data, num=1):
- """Focus the next window."""
- _cycle(data, num, 1)
-
-def previous(data, num=1):
- """Focus the previous window."""
- _cycle(data, num, 0)
-
-###########################################################################
-###########################################################################
-
-###########################################################################
-### Internal stuff, should not be accessed outside the module. ###
-###########################################################################
-
-import otk
-import ob
-
+import config, ob
+
+export_functions = ()
+
+config.add('focus',
+ 'avoid_skip_taskbar',
+ 'Avoid SkipTaskbar Windows',
+ "Don't focus windows which have requested to not be displayed " + \
+ "in taskbars. You will still be able to focus the windows, but " + \
+ "not through cycling, and they won't be focused as a fallback " + \
+ "if 'Focus Fallback' is enabled.",
+ 'boolean',
+ 1)
+
+config.add('focus',
+ 'fallback',
+ 'Focus Fallback',
+ "Send focus somewhere when nothing is left with the focus, if " + \
+ "possible.",
+ 'boolean',
+ 1)
+