Jean-Claude c852120a4c | ||
---|---|---|
README.md | ||
config | ||
info.yaml | ||
main.py | ||
theAltEvent.py | ||
timetable.yaml |
README.md
Study Manager Scripts
Collection of scripts I used for managing my studies
main.py
Contains core functionality of the Study Manager. Namely it can:
- Create symlink of the current relevant course (CC) to a easily reachable destination like
~/CurrentCourse/
- List relevant resources for the CC like links, username, passwords, etc.
Usage
main.py -c
to select CCmain.py -l
to list resourcesmain.py -t
to create entries for all lecture in your calendar using khal
Configuration
- Create config file at
~/.config/StudyManager/config
containing all the following options. See ./config for an exampleCURRENT_COURSE_LINK_DST
: Path to folder containing all relevant coursesCOURSES_ROOT_DIR
: Path to symlink for the CCINFO_FILE
: Name of infofile contained in CCTIMETABLE_FILE
: Name of timetable file contained in CCCALENDAR
: Name of Khal calendar to useSEMESTER
: Unique identifier for current semesterSEMESTER_START
: Date of first day in semesterSEMESTER_END
: Date of last day in semester
- Create folders for each course in
COURSES_ROOT_DIR
- Create
INFO_FILE
inside each course containing information about the course. See ./info.yaml for an exampletitle
: Name of lecture (required)short
: Shortform of lecture title (required)- Arbitrarily other key/value pairs like
web
,username
, etc. (optional)
- Create
TIMETABLE_FILE
inside each course containing the timetable of that course. The structure for one event is as follows. See ./info.yaml for an exampleArbitraryName
:day
: Day of the event. One of:Mon
,Tue
,Wed
,Tue
,Fri
,Sat
,Sun
start
: Startime of eventend
: Endtime of eventlocation
: Location of eventtype
: Short identifier of type of event. Like e.g.L
for lecture,E
for exercise, etc.
Requirements
- Python3
- Rofi
- python-rofi
- Khal (optional)
theAltEvent.py
Create calendar entries for courses of theAlternative
Usage
- Clone theAlternative Website
- Run
./theAltEvent.py
and pass as arguments all.yml
files of the events located inevents
that you want to create an empty for. E.g.theAltEvent.py ./events/*.yml