aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2018-01-17 06:24:57 +0800
committerfeld <feld@FreeBSD.org>2018-01-17 06:24:57 +0800
commita42da0d4cef4f33394679feb65de6ca95588bb09 (patch)
tree6271e491910c114643d20df4927f82b91633e90f /accessibility
parentbb6c78291da0b6e040b8f28459b7a27d98a1ffa1 (diff)
downloadfreebsd-ports-gnome-a42da0d4cef4f33394679feb65de6ca95588bb09.tar.gz
freebsd-ports-gnome-a42da0d4cef4f33394679feb65de6ca95588bb09.tar.zst
freebsd-ports-gnome-a42da0d4cef4f33394679feb65de6ca95588bb09.zip
This is a port of sct, a simple command-line utility written by Ted Unangst,
which can be used to control screen temperature. It exceeds at being much more lightweight than similar software solutions like Redshift and f.lux. At the same time it is easier to use than xrandr. Sct takes temperature values in range 1000 to 10000, where 6500 is the default value. Here are some usage examples: * Campfire style: `sct 4500` * Dust storm on Mars style: `sct 2000` * Coffee free all nighter style: `sct 8000` * Default style: `sct` WWW: https://www.tedunangst.com/flak/post/sct-set-color-temperature
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/Makefile1
-rw-r--r--accessibility/sct/Makefile22
-rw-r--r--accessibility/sct/distinfo3
-rw-r--r--accessibility/sct/pkg-descr14
4 files changed, 40 insertions, 0 deletions
diff --git a/accessibility/Makefile b/accessibility/Makefile
index 7ec1ed759d0a..38666cf64103 100644
--- a/accessibility/Makefile
+++ b/accessibility/Makefile
@@ -28,6 +28,7 @@
SUBDIR += qt5-speech
SUBDIR += redshift
SUBDIR += rubygem-atk
+ SUBDIR += sct
SUBDIR += speech-dispatcher
SUBDIR += yasr
diff --git a/accessibility/sct/Makefile b/accessibility/sct/Makefile
new file mode 100644
index 000000000000..64a13274f827
--- /dev/null
+++ b/accessibility/sct/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= sct
+PORTVERSION= 0.1.0
+CATEGORIES= accessibility
+
+MAINTAINER= 0mp@FreeBSD.org
+COMMENT= Utility to change screen temperature
+
+LICENSE= UNLICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= 0mp
+
+USE_XORG= x11 xrandr
+
+PLIST_FILES= bin/sct
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sct
+
+.include <bsd.port.mk>
diff --git a/accessibility/sct/distinfo b/accessibility/sct/distinfo
new file mode 100644
index 000000000000..c23f1d9616f7
--- /dev/null
+++ b/accessibility/sct/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1516135722
+SHA256 (0mp-sct-0.1.0_GH0.tar.gz) = 982bae0448daff0b41eabe492b8b33223e2dad010e861fd6f09e8d9d0d7ca6c1
+SIZE (0mp-sct-0.1.0_GH0.tar.gz) = 2167
diff --git a/accessibility/sct/pkg-descr b/accessibility/sct/pkg-descr
new file mode 100644
index 000000000000..b582c0c1b5de
--- /dev/null
+++ b/accessibility/sct/pkg-descr
@@ -0,0 +1,14 @@
+This is a port of sct, a simple command-line utility written by Ted Unangst,
+which can be used to control screen temperature. It exceeds at being much more
+lightweight than similar software solutions like Redshift and f.lux. At the
+same time it is easier to use than xrandr.
+
+Sct takes temperature values in range 1000 to 10000, where 6500 is the default
+value. Here are some usage examples:
+
+ * Campfire style: `sct 4500`
+ * Dust storm on Mars style: `sct 2000`
+ * Coffee free all nighter style: `sct 8000`
+ * Default style: `sct`
+
+WWW: https://www.tedunangst.com/flak/post/sct-set-color-temperature