commit c58f588278187059bb2ddb1b9318cd01f7d3b48e
parent ac5dfb06b129392b857fe5982e4ee8a2b76e9404
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date: Fri, 3 Jan 2020 20:38:03 -0800
renamed variables basicly
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/xmobar/.xmobar/xmb-reminders b/xmobar/.xmobar/xmb-reminders
@@ -1,7 +1,7 @@
#!/bin/sh
# 01/01/2020 - Jacob Edwards
-# created to for new years resolutions, prints to stdout, sends a notification, and sends message via wall
+# created for new years resolutions, prints to stdout, sends a notification, and sends message via wall
# it is very messy due but i THINK it works
# also it counts the start of a new day at 5:00 AM. so if you get up before then
@@ -20,7 +20,7 @@ fi
config="$XDG_CONFIG_HOME/reminders"
done="$HOME/.cache/reminders/reminded"
-date="$(date +%_j)"
+date="$(date '+%_j' | awk '{print $1}')"
@@ -51,7 +51,7 @@ while [[ "$(wc -l "$config" | awk '{print $1}')" -gt "$i" ]]; do
while [[ "$(wc -l "$done" | awk '{print $1}')" -gt "$a" ]]; do
let a++
- if [[ "$(head -n "$a" "$done" | tail -n 1)" == "$date $message" ]]; then
+ if [[ "$(head -n "$a" "$done" | tail -n 1)" == "$date $configline" ]]; then
send=false
fi
done
@@ -60,9 +60,9 @@ while [[ "$(wc -l "$config" | awk '{print $1}')" -gt "$i" ]]; do
notify-send -t 30000 "$message"
wall "$message" -t 30
printf "$message\n"
- printf "$date $message\n" >> "$done"
+ printf "$date $configline\n" >> "$done"
if [[ -n "$date2" ]]; then
- printf "$date2 $message\n" >> "$done"
+ printf "$date2 $configline\n" >> "$done"
fi
notified=true