add some shortcuts for use with termux:widget

This commit is contained in:
stupidcomputer 2024-10-16 00:59:04 -05:00
parent 885bc145f8
commit 0f3c6a3874
3 changed files with 40 additions and 0 deletions

View File

@ -49,3 +49,5 @@ termux-dots:
ln -sf ~/.config/bash/profile ~/.bash_profile
mkdir -p ~/.local/share
cp $(CURDIR)/../../../home/wallpapers/pape.jpg ~/.local/share
mkdir -p ~/.shortcuts
cp $(CURDIR)/shortcuts/* ~/.shortcuts

View File

@ -0,0 +1,19 @@
#!/bin/sh
today=$(date "+%m/%d/%Y")
printf "Inputting height and weight information for today\n\n"
printf "Height?\n"
read -p "?>" height
printf "Weight?\n"
read -p "?>" weight
cd ~/pdbs
printf "\n%s %i" "$today" "$weight" >> weight.timeseries
printf "\n%s %i" "$today" "$height" >> height.timeseries
git add weight.timeseries height.timeseries
git commit -m "added height, weight data for $today"

View File

@ -0,0 +1,19 @@
#!/bin/sh
today=$(date "+%m/%d/%Y")
ledgerdate=$(date "+%Y/%m/%d")
printf "Inputting an expense for today\n\n"
printf "Payee name?\n"
read -p "?>" payee
printf "Amount?\n"
read -p "?>" amount
cd ~/pdbs
printf '%s * %s\n\tExpenses:%s $%s\n\tAssets:Greencard 4154\n\n' "$ledgerdate" "$payee" "$payee" "$amount" >> phone.ledger
git add phone.ledger
git commit -m "added an expense for $today"