]> apps.delaporte.us Git - dotfiles.git/blobdiff - files/pc/tasks.py
Add budget shortcut
[dotfiles.git] / files / pc / tasks.py
index e6c9a085485aacdc7f3e33a8986f73570cb9e5ca..ef2caee7ed436028ccfd44829ec1c349280df94a 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,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')