From ac3aa3740a831f7bdeda342c6c4704568f01070c Mon Sep 17 00:00:00 2001 From: Michael Kantor Date: Mon, 1 Sep 2025 15:33:24 -0400 Subject: Updated README. Added autostart.sh example. Removed function to defloat mpv window. Adjusted font and formatting of GroupBox widget because a qtile update raised the numbers too high. Added OpenRazer support to colors.py and wallpaper.py; the lights of a Razer keyboard will change to the sixth color from pywal. Fixed logging in ticker_gecko.py. Migrated to new qtile entry point in relevant files. --- config.py | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'config.py') diff --git a/config.py b/config.py index 5f3b53c..3aad3ec 100644 --- a/config.py +++ b/config.py @@ -212,17 +212,6 @@ def cycle_float(qtile, direc): # # with open('/tmp/qtile_debug.py', 'w') as f: # f.write(str(dic)) -#@hook.subscribe.changegroup -#def defloat_mpv_onchange(): -# global qtile - -# with open('/tmp/wins.dict', 'w') as f: -# f.write(str(dir(qtile.current_group))) - - #name = c.info()['name'] - - #if 'mpv' in name: - # c.disable_floating() @hook.subscribe.setgroup def move_pin(): @@ -240,13 +229,6 @@ def move_pin(): #with open('/tmp/wins.dict', 'w') as f: # f.write(str(qtile.groups().get('swallow').get('windows'))) -@hook.subscribe.client_name_updated -def defloat_mpv(c): - name = c.info()['name'] - - if 'mpv' in name: - c.disable_floating() - @hook.subscribe.client_killed def un_swallow(c): global terms @@ -291,9 +273,6 @@ def swallow(c): #with open('/tmp/test.fifo', 'r') as f: # f.write(name) - if 'mpv' in name: - c.disable_floating() - pid = c.window.get_net_wm_pid() if pid == None: @@ -511,6 +490,7 @@ keys.append(Key([mod, "control"], '0', lazy.window.togroup('X'), lazy.group['X'] widget_defaults = { 'font': 'Nimbus Sans', + #'font': 'Liberation Sans', 'fontsize': 13, 'padding': 2, } @@ -542,10 +522,11 @@ screens = [ widget.GroupBox( margin_y = 6, - margin_x = 0, + margin_x = 5, padding_y = 5, - padding_x = 3, + padding_x = 1, borderwidth = 3, + spacing = 1, active = '#ffffff', inactive = inactive('color0'), rounded = False, @@ -553,6 +534,8 @@ screens = [ highlight_color = [color.get('color0').strip('#'), highlight('color0')], background = color.get('color0'), this_current_screen_border = color.get('color6'), + fontsize = 15, + font = 'Liberation Sans' ), widget.TextBox( -- cgit v1.2.1