Skip to content

Instantly share code, notes, and snippets.

View YellowOnion's full-sized avatar

Daniel Hill YellowOnion

View GitHub Profile
from libqtile.manager import Key, Screen, Group
from libqtile.command import lazy
from libqtile import layout, bar, widget
# I have two screens, each of which has a Bar at the bottom. Each Bar has two
# simple widgets - a GroupBox, and a WindowName.
screens = [
Screen(
bottom = bar.Bar(
[
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/~launchpad-p-s/sofastatistics/main/.bzr/repository/packs/cafca3c20c348fad738e3e4f705e4b1f.pack: Expected a boundary (X=hj,UNln0X6Gy:i9En0) line, got ''
> bzr branch lp:sofastatistics
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
···> ./qtile/qtile:46: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
parser.error(v.message)
Usage: qtile [options]
qtile: error: __init__() takes exactly 4 arguments (2 given)
from libqtile.manager import Key, Screen, Group
from libqtile.command import lazy
from libqtile import layout, bar, widget
# I have two screens, each of which has a Bar at the bottom. Each Bar has two
# simple widgets - a GroupBox, and a WindowName.
screens = [
Screen(
bottom = bar.Bar(
[
# dx, dy, dw, dh,bw, colour
{'Chromium' :( 0, 0, 1024, 1200, 0, None),
'Xchat' :(1024, 720, 896, 480, 0, None) }
{'conversation':(1024, 000, 600, 720, 0, None),
'buddy_list' :(1624, 000, 296, 720, 0, None) }
# this is size table for my internet setup in pixel
# I'm now going to calculate this in too boxes
# there are 15 horizontal, boxes, and 5 vertical
# I'll use this to create a table for slighly more
# flexible system
left = { 'Name': 'Webbrowser',
'elements': None }
im = { 'Name': 'Im',
'elements' None }
buddylist = { 'Name': 'Buddylist'
'elements': None }
pidgin = {'Name' : 'Pidgin',
layout = TableLayout(
Cell("browser"),
Cell(
Cell(
Cell("convo"),
Cell("Buddylist")
),
Cell("xchat")
)
)
> screens
[{'gaps': {'bottom': (0, 570, 800, 30),
'left': None,
'right': None,
'top': None},
'group': 'a',
'height': 600,
'index': 0,
'width': 800,
'x': 0,
Traceback (most recent call last):
File "/usr/bin/qtile", line 53, in <module>
main()
File "/usr/bin/qtile", line 47, in main
q = manager.Qtile(c)
File "/home/daniel/builds/qtile/src/mine/libqtile/manager.py", line 522, in __init__
self.grabKeys()
File "/home/daniel/builds/qtile/src/mine/libqtile/manager.py", line 585, in grabKeys
code = self.conn.keysym_to_keycode(i.keysym)
File "/home/daniel/builds/qtile/src/mine/libqtile/xcbq.py", line 567, in keysym_to_keycode