Coder Social home page Coder Social logo

geeklet-scripts's Introduction

Geeklet Scripts

A collection of scripts for use with GeekTool or Übersicht

For best results using these scripts with geektool you should use a fixed width font.

calendar.rb

This geeklet requires the htmlentities gem, you can install this with sudo gem install htmlentities

Usage: calendar.rb [options]
    -v, --vertical                   Orients the calendar vertically instead of horizontally
    -i, --indicator INDICATOR        The string used to denote which day it currently is on the separator (should be 2 characters)
    -z, --colorize                   indicate the current day with color
    -c, --color COLOR                Sets the color to use as the current day marker (black, red, green, yellow, blue, magenta, cyan, white)
    -C, --hicolor                    Uses the hicolor ASCII value for the chose color
    -t, --colordate                  Use color to mark the date (01, 02, 03)
    -d, --colorday                   Use color to mark the day (Mo, Tu, We)
    -S, --noseparator                Do not output the separator line between days and dates
    -H, --html                       Output HTML color codes instead of shell for use with Ubersicht - requires HTMLEntities gem
    -h, --help                       Displays this help dialogue

battery.rb

Displays a battery meter for the system battery.

Usage: battery.rb [options]
    -c, --color                      Display battery meter with color
    -s, --size SIZE                  Size (small, big, bigger) of battery meter
    -H, --html                       Output HTML color codes instead of shell for use with Ubersicht
    -h, --help                       Displays this help screen

btbattery.rb

This script is very limited in what it supports currently. Tested with Magic Keyboard with Numeric Keypad and Magic Mouse, though it should support all Apple Bluetooth HID devices.

Usage: battery.rb [options]
    -c, --color                      Display battery meter with color
    -s, --size SIZE                  Size (small, big, bigger) of battery meter
    -l, --cell CELL                  The character to use for each battery cell
    -H, --html                       Out put HTML color codes instead of shell
    -m, --map MAP                    Key:Value mapping of device names to display names, separated by a semicolon (;) (ex: 'Magic Keyboard with Numeric Keypad:Keyboard')
    -S, --separator SEPARATOR        Split multiple batteries by this string (default '\n')
    -h, --help                       Displays this help screen

netstats.rb

Displays some basic network interface data.

Usage: netstats.rb [options]
    -i, --iface IFACE                Set iface to monitor
    -w, --wifi                       iface is a wireless access point
    -s, --server                     set the server to gauge ping response[google.com]
    -H, --html                       Output HTML color codes instead of shell for use with Ubersicht
    -h, --help                       Displays this help screen

date.rb

Very basic script to output a date string with some predefined types or using a custom unix date string.

Usage: date.rb [string type]
    -t, --type TYPE                  Date string type to output (long, short, time, longDate, shortDate, string)
    -s, --string "STRING"            UNIX date string to output
    -h, --help                       Displays this help screen

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.