Update configuration for new laptop, Fixes for new qtile internal api, PrintScreen button function, Compositor and Clipboard manager, Fix mouse actions
This commit is contained in:
parent
baece2297f
commit
95d2c26854
10 changed files with 68 additions and 48 deletions
|
@ -183,6 +183,8 @@ class KuroTopBar(Bar):
|
|||
super(KuroTopBar, self)._configure(qtile, screen)
|
||||
self.window.handle_EnterNotify = self.handle_enter_notify
|
||||
self.window.handle_LeaveNotify = self.handle_leave_notify
|
||||
self.window.window.set_property("_NET_WM_NAME", "KuroTopBar")
|
||||
self.window.update_name()
|
||||
|
||||
def draw(self):
|
||||
if self.queued_draws == 0:
|
||||
|
|
|
@ -24,11 +24,11 @@ class KuroFloating(Floating):
|
|||
return
|
||||
|
||||
if hasattr(client, "is_static_window") and client.is_static_window:
|
||||
bc = client.group.qtile.colorPixel(self.border_static)
|
||||
bc = client.group.qtile.color_pixel(self.border_static)
|
||||
elif client.has_focus:
|
||||
bc = client.group.qtile.colorPixel(self.border_focus)
|
||||
bc = client.group.qtile.color_pixel(self.border_focus)
|
||||
else:
|
||||
bc = client.group.qtile.colorPixel(self.border_normal)
|
||||
bc = client.group.qtile.color_pixel(self.border_normal)
|
||||
if client.maximized:
|
||||
bw = self.max_border_width
|
||||
elif client.fullscreen:
|
||||
|
@ -44,7 +44,7 @@ class KuroFloating(Floating):
|
|||
except AttributeError:
|
||||
# this window hasn't been placed before, let's put it in a sensible spot
|
||||
transient_for = client.window.get_wm_transient_for()
|
||||
win = client.group.qtile.windowMap.get(transient_for)
|
||||
win = client.group.qtile.windows_map.get(transient_for)
|
||||
if win is not None:
|
||||
# if transient for a window, place in the center of the window
|
||||
center_x = win.x + win.width / 2
|
||||
|
|
|
@ -207,6 +207,7 @@ class WifiIconWidget(base._TextBox):
|
|||
('update_interval', 1, 'The update interval.'),
|
||||
('theme_path', default_icon_path(), 'Path of the icons'),
|
||||
('custom_icons', {}, 'dict containing key->filename icon map'),
|
||||
('disconnected_message', {'error': False, 'essid': None, 'quality': 0, 'percent': 0}, 'Message to show when WiFi is disconnected'),
|
||||
]
|
||||
|
||||
def __init__(self, **config):
|
||||
|
@ -382,6 +383,7 @@ class MediaWidget(base.InLoopPollText):
|
|||
'spotify': '',
|
||||
'vlc': '',
|
||||
'firefox': '',
|
||||
'mpv': '',
|
||||
}
|
||||
|
||||
custom_player_data = {
|
||||
|
@ -574,8 +576,8 @@ class AudioVisualizerWidget(_Graph):
|
|||
def update_graph(self):
|
||||
if self.client is not None:
|
||||
viz_info = self.info()
|
||||
pos_x = viz_info['offset'] + self.margin_x - 1 + self.screen.x
|
||||
pos_y = 0 + self.margin_y - 1 + self.screen.y
|
||||
pos_x = viz_info['offset'] + self.margin_x + self.screen.x
|
||||
pos_y = 0 + self.margin_y + self.screen.y
|
||||
if self.old_position != (pos_x, pos_y):
|
||||
self.old_position = (pos_x, pos_y)
|
||||
|
||||
|
@ -662,7 +664,7 @@ class KuroTaskList(TaskList):
|
|||
elif window.floating:
|
||||
state = self.txt_floating
|
||||
markup_str = self.markup_floating
|
||||
elif window is window.group.currentWindow:
|
||||
elif window is window.group.current_window:
|
||||
markup_str = self.markup_focused
|
||||
|
||||
window_name = window.name if window and window.name else "?"
|
||||
|
|
|
@ -20,7 +20,7 @@ class KuroStatic(Static):
|
|||
if window.group:
|
||||
window.group.remove(window)
|
||||
s = KuroStatic(window.window, window.qtile, screen, x, y, width, height)
|
||||
window.qtile.windowMap[window.window.wid] = s
|
||||
window.qtile.windows_map[window.window.wid] = s
|
||||
hook.fire("client_managed", s)
|
||||
return s
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue