Update generic stuff.

This commit is contained in:
CronyAkatsuki 2025-01-02 11:18:27 +01:00
parent 614e626902
commit 60f658abf2
6 changed files with 5 additions and 50 deletions

25
day
View File

@ -11,30 +11,13 @@ file="$SECOND_BRAIN"'/periodic/daily/'"$today.md"
cd "$SECOND_BRAIN" || exit 1
new_note() {
touch "$file"
cp "$SECOND_BRAIN/templates/daily.md" "$file"
# Give me a nice format
cat <<EOF >"$file"
# $today
sed -i "s/TODAY/$today/" "$file"
[[$yesterday]] - [[$tomorrow]]
sed -i "s/YESTERDAY/$yesterday/" "$file"
## Intention
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
sed -i "s/TOMORROW/$tomorrow/" "$file"
}
if [ ! -f "$file" ]; then

View File

@ -1,5 +0,0 @@
#!/bin/sh
screen="eDP"
xrandr --output eDP --set TearFree on

View File

@ -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

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec dbus-launch --exit-with-session dwl

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec dbus-launch --exit-with-session Hyprland

View File

@ -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