X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/9d3b95578b6c7113483e9f6f5e67828fe4e65df5..3bdc06d9c6b59af4dfe2a598ddec21fe9c10c4aa:/files/pc/tasks.py diff --git a/files/pc/tasks.py b/files/pc/tasks.py index e6c9a08..ef2caee 100644 --- a/files/pc/tasks.py +++ b/files/pc/tasks.py @@ -12,7 +12,7 @@ TODAY = dt.now().strftime('%Y.%m.%d') KIDS_ALLOWANCE_URL=os.environ.get('KIDS_ALLOWANCE_URL') def browse(c, url): - c.run(f"librefox {url}") + c.run(f"librefox {url}", asynchronous=True) def code(c, path): @@ -49,3 +49,16 @@ def payroll(c): # For running the payroll scripts c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter lab") +@task +def fix_mouse(c): + c.run('xinput --disable 18') + c.run('xinput --enable 18') + + +@task +def fix_invoke_complete(c): + c.run('invoke --print-completion-script bash > ~/.invoke-complete.sh') + +@task +def temp(c): + c.run('sensors')