diff options
| author | Michael Kantor <michael@mikekantor.xyz> | 2026-02-15 20:47:06 -0500 |
|---|---|---|
| committer | Michael Kantor <michael@mikekantor.xyz> | 2026-02-15 20:47:06 -0500 |
| commit | c95c4a7d0cac4d9a5017f1dc5a0eaf77b8dfc7f0 (patch) | |
| tree | 59da25a117b69154de41382cf211749efcac61a8 /cusmodules/colors.py | |
| parent | ac3aa3740a831f7bdeda342c6c4704568f01070c (diff) | |
Diffstat (limited to 'cusmodules/colors.py')
| -rwxr-xr-x | cusmodules/colors.py | 7 |
1 files changed, 6 insertions, 1 deletions
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']) |
