Update generic stuff.
This commit is contained in:
parent
614e626902
commit
60f658abf2
25
day
25
day
@ -11,30 +11,13 @@ file="$SECOND_BRAIN"'/periodic/daily/'"$today.md"
|
|||||||
cd "$SECOND_BRAIN" || exit 1
|
cd "$SECOND_BRAIN" || exit 1
|
||||||
|
|
||||||
new_note() {
|
new_note() {
|
||||||
touch "$file"
|
cp "$SECOND_BRAIN/templates/daily.md" "$file"
|
||||||
|
|
||||||
# Give me a nice format
|
sed -i "s/TODAY/$today/" "$file"
|
||||||
cat <<EOF >"$file"
|
|
||||||
# $today
|
|
||||||
|
|
||||||
[[$yesterday]] - [[$tomorrow]]
|
sed -i "s/YESTERDAY/$yesterday/" "$file"
|
||||||
|
|
||||||
## Intention
|
sed -i "s/TOMORROW/$tomorrow/" "$file"
|
||||||
|
|
||||||
What do I want to achieve today and tomorrow?
|
|
||||||
|
|
||||||
## Tracking
|
|
||||||
|
|
||||||
- [ ] Cycle
|
|
||||||
- [ ] Strength training
|
|
||||||
- [ ] Watch a movie or tv show episode
|
|
||||||
- [ ] Play/finish a game
|
|
||||||
- [ ] Post a blog post
|
|
||||||
- [ ] Check servers
|
|
||||||
- [ ] Check backups
|
|
||||||
|
|
||||||
## Log
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -f "$file" ]; then
|
if [ ! -f "$file" ]; then
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
screen="eDP"
|
|
||||||
|
|
||||||
xrandr --output eDP --set TearFree on
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
random=$(jq 'select(.hidden != true) | select(.removed != true) | select(.name | contains("Proton") | not) | select(.name | contains("Steam") | not) | input_filename' -r "$HOME"/.local/share/cartridges/games/*.json | sort -R | head -n 1)
|
|
||||||
name=$(jq '.name' -r "$random")
|
|
||||||
exec=$(jq '.executable | if type == "array" then .[] end' -r "$random")
|
|
||||||
|
|
||||||
answer=$(printf "yes\nno" | dmenu -p "Want to play $name?")
|
|
||||||
|
|
||||||
[ "$answer" = "yes" ] && eval "$exec" || exit
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
exec dbus-launch --exit-with-session Hyprland
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
tasks=$(task status:pending -notified due export | jq -r '.[].description')
|
|
||||||
[ -z "$tasks" ] && exit 0
|
|
||||||
while read task; do
|
|
||||||
notify-send 'A task is due.' "$task"
|
|
||||||
done <<< "$(echo $tasks)"
|
|
||||||
task rc.bulk=0 rc.confirmation=off status:pending -notified due modify +notified
|
|
Loading…
x
Reference in New Issue
Block a user