Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

windawesome config

By: a guest on Feb 11th, 2012  |  syntax: None  |  size: 2.86 KB  |  views: 737  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from System.Drawing import Color
  2. from System.Linq import Enumerable
  3. from Windawesome import ILayout, TileLayout, FullScreenLayout, FloatingLayout, IPlugin, Workspace
  4. from Windawesome import Bar, LayoutWidget, WorkspacesWidget, ApplicationTabsWidget, SystemTrayWidget, CpuMonitorWidget, LaptopBatteryMonitorWidget, LanguageBarWidget
  5. from Windawesome import LoggerPlugin, ShortcutsManager
  6. from Windawesome.NativeMethods import MOD
  7. from System import Tuple
  8. from System.Windows.Forms import Keys
  9.  
  10. def onLayoutLabelClick():
  11.         if windawesome.CurrentWorkspace.Layout.LayoutName() == "Full Screen":
  12.                 windawesome.CurrentWorkspace.ChangeLayout(FloatingLayout())
  13.         elif windawesome.CurrentWorkspace.Layout.LayoutName() == "Floating":
  14.                 windawesome.CurrentWorkspace.ChangeLayout(TileLayout())
  15.         else:
  16.                 windawesome.CurrentWorkspace.ChangeLayout(FullScreenLayout())
  17.  
  18. config.WindowBorderWidth = 0
  19. config.WindowPaddedBorderWidth = 0
  20. showMenu = 0
  21.  
  22. config.Bars = Enumerable.ToArray[Bar]([
  23.         Bar(windawesome.monitors[0],
  24.                 [WorkspacesWidget(), LayoutWidget(onClick = onLayoutLabelClick)],
  25.                 [SystemTrayWidget(False), LaptopBatteryMonitorWidget(), CpuMonitorWidget(),
  26.                         DateTimeWidget("ddd, d MMM"), DateTimeWidget("h:mm tt", Color.FromArgb(0xA8, 0xA8, 0xA5))],
  27.                 [ApplicationTabsWidget(False)],
  28.         ),
  29.         Bar(windawesome.monitors[0],
  30.                 [WorkspacesWidget(), LayoutWidget(onClick = onLayoutLabelClick)],
  31.                 [SystemTrayWidget(False), LaptopBatteryMonitorWidget(), CpuMonitorWidget(),
  32.                         DateTimeWidget("ddd, d-MMM"), DateTimeWidget("h:mm tt", Color.FromArgb(0xA8, 0xA8, 0xA5))],
  33.                 [ApplicationTabsWidget(False)],
  34.         )
  35.  ])
  36.  
  37. config.Workspaces = Enumerable.ToArray[Workspace]([
  38.         Workspace(windawesome.monitors[0], TileLayout(masterAreaAxis = TileLayout.LayoutAxis.RightToLeft, masterAreaWindowsCount = 1, masterAreaFactor = 0.5), [config.Bars[1]], name = 'main', showWindowsTaskbar = 'AsIs', ),
  39.         Workspace(windawesome.monitors[0], FullScreenLayout(), [config.Bars[0]], name = 'web', showWindowsTaskbar = 'AsIs'),
  40.         Workspace(windawesome.monitors[0], TileLayout(masterAreaAxis = TileLayout.LayoutAxis.LeftToRight, masterAreaWindowsCount = 5, masterAreaFactor = 0.5), [config.Bars[0]], name = 'irc', showWindowsTaskbar = 'AsIs'),
  41.         Workspace(windawesome.monitors[0], TileLayout(masterAreaAxis = TileLayout.LayoutAxis.LeftToRight, masterAreaWindowsCount = 1, masterAreaFactor = 0.6), [config.Bars[0]], name = 'ent', showWindowsTaskbar = 'AsIs'),
  42.         Workspace(windawesome.monitors[0], FullScreenLayout(), [config.Bars[0]], name = 'work', showWindowsTaskbar = 'AsIs'),
  43.         Workspace(windawesome.monitors[0], FullScreenLayout(), [config.Bars[0]], name = 'misc', showWindowsTaskbar = 'AsIs'),
  44. ])
  45.  
  46. config.StartingWorkspaces = [config.Workspaces[0]]
  47.  
  48. config.Plugins = [
  49.         #LoggerPlugin(logWorkspaceSwitching = True, logWindowMinimization = True, logWindowRestoration = True,
  50.         #       logActivation = True),
  51.         ShortcutsManager()
  52. ]