aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/sdep-add2
-rwxr-xr-xscripts/sdep-checknow2
-rwxr-xr-xscripts/sdep-clear2
-rwxr-xr-xscripts/sdep-edit2
-rwxr-xr-xscripts/sdep-list4
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
11sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" 11sdepdata="${XDG_DATA_HOME:-$HOME/.local/}/sdep"
12 12
13file="$sdepdata/once" 13file="$sdepdata/once"
14date="" 14date=""
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
17sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" 17sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep"
18 18
19#notify="notify-send -t 3600000" 19#notify="notify-send -t 3600000"
20notify=herbe 20notify=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
7sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" 7sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep"
8 8
9file="$sdepdata/${1:-once}" 9file="$sdepdata/${1:-once}"
10temp=$(mktemp) 10temp=$(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
8sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" 8sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep"
9 9
10file="$sdepdata/${1:-once}" 10file="$sdepdata/${1:-once}"
11editor=${VISUAL:-vi} 11editor=${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
18sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" 18sdepdata="${XDG_DATA_HOME:-$HOME/.local/share}/sdep"
19 19
20from="" 20from=""
21to="" 21to=""
@@ -55,7 +55,7 @@ esac
55tempfile=$(mktemp) 55tempfile=$(mktemp)
56 56
57cat "$sdepdata/once" > "$tempfile" 57cat "$sdepdata/once" > "$tempfile"
58sed "s/^/$(date +%Y-%m-%d) /" <"$sdepdata/daily" | >> "$tempfile" 58sed "s/^/$(date +%Y-%m-%d) /" <"$sdepdata/daily" >> "$tempfile"
59while read line; do 59while 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) /"

Generated with cgit - Back to sebastiano.tronto.net