aboutsummaryrefslogtreecommitdiff
path: root/cusmodules/colors.py
diff options
context:
space:
mode:
Diffstat (limited to 'cusmodules/colors.py')
-rwxr-xr-xcusmodules/colors.py7
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'])