tadd chronoclock and rotmon - scripts - random scripts
HTML git clone git://parazyd.org/scripts.git
DIR Log
DIR Files
DIR Refs
---
DIR commit 102d035f011a9b5ba859d8fff179545bf636a43e
DIR parent fcf26e89dd51bd2e11694c9a2b8546f364bbd349
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 20 Jul 2016 19:36:06 +0200
add chronoclock and rotmon
Diffstat:
A chronoclock | 14 ++++++++++++++
A rotmon | 28 ++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)
---
DIR diff --git a/chronoclock b/chronoclock
t@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# parazyd - (c) wtfpl 2016
+# fonts: xsansb future smblock univers
+
+FONT=$1
+: ${FONT:="future"}
+
+while true; do
+ clear
+ echo
+ printf "`date '+%H:%M:%S'`" | toilet -f $FONT
+ sleep 1
+done
DIR diff --git a/rotmon b/rotmon
t@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# parazyd - (c) wtfpl 2016
+# skreenz
+
+IN="LVDS1"
+EXT="VGA1"
+
+case "$1" in
+ left|l)
+ xrandr --output $IN --rotate left
+# nitrogen --restore
+ ;;
+ right|r)
+ xrandr --output $IN --rotate right
+# nitrogen --restore
+ ;;
+ inverted|i)
+ xrandr --output $IN --rotate inverted
+# nitrogen --restore
+ ;;
+ normal|n)
+ xrandr --output $IN --rotate normal
+ ;;
+ *)
+ echo `basename $0` '{left|right|inverted|normal}'
+ ;;
+esac