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. --- cusmodules/colors.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cusmodules/colors.py') diff --git a/cusmodules/colors.py b/cusmodules/colors.py index f25c3c7..c9a3cbc 100755 --- a/cusmodules/colors.py +++ b/cusmodules/colors.py @@ -22,6 +22,7 @@ import wallpaper from pathlib import Path from random import randint from subprocess import run +import openrazer.client def random(colors): colorcount = len(colors) - 1 @@ -51,9 +52,15 @@ def setColor(home, color_dir, choice, **kwargs): #run(['qtile', 'shell', '-c', 'restart()']) #run(['kill', '-SIGUSR1', os.popen('pidof qtile').read().strip('\n')]) - run([f'{home}/git/qtile/bin/qtile', 'shell', '-c', 'reload_config()']) + run([f'{home}/git/qtile/.venv/bin/qtile', 'shell', '-c', 'reload_config()']) run([f'{home}/.local/bin/pywalfox', 'update']) + rgb = tuple(int(bottom_color.lstrip('#')[i:i+2], 16) for i in (0, 2, 4)) + devman = openrazer.client.DeviceManager() + + for device in devman.devices: + device.fx.static(rgb[0], rgb[1], rgb[2]) + return 0 def main(argc, argv): -- cgit v1.2.1