diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2020-12-26 13:41:50 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2020-12-26 13:41:50 +0200 |
commit | e32159428b5d4da93ea924583b1deb2160ca4b95 (patch) | |
tree | 420130110060873061bd6f893b031e64d50bdf79 | |
parent | 6432435c8a04109bc701630c95fd031507745180 (diff) | |
download | quart-master.tar.gz quart-master.tar.bz2 quart-master.zip |
-rw-r--r-- | Makefile | 19 | ||||
-rw-r--r-- | man/quart.1 (renamed from quart.1) | 14 | ||||
-rw-r--r-- | man/quart.1.scd (renamed from quart.1.scd) | 7 | ||||
-rw-r--r-- | man/quart.5 (renamed from quart.5) | 4 | ||||
-rw-r--r-- | man/quart.5.scd (renamed from quart.5.scd) | 4 | ||||
l--------- | qc.1 | 1 | ||||
-rwxr-xr-x | utils/quart.i3blocks (renamed from quart.i3blocks) | 0 |
7 files changed, 34 insertions, 15 deletions
@@ -1,5 +1,6 @@ TARGET=quart PREFIX?=/usr/local +MANUALS=$(PREFIX)/share/man SRC=*.c CC=gcc CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -lm @@ -17,9 +18,8 @@ noasan: $(SRC) $(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^ docs: - scdoc < quart.1.scd > quart.1 - scdoc < quart.5.scd > quart.5 - ln -fs quart.1 qc.1 + scdoc < man/quart.1.scd > man/quart.1 + scdoc < man/quart.5.scd > man/quart.5 .PHONY: clean @@ -32,12 +32,13 @@ clean: install: $(TARGET) @cp -v $(TARGET) $(PREFIX)/bin/$(TARGET) @cp -v qc $(PREFIX)/bin/qc - @install -m644 quart.1 $(PREFIX)/share/man1/quart.1 - @install -m644 quart.5 $(PREFIX)/share/man5/quart.5 - @ln -s $(PREFIX)/share/man5/quart.1 $(PREFIX)/share/man5/qc.1 + @install -v -m644 man/quart.1 $(MANUALS)/man1/quart.1 + @install -v -m644 man/quart.5 $(MANUALS)/man5/quart.5 + @ln -fs $(MANUALS)/man1/quart.1 $(MANUALS)/man1/qc.1 uninstall: @rm -v $(PREFIX)/bin/$(TARGET) - @rm -v $(PREFIX)/share/man1/quart.1 - @rm -v $(PREFIX)/share/man5/quart.5 - @rm -v $(PREFIX)/share/man5/qc.1 + @rm -v $(PREFIX)/bin/qc + @rm -v $(MANUALS)/man1/quart.1 + @rm -v $(MANUALS)/man5/quart.5 + @rm -v $(MANUALS)/man1/qc.1 @@ -5,7 +5,8 @@ .nh .ad l .\" Begin generated content: -.TH "quart" "1" "2020-12-25" +.TH "quart" "1" "2020-12-26" +.P .P .SH NAME .P @@ -28,6 +29,17 @@ quart - plan your day, a quarter at a time File containing the schedule to parse.\& .P .RE +\fB-r\fR +.RS 4 +Print the remaining tasks for the day, if any.\& This is the default, if no +other flags are given +.P +.RE +\fB-s\fR +.RS 4 +Print the whole schedule.\& +.P +.RE \fB-c\fR .RS 4 Print \fIcurrent\fR task.\& diff --git a/quart.1.scd b/man/quart.1.scd index 2a9e08e..38508cc 100644 --- a/quart.1.scd +++ b/man/quart.1.scd @@ -19,6 +19,13 @@ quart - plan your day, a quarter at a time _file_ File containing the schedule to parse. +*-r* + Print the remaining tasks for the day, if any. This is the default, if no + other flags are given. + +*-s* + Print the whole schedule. + *-c* Print _current_ task. @@ -5,7 +5,7 @@ .nh .ad l .\" Begin generated content: -.TH "quart" "5" "2020-12-25" +.TH "quart" "5" "2020-12-26" .P .P .SH NAME @@ -126,4 +126,4 @@ so it can contain a different \fIflag\fR or \fIrepetition\fR number.\& .RE \fB-\fR .RS 4 -None, the most important thing.\& 15 minutes of doing nothing.\&
\ No newline at end of file +None, blank, empty, the most important thing.\& 15 minutes of doing nothing.\&
\ No newline at end of file diff --git a/quart.5.scd b/man/quart.5.scd index aae762d..3133185 100644 --- a/quart.5.scd +++ b/man/quart.5.scd @@ -18,10 +18,10 @@ Before any task, every *quart* file must contain a header with the starting time of the schedule. It looks like this: ``` -#+START: 9:15 +#+start: 9:15 ``` -It is case insenstive. +Use capital letters, or lowercase ones. No mixing. ## COMMENTS @@ -1 +0,0 @@ -quart.1
\ No newline at end of file diff --git a/quart.i3blocks b/utils/quart.i3blocks index bf0e1a1..bf0e1a1 100755 --- a/quart.i3blocks +++ b/utils/quart.i3blocks |