Commit: c4870d0a012faff758950702c9c40bf18467e6f5
Parent: f490e9b178dc37c2005fa0f20ddda3fd8bfb0f0d
Author: Randy Palamar
Date: Sun, 2 Apr 2023 19:42:22 -0600
just call it sct
Diffstat:
4 files changed, 49 insertions(+), 49 deletions(-)
diff --git a/Makefile b/Makefile
@@ -8,7 +8,7 @@ CFLAGS = -Wall -Wextra -pedantic -std=c99 -O2 -I/usr/X11R6/include
CPPFLAGS = -DVERSION=\"${VERSION}\"
LDFLAGS = -lX11 -lXrandr -lm -L/usr/X11R6/lib -s
-all: ssct
+all: sct
.c.o:
$(CC) -o $@ -c $< $(CFLAGS) $(CPPFLAGS)
@@ -19,17 +19,17 @@ all: ssct
install: all
# installing executable
mkdir -p "$(DESTDIR)$(PREFIX)/bin"
- cp -f ssct "$(DESTDIR)$(PREFIX)/bin"
- chmod 755 "$(DESTDIR)$(PREFIX)/bin/ssct"
+ cp -f sct "$(DESTDIR)$(PREFIX)/bin"
+ chmod 755 "$(DESTDIR)$(PREFIX)/bin/sct"
#installing manual page
mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
- sed "s:VERSION:$(VERSION)/g" < ssct.1 > "$(DESTDIR)$(MANPREFIX)/man1/ssct.1"
+ sed "s:VERSION:$(VERSION)/g" < sct.1 > "$(DESTDIR)$(MANPREFIX)/man1/sct.1"
uninstall:
- rm -f "$(DESTDIR)$(PREFIX)/bin/ssct"
- rm -f "$(DESTDIR)$(MANPREFIX)/man1/ssct.1"
+ rm -f "$(DESTDIR)$(PREFIX)/bin/sct"
+ rm -f "$(DESTDIR)$(MANPREFIX)/man1/sct.1"
clean:
- rm -f ssct $(OBJ)
+ rm -f sct $(OBJ)
.PHONY: all clean install uninstall
diff --git a/sct.1 b/sct.1
@@ -0,0 +1,42 @@
+.TH SCT 1 sct\-VERSION
+.SH NAME
+sct \- set screen color temperature (X11)
+.SH SYNOPSIS
+.B sct
+.RB [options]
+.RB [temperature]
+.RB [brightness]
+
+.SH DESCRIPTION
+.B sct
+sets the screen's color temperature.
+
+.SH OPTIONS
+.TP
+.B -v
+verbose output.
+.TP
+.B -d
+Shift temperature by temperature value
+.TP
+.B -s N
+Zero-based index of screen to use.
+.TP
+.B -c N
+Zero-based index of CRTC to use.
+.TP
+.BI [temperature]
+Black body temperature
+.br
+If the value is 0, sct sets the color temperature to the default of 6500
+.br
+If no arguments are passed, sct estimates the current display temperature and brightness
+.TP
+.BI [brightness]
+Linear brightness between 0.0 (inclusive) and 1.0 (inclusive). The default value is 1.0 if no parameter is passed.
+
+.SH AUTHOR
+sct is based on code by Ted Unangst <tedu@openbsd.org>
+
+.SH SEE ALSO
+redshift(1), xtemp(1)
diff --git a/ssct.c b/sct.c
diff --git a/ssct.1 b/ssct.1
@@ -1,42 +0,0 @@
-.TH SSCT 1 ssct\-VERSION
-.SH NAME
-ssct \- set screen color temperature (X11)
-.SH SYNOPSIS
-.B ssct
-.RB [options]
-.RB [temperature]
-.RB [brightness]
-
-.SH DESCRIPTION
-.B ssct
-sets the screen's color temperature.
-
-.SH OPTIONS
-.TP
-.B -v
-verbose output.
-.TP
-.B -d
-Shift temperature by temperature value
-.TP
-.B -s N
-Zero-based index of screen to use.
-.TP
-.B -c N
-Zero-based index of CRTC to use.
-.TP
-.BI [temperature]
-Black body temperature
-.br
-If the value is 0, xsct sets the color temperature to the default of 6500
-.br
-If no arguments are passed, xsct estimates the current display temperature and brightness
-.TP
-.BI [brightness]
-Linear brightness between 0.0 (inclusive) and 1.0 (inclusive). The default value is 1.0 if no parameter is passed.
-
-.SH AUTHOR
-ssct is based on sct by Ted Unangst <tedu@openbsd.org>
-
-.SH SEE ALSO
-redshift(1), xtemp(1)