Update generic stuff.
This commit is contained in:
parent
614e626902
commit
60f658abf2
27
day
27
day
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Based on day script from mischavandenburg
|
||||
# Based on day script from mischavandenburg
|
||||
# url: https://github.com/mischavandenburg/dotfiles/blob/main/scripts/day
|
||||
|
||||
today=$(date +"%Y-%m-%d")
|
||||
@ -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
|
||||
|
@ -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