]>
apps.delaporte.us Git - dotfiles.git/blob - files/pc/tasks.py
ef2caee7ed436028ccfd44829ec1c349280df94a
3 # This file is meant to sit in ~ for use from all shells.
4 from invoke
import task
6 from datetime
import datetime
as dt
9 HOME
= os
.path
.expanduser('~')
10 TODAY
= dt
.now().strftime('%Y.%m.%d')
12 KIDS_ALLOWANCE_URL
=os
.environ
.get('KIDS_ALLOWANCE_URL')
15 c
.run(f
"librefox {url}", asynchronous
=True)
19 c
.run(f
"codium {path}")
28 result
= c
.run('which minetest')
31 PAYROLL
= f
"{HOME}/Nanny.Payroll"
34 def folder_payroll(c
):
35 code(c
, f
"{HOME}/Nanny.Payroll")
38 def folder_allowance(c
):
39 browse(c
, KIDS_ALLOWANCE_URL
)
45 # For copying the latest file in
46 folder(c
, f
"{HOME}/pixel7adocuments")
47 folder(c
, f
"{HOME}/Nanny.Payroll/data/payroll_inbox")
49 # For running the payroll scripts
50 c
.run(f
"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter lab")
54 c
.run('xinput --disable 18')
55 c
.run('xinput --enable 18')
59 def fix_invoke_complete(c
):
60 c
.run('invoke --print-completion-script bash > ~/.invoke-complete.sh')