diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/sdep-add | 2 | ||||
| -rwxr-xr-x | scripts/sdep-checknow | 2 | ||||
| -rwxr-xr-x | scripts/sdep-clear | 2 | ||||
| -rwxr-xr-x | scripts/sdep-edit | 2 | ||||
| -rwxr-xr-x | scripts/sdep-list | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/scripts/sdep-add b/scripts/sdep-add index c9f4344..b5f1a8c 100755 --- a/scripts/sdep-add +++ b/scripts/sdep-add | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | # Usage: sdep-add [date] | 8 | # Usage: sdep-add [date] |
| 9 | # Example: sdep-add "next monday" | 9 | # Example: sdep-add "next monday" |
| 10 | 10 | ||
| 11 | sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" | 11 | sdepdata="${XDG_DATA_HOME:-$HOME/.local/}/sdep" |
| 12 | 12 | ||
| 13 | file="$sdepdata/once" | 13 | file="$sdepdata/once" |
| 14 | date="" | 14 | date="" |
diff --git a/scripts/sdep-checknow b/scripts/sdep-checknow index 404d461..4771957 100755 --- a/scripts/sdep-checknow +++ b/scripts/sdep-checknow | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | # might have to change if you are not on Linux (on some systems you can | 14 | # might have to change if you are not on Linux (on some systems you can |
| 15 | # accomplish the same with -j). | 15 | # accomplish the same with -j). |
| 16 | 16 | ||
| 17 | sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" | 17 | sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep" |
| 18 | 18 | ||
| 19 | #notify="notify-send -t 3600000" | 19 | #notify="notify-send -t 3600000" |
| 20 | notify=herbe | 20 | notify=herbe |
diff --git a/scripts/sdep-clear b/scripts/sdep-clear index 98599ef..ffd5a69 100755 --- a/scripts/sdep-clear +++ b/scripts/sdep-clear | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | # Usage: sdep-clear [file] | 5 | # Usage: sdep-clear [file] |
| 6 | 6 | ||
| 7 | sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" | 7 | sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep" |
| 8 | 8 | ||
| 9 | file="$sdepdata/${1:-once}" | 9 | file="$sdepdata/${1:-once}" |
| 10 | temp=$(mktemp) | 10 | temp=$(mktemp) |
diff --git a/scripts/sdep-edit b/scripts/sdep-edit index b561dd8..650526e 100755 --- a/scripts/sdep-edit +++ b/scripts/sdep-edit | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | # Usage: sdep-edit [file] | 5 | # Usage: sdep-edit [file] |
| 6 | # No options = once | 6 | # No options = once |
| 7 | 7 | ||
| 8 | sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" | 8 | sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep" |
| 9 | 9 | ||
| 10 | file="$sdepdata/${1:-once}" | 10 | file="$sdepdata/${1:-once}" |
| 11 | editor=${VISUAL:-vi} | 11 | editor=${VISUAL:-vi} |
diff --git a/scripts/sdep-list b/scripts/sdep-list index c1e89f9..50d3fe7 100755 --- a/scripts/sdep-list +++ b/scripts/sdep-list | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | # Usage: sdep-list [today|tomorrow|week|nextweek|past|future] | 15 | # Usage: sdep-list [today|tomorrow|week|nextweek|past|future] |
| 16 | # No options = all | 16 | # No options = all |
| 17 | 17 | ||
| 18 | sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" | 18 | sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep" |
| 19 | 19 | ||
| 20 | from="" | 20 | from="" |
| 21 | to="" | 21 | to="" |
| @@ -55,7 +55,7 @@ esac | |||
| 55 | tempfile=$(mktemp) | 55 | tempfile=$(mktemp) |
| 56 | 56 | ||
| 57 | cat "$sdepdata/once" > "$tempfile" | 57 | cat "$sdepdata/once" > "$tempfile" |
| 58 | sed "s/^/$(date +%Y-%m-%d) /" <"$sdepdata/daily" | >> "$tempfile" | 58 | sed "s/^/$(date +%Y-%m-%d) /" <"$sdepdata/daily" >> "$tempfile" |
| 59 | while read line; do | 59 | while read line; do |
| 60 | weekday=$(echo "$line" | sed "s/ .*$//") | 60 | weekday=$(echo "$line" | sed "s/ .*$//") |
| 61 | echo "$line" | sed "s/^[ ]*[^ ]* /$(date -d $weekday +%Y-%m-%d) /" | 61 | echo "$line" | sed "s/^[ ]*[^ ]* /$(date -d $weekday +%Y-%m-%d) /" |
