GithubHelp home page GithubHelp logo

aclock's Introduction

aclock

text clock, control via OSC

cd aclock
./compile.sh
./run.sh

-> a terminal will be started that send any keystrokes to aclock via OSC
-> the main terminal will show the current clock string and update upon OSC messages
sendkeys.sh and aclock are configured to use port 6789.

Keyboard Operation (in 2nd terminal):

'^': toggle clock active

'escape' ||
'q': set clock inactive

'a': set clock active

'z': autoselect next component true

'u': autoselect next component false

'insert' ||
'i': toggle autoselect next component setting

'j': autonomous components true (no overflow)

'k': autonomous components false

'l': toggle autonomous components setting

'arrow_left' ||
'd': navigate to left component

'arrow_right' ||
'g': navigate to right component

'arrow_up' ||
'r': increment component value by 1

'arrow_down' ||
'v': decrement component value by 1

'page_up' ||
't': increment component value by 10^(max digits -1)

'page_down' ||
'b': decrement component value by 10^(max digits -1)

'h': navigate to head component (hours)

'm': navigate to 2nd component (minutes)

's': navigate to 3rd component (seconds)

'x': navigate to tail component (milliseconds)
                
',': clear (zero) all components after currently selected

';': clear all components before currently selected
     
':': clear all components before and after currently selected
  
'backspace' ||  
'o': clear currently selected component

'delete' ||
'p': clear all components

'enter' ||     
'.': finish entry, jump to next component (if autoselect next component true)

'+': start addition to currently selected component

'+': start substraction to currently selected component

'0-9' any digit. to set, add and substract values


OSC Messages understood by aclock:

/key s
  1) s: key

/key is
  1) i: int (ignored)
  2) s: key
  (sk/sendkeys compatible)

/set s
  1) s: keys

/delim ssss
  1) s: left delim for selected components
  2) s: right delim for selected components
  3) s: left delim for edited components
  4) s: right delim for edited components

/inplace i
  1) i: 0: off 1: on (print updated clock in place vs. on new line)

for more info, see src/OClock.java

Advanced:

to display clock strings with shout (https://github.com/7890/shout):

./aclock | while read line; do shout "$line" 1; done

in a second terminal, configure aclock, set delim for shout selection/edit coloring:

oscsend localhost 6789 /delim ssss '\\[' '\\]' '\\(' '\\)'

aclock's People

Contributors

7890 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.