]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/pc/tasks.py
Add minutes to subject display
[dotfiles.git] / files / pc / tasks.py
index e6c9a085485aacdc7f3e33a8986f73570cb9e5ca..efdda19918e36229f75c9d443086394f24cd6790 100644 (file)
@@ -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,13 @@ 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')
+