scripts

random scripts
git clone git://parazyd.org/scripts.git
Log | Files | Refs

commit 102d035f011a9b5ba859d8fff179545bf636a43e
parent fcf26e89dd51bd2e11694c9a2b8546f364bbd349
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 20 Jul 2016 19:36:06 +0200

add chronoclock and rotmon

Diffstat:
Achronoclock | 14++++++++++++++
Arotmon | 28++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/chronoclock b/chronoclock @@ -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 diff --git a/rotmon b/rotmon @@ -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