From c95c4a7d0cac4d9a5017f1dc5a0eaf77b8dfc7f0 Mon Sep 17 00:00:00 2001 From: Michael Kantor Date: Sun, 15 Feb 2026 20:47:06 -0500 Subject: Switched to pulse widget. Added exception for openrazer import. Updated mic script. --- cusmodules/colors.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cusmodules/colors.py') diff --git a/cusmodules/colors.py b/cusmodules/colors.py index c9a3cbc..1297361 100755 --- a/cusmodules/colors.py +++ b/cusmodules/colors.py @@ -22,7 +22,11 @@ import wallpaper from pathlib import Path from random import randint from subprocess import run -import openrazer.client + +try: + import openrazer.client +except: + print("Openrazer not installed") def random(colors): colorcount = len(colors) - 1 @@ -52,6 +56,7 @@ 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/.venv/bin/qtile', 'shell', '-c', 'hide_show_bar()']) run([f'{home}/git/qtile/.venv/bin/qtile', 'shell', '-c', 'reload_config()']) run([f'{home}/.local/bin/pywalfox', 'update']) -- cgit v1.2.1