aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kantor <michael@mikekantor.xyz>2024-05-03 21:44:40 -0400
committerMichael Kantor <michael@mikekantor.xyz>2024-05-03 21:44:40 -0400
commit1cb735dd499258b4879cdd79dd7a1504f29b6f52 (patch)
tree1deb1264ecb210759b91ad1fed3c025ff07c4865
parentcd0cdb4cc333a1f8649d7abd9cff3357b192c5b2 (diff)
Made qtile script for reloads in $HOME/git/qtile/bin/.
-rw-r--r--README.md2
-rwxr-xr-xcusmodules/colors.py2
-rwxr-xr-xcusmodules/wallpaper.py4
3 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index df1ca26..cf8cd9c 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,8 @@
- Window Swallowing.
- Cryptocurrency Widget.
+Automatic reloads from wallpaper.py and colors.py assumes that the `qtile` script is located in `$HOME/git/qtile/bin/`. I use the master branch of qtile from github.
+
### Dependencies
---
- [Mpd2](https://pypi.org/project/python-mpd2/). Host is ~/.mpd/socket. Port is 6600.
diff --git a/cusmodules/colors.py b/cusmodules/colors.py
index 295fbd4..25a1f1a 100755
--- a/cusmodules/colors.py
+++ b/cusmodules/colors.py
@@ -35,7 +35,7 @@ def setColor(home, color_dir, choice, **kwargs):
#run(['qtile', 'shell', '-c', 'restart()'])
#run(['kill', '-SIGUSR1', os.popen('pidof qtile').read().strip('\n')])
- run(['qtile', 'shell', '-c', 'reload_config()'])
+ run([f'{home}/git/qtile/bin/qtile', 'shell', '-c', 'reload_config()'])
run([f'{home}/.local/bin/pywalfox', 'update'])
return 0
diff --git a/cusmodules/wallpaper.py b/cusmodules/wallpaper.py
index 8f02e4d..ae1cd0d 100755
--- a/cusmodules/wallpaper.py
+++ b/cusmodules/wallpaper.py
@@ -160,7 +160,7 @@ if __name__ == '__main__':
#subprocess.check_call(['qtile', 'shell', '-c', 'restart()'])
#run(['kill', '-SIGUSR1', os.popen('pidof qtile').read().strip('\n')])
#run(['qtile', 'shell', '-c', 'restart()'])
- run(['qtile', 'shell', '-c', 'reload_config()'])
+ run([f'{home}/git/qtile/bin/qtile', 'shell', '-c', 'reload_config()'])
except:
os.system('killall dwm')
@@ -261,7 +261,7 @@ if __name__ == '__main__':
#subprocess.check_call(['qtile', 'shell', '-c', 'restart()'])
#run(['qtile', 'shell', '-c', 'restart()'])
#run(['kill', '-SIGUSR1', os.popen('pidof qtile').read().strip('\n')])
- run(['qtile', 'shell', '-c', 'reload_config()'])
+ run([f'{home}/git/qtile/bin/qtile', 'shell', '-c', 'reload_config()'])
#os.system('qtile shell -c "restart()"')
except: