-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallWeek
More file actions
executable file
·50 lines (40 loc) · 1.4 KB
/
wallWeek
File metadata and controls
executable file
·50 lines (40 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#############################################
# #
# DESCRIPTION #
# #
#############################################
# Scan seven days starting with the current
# day.
# Show
# - a timetable for each day
# on the wallpaper using `feh`.
#############################################
# #
# END DESCRIPTION #
# #
#############################################
#############################################
# #
# CONFIGURATION #
# #
#############################################
# resolution for timetable in minutes:
RES=10
#############################################
# #
# END CONFIGURATION #
# #
#############################################
# script directory:
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
sDay=$(date -I)
eDay=$(date -I -d "$sDay + 7 day")
cDay="$sDay"
{
while [ "$cDay" != "$eDay" ]
do
"$SCRIPT_DIR/betterCalendar" -d "$cDay" -t -r "$RES"
cDay=$(date -I -d "$cDay + 1 day")
done
} | "$SCRIPT_DIR/wallPipe"