Last active
September 25, 2020 22:13
-
-
Save mr337/f6170ad2b24bc2595f2bbd6d1627dd2b to your computer and use it in GitHub Desktop.
Qtile Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from libqtile.config import EzKey, Key, Group, Drag, Click, Screen | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget | |
mod = 'mod1' | |
keys = [ | |
#EzKey('A-h', lazy.layout.left()), | |
#EzKey('A-l', lazy.layout.right()), | |
EzKey('A-j', lazy.layout.down()), | |
EzKey('A-k', lazy.layout.up()), | |
EzKey('A-S-h', lazy.layout.swap_left()), | |
EzKey('A-S-l', lazy.layout.swap_right()), | |
EzKey('A-S-j', lazy.layout.shuffle_down()), | |
EzKey('A-S-k', lazy.layout.shuffle_up()), | |
EzKey('A-l', lazy.layout.grow_main()), | |
EzKey('A-h', lazy.layout.shrink_main()), | |
EzKey('A-n', lazy.layout.normalize()), | |
EzKey('A-o', lazy.layout.maximize()), | |
EzKey('A-t', lazy.window.toggle_floating()), | |
EzKey('A-<Tab>', lazy.layout.next()), | |
EzKey('A-S-<Tab>', lazy.layout.next()), | |
EzKey('A-S-<space>', lazy.layout.flip()), | |
EzKey('A-<space>', lazy.next_layout()), | |
EzKey('A-S-<Return>', lazy.spawn('gnome-terminal')), | |
EzKey('A-w', lazy.window.kill()), | |
EzKey('A-q', lazy.restart()), | |
EzKey('A-S-q', lazy.shutdown()), | |
EzKey('A-S-c', lazy.window.kill()), | |
EzKey('A-p', lazy.spawncmd()) | |
] | |
groups = [Group(i) for i in "1234567890"] | |
for i in groups: | |
keys.append( | |
Key([mod], i.name, lazy.group[i.name].toscreen()) | |
), | |
keys.append( | |
Key([mod, 'shift'], i.name, lazy.window.togroup(i.name)) | |
) | |
mouse = [ | |
Drag([mod], "Button1", lazy.window.set_position_floating(), | |
start=lazy.window.get_position()), | |
Drag([mod], "Button3", lazy.window.set_size_floating(), | |
start=lazy.window.get_size()), | |
Click([mod], "Button2", lazy.window.bring_to_front()) | |
] | |
layouts = [ | |
layout.xmonad.MonadTall(border_width=1), | |
layout.Max(), | |
#layout.Stack(num_stacks=2), | |
] | |
widget_defaults = dict( | |
font='Arial', | |
fontsize=16, | |
padding=3, | |
) | |
screens = [ | |
Screen( | |
bottom=bar.Bar( | |
[ | |
widget.GroupBox(), | |
widget.Prompt(), | |
widget.WindowName(), | |
widget.TextBox("Mr337", name="Mr337"), | |
widget.Systray(), | |
widget.Spacer(5), | |
widget.Battery(), | |
widget.Spacer(5), | |
widget.Clock(format='%Y-%m-%d %a %I:%M %p'), | |
], | |
30, | |
), | |
), | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.6/dist-packages/libqtile/core/manager.py", line 629, in get_interesting_pid | |
return win.window.get_net_wm_pid() | |
File "/usr/local/lib/python3.6/dist-packages/libqtile/backend/x11/xcbq.py", line 612, in get_net_wm_pid | |
r = self.get_property("_NET_WM_PID", unpack=int) | |
File "/usr/local/lib/python3.6/dist-packages/libqtile/backend/x11/xcbq.py", line 713, in get_property | |
0, (2 ** 32) - 1 | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/xproto.py", line 2720, in GetProperty | |
return self.send_request(20, buf, GetPropertyCookie, is_checked=is_checked) | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/__init__.py", line 391, in send_request | |
seq = self.conn.send_request(flags, xcb_parts + 2, xcb_req) | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/__init__.py", line 569, in wrapper | |
self.invalid() | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/__init__.py", line 559, in invalid | |
raise ConnectionException(err) | |
xcffib.ConnectionException: xcb connection errors because of socket, pipe and other stream errors. | |
2020-09-24 19:01:08,493 ERROR libqtile manager.py:finalize():L320 exception during finalize | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.6/dist-packages/libqtile/core/manager.py", line 310, in finalize | |
widget.finalize() | |
File "/usr/local/lib/python3.6/dist-packages/libqtile/widget/base.py", line 208, in finalize | |
self.drawer.finalize() | |
File "/usr/local/lib/python3.6/dist-packages/libqtile/drawer.py", line 247, in finalize | |
self.qtile.conn.conn.core.FreeGC(self.gc) | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/xproto.py", line 3027, in FreeGC | |
return self.send_request(60, buf, is_checked=is_checked) | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/__init__.py", line 391, in send_request | |
seq = self.conn.send_request(flags, xcb_parts + 2, xcb_req) | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/__init__.py", line 569, in wrapper | |
self.invalid() | |
File "/home/mr337/.local/lib/python3.6/site-packages/xcffib/__init__.py", line 559, in invalid | |
raise ConnectionException(err) | |
xcffib.ConnectionException: xcb connection errors because of socket, pipe and other stream errors. | |
2020-09-24 19:01:08,506 ERROR libqtile xcbq.py:disconnect():L894 Failed to disconnect, connection already failed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment