Quantcast
Channel: Geeklets
Viewing all 81 articles
Browse latest View live

Think different

$
0
0

My first setup of a Geeklet screen.

I'm sorry to say it's mostly in Dutch but for those who want to it's fairly easy to translate it yourself.

The background is based on Apple's "Think Different" campaign back in 1997. One of my favorites and I tend to act like the slogan says.

In the upper-left corner you see the date. The most simple geeklet you can imagine.

Below the date you can see weather details. To get these, I put them together as a collection. Please take care: for the weather text and temperature you have to subscribe at Weather Underground to get free access to their api. The icon comes from Accuweather. The file you download is a zip-file.

Below the weatherdetails there's a Dutch fuzzy wordclock. After fiddling around with several versions from different sources I made this one myself. Everything is written in Dutch but it's fairly simple to translate it. This file is a zip-file.

The calender on the right is fairly simple, nothing really to it.

In the lower-right corner you'll find network (wifi) details like SSID you are logged into and IP-adres of that connection. Not really difficult but sometimes comes in handy.

Below the networkdetails you'll see a batterymeter. The script itself was fairly simple to write, it took more time to make the gauge like this. Take care: the file you download is a zip-file!

Be free to download these and try them yourself!


Comprehensive system monitor - Yosemite

$
0
0

This monitor shows your CPU, Memory, Hard Drive, and network usage. Also shows your internal IP Address, internal temperature, the fan speed, and the total uptime of your machine.

Secondly, is a built in to do list. I simply have an alias that edits a text file on my dropbox with vim to modify this.

Thirdly, it shows the top 10 processes on your machine sorted by CPU usage. Along with their processor ID and memory usage as well.

#!/bin/bash

echo && echo ———————-System Information:——————— && echo

Find time since last boot.

then=$(sysctl kern.boottime | awk '{print $5}' | sed "s/,//") now=$(date +%s) diff=$(($now-$then))

Convert time to human readable stuff.

days=$(($diff/86400)); diff=$(($diff-($days86400))) hours=$(($diff/3600)) diff=$(($diff-($hours3600))) minutes=$(($diff/60))

Find current bandwith in each pipe

myvar1=netstat -bI en0 | awk "/en0/"'{print $7;exit}' myvar3=netstat -bI en0 | awk "/en0/"'{print $10;exit}'

sleep 1

Find current bandwith in each pipe after a second.

myvar2=netstat -bI en0 | awk "/en0/"'{print $7;exit}' myvar4=netstat -bI en0 | awk "/en0/"'{print $10;exit}'

Find the difference between each pipe after 1 second.

subin=$(($myvar2 - $myvar1)) subout=$(($myvar4 - $myvar3))

Convert the bytes to kilobytes

kbin=echo "scale=2; $subin/1024;" | bc kbout=echo "scale=2; $subout/1024;" | bc

Current CPU usage

echo CPU: top -l 1 | awk '/CPU usage/ {print $3}' | sed s/%//%

Current Memory Usage

usedMEM=top -l 1 -s 0 | grep PhysMem | awk $'{print $2}' | awk $'{print $0}' | sed 's/M$//' && usedMEM=bc <<< "scale = 2; $usedMEM/1024" /bin/echo -n MEM: $usedMEM && /bin/echo GB

Current Disk Usage

usedHDD=df -h | grep -E "disk1" | awk '{print $3}' | sed 's/Gi$//' /bin/echo -n HDD: $usedHDD GB && echo

echo

Current Network Traffic

echo "UPL: $kbout KB/s" echo "DWN: $kbin KB/s"

Current IP Address

/bin/echo -n IPA: && ipconfig getifaddr en0

echo

Current CPU Temp

/bin/echo -n TMP: && istats | grep CPU\ temp | awk '{print $3}'

Current Fan speed

/bin/echo -n FAN: && istats | grep Fan\ 0\ speed: | awk '{print $4,$5}'

Current uptime

echo UPT: $days Days $hours Hours $minutes Minutes

To do list

echo && echo && echo && echo echo ———————————To Do List:———————————- && echo head -n 10 ~/Dropbox/Miscellaneous/Work.txt

Top 10 processes

echo && echo && echo && echo echo —————————Top Processes:—-————————- && echo ps -arcwwwxo "command pid %cpu %mem" | head -11

Current Weather Forcast Yahoo (2016)

$
0
0

Save the code below to a file (WeatherForcast.php) and then create a shell command Geeklet with the command:

php /pathtofile/WeatherForcast.php

Change the Location variable

PHP Code

<?php
$Location = "Disneyland, CA";


$BASE_URL = "http://query.yahooapis.com/v1/public/yql";
$yql_query = 'select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="'.$Location.'")';
$yql_query_url = $BASE_URL . "?q=" . urlencode($yql_query) . "&format=json";
// Make call with cURL
$session = curl_init($yql_query_url);
curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
$json = curl_exec($session);
// Convert JSON to PHP object
 $phpObj =  json_decode($json,true);
//var_dump($phpObj);
echo "\033[1;31mWeather for $Location \033[0m\r";    
echo "\033[36m".$phpObj['query']['results']['channel']['lastBuildDate']."\033[0m\r";
$forcast = $phpObj['query']['results']['channel']['item']['forecast'];

foreach ($forcast as $daily) {
    echo $daily['day'].' '.$daily['low'].'° - '.$daily['high'].'° - '.$daily['text']."\r";
}  
?>

My adaptation of the J.A.R.V.I.S. theme

OpenWeatherMap geeklet (inspired by ejleon)

$
0
0

Weather geeklet using OpenWeatherMap API, 100% Works & Free.

Requirements: 1. jq ( JSON parser) . Install it into your mac using brew install jq

Enjoy...

Hud High Tech Design

$
0
0

Hope you like especially if you came from my youtube channel https://www.youtube.com/channel/UCsWytqQFIL0lAVtUZfLDPmA

Circular System Desktop Disk Ram Cpu Battery Nettraffic

$
0
0

Description

This has taken me a few weeks time. I wanted to get all the relevant system and weather information while using elegant circular indicators. It involved creating my own arc font, understanding unix commands, writing shell scripts, apple scripts and fooling around with Gimp and Inkscape. The whole setup runs from a ramdisk (instructions are provided) to avoid problems with paths and excessive read and write access to your hdd or sad. You can consult the attached Readme.txt for more information.

Download

You can download all the 32 geeklets, scripts and instructions from [here] https://dl.dropboxusercontent.com/u/1790995/Geektool.zip).

Install

Extract Geektool.zip and follow the instructions in the readme file.

Credits

  1. Disk / Ram / Battery are based on d13t’s work. http://www.macosxtips.co.uk/geeklets/system/disk-capacity-meter/
  2. For the other arcs credits go to JimmyBollox http://www.macosxtips.co.uk/geeklets/system/system-info-circular-graphics/
  3. OpenWeather: dr_selump and ejleon http://www.macosxtips.co.uk/geeklets/weather/openweathermap-geeklet-inspired-by-ejleon/
  4. Icons: JimmyBollox and http://www.gentleface.com/free_icon_set.html
  5. cachestoram.sh: nischu7 https://gist.github.com/nischu7/7194165

Current Location Weather (Yahoo)

$
0
0

Here is my attempt to create current location weather for GeekTool.

I edited code from this website and give credit to the person who created it. Thank you!

I will add Weather Image soon. I will try to add a 5 day forecast geeklet file too later.

Image Name

The code I wrote for this. Second Geeklet. Current Weather 2.

W=curl "https://weather.yahoo.com" S=(echo "$W" | grep "region" | sed 's/<[^>]*>//g' | head -2 | tail -1 | sed 's/region://g' | sed -e "s/'//g") C=(echo "$W" | grep '"name"' | sed 's/<[^>]*>//g' | head -1 | tail -1 | sed 's/region://g' | sed -e "s/'//g") F=(echo "$W" | grep 'div class="cond' | sed 's/<[^>]*>//g' | head -2 | tail -1 | sed 's/region://g' | sed -e "s/'//g") T=(echo "$W" | grep '"num"' | sed 's/<[^>]*>//g' | head -1 | tail -1 | sed 's/region://g' | sed -e "s/'//g" | sed -e "s/°/°F/g") H=(echo "$W" | grep '"hi f w-up-arrow"'| sed 's/<[^>]*>//g' | head -1 | tail -1 | sed 's/region://g' | sed -e "s/'//g" | sed -e "s/°/°F/g") L=(echo "$W" | grep '"lo f w-down-arrow"'| sed 's/<[^>]*>//g' | head -1 | tail -1 | sed 's/region://g' | sed -e "s/'//g" | sed -e "s/°/°F/g") D=(curl "https://weather.yahoo.com" | grep "Humidity" | awk '{print $86}' | sed 's/<[^>]*>//g' | sed 's/class=//g' | sed 's/"//g' | sed 's/value//g' | sed 's/n//g' | sed 's/>//g' | sed 's/\\\//g')

echo $C,$S echo $T " " $F " " echo "↑"$H "-" "↓"$L echo "$D Humidity"


Weather using Yahoo (2016)

$
0
0

Save the code below to a file (WeatherCurrent.php) and then create a shell command Geeklet with the command:

php /pathtofile/WeatherCurrent.php

Change the path variables to where you have your weather icons stored.

Create an Image Geeklet with URL:

file://localhost/pathtofiles/Geeklets/Weather/CurrentCondition.png

PHP Code

<?php
$Location = 'Universal City, CA';
$pathtoimages = '/pathtofiles/Geeklets/Weather/ConditionIcons/';
$pathtocurrentimage = '/pathtofiles/Geeklets/Weather/CurrentCondition.png';`
$BASE_URL = "http://query.yahooapis.com/v1/public/yql";
$yql_query = 'select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="'.$Location.'")';
$yql_query_url = $BASE_URL . "?q=" . urlencode($yql_query) . "&format=json";
// Make call with cURL
$session = curl_init($yql_query_url);
curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
$json = curl_exec($session);
// Convert JSON to PHP object
 $phpObj =  json_decode($json,true);
//print_r($phpObj);
$temp = $phpObj['query']['results']['channel']['item']['condition']['temp'];
$condition = $phpObj['query']['results']['channel']['item']['condition']['text'];
$weathericon = $phpObj['query']['results']['channel']['item']['condition']['code'];
$units = $phpObj['query']['results']['channel']['units']['temperature'];

$weatherimage = $pathtoimages.$weathericon.'.png';

copy($weatherimage, $pathtocurrentimage);

echo $condition.' '.$temp.'°'.$units."\n";
?>

System Monitor - Yosemite

$
0
0

System monitor created on Yosemite, based on this previous submission: http://www.macosxtips.co.uk/geeklets/system/comprehensive-system-monitor-yosemite/

The CPU and fan information come from the iStats utility, more information on that can be found here: https://github.com/Chris911/iStats

iStats was not installed on my system beforehand, so I had to open the terminal and do gem install istats before GeekTool could pull those numbers.

AccuWeather in German for Germay

$
0
0

Go to Accuweather.com and enter your city name. Copy the link from the address bar, once you found your city of course, and replace (Paste) to replace this line on the Geeklet script; http://www.accuweather.com/en/de/YOUR CITY/PLZ/weather-forecast/CITY IDENT NUMBER

Then find your location code for the same city; Do a google search for:

german weather location code

Copy that location code to this line of the Geeklet script:

LOCATION CODE|CITY NAME

Change the saved image location to somewhere you would like, Documents, downloads or picture folder, then create a image from geektool using where weather.png is now stored. /Users/You/and Your path here/weather.png

I also added a refresh line for the image, just use the session property ID number from your image and replace mine. This will have the image refresh as often as the Weather geeklet. Currently set to 30 minutes intervals (1800 seconds)

EnJoy :D

C5 Corvette reflections Desktop

$
0
0

My current desktop with working weather. Just change the paths and your weather locations from accuweather.com

EnJoy!

Minimalistic Desktop

$
0
0

Hey guys, this is my first submission. I know its not super complicated but I think it looks nice. Just copy and paste the code into a new shell command. The font I'm using is Eurostile around 20pt. Comment if you have any suggestions!

Date: date +"%B %d, %A"

Time: date +"%l:%M:%S %p"

Calendar: cal

Doodle Themed

$
0
0

Minimalistic features. Using nocturnal menu bar. Removed maximum menu bar items to remove redundancy. You might want to shift the geek lets to LHS if you are planning to have icons on the screen. Also the font is chalkdust. For day date time use date '+%A %B %D %Y %H %m' etc. as per your needs.

Hover Bar

$
0
0

I worked out a way to have a hover action on geeklets. I have not seen this done before but it utilises MouseTools

I am checking for the mouse to be in a certain position then using that to run an action. I made up a quick example that moves a bar out to show the time. The design in action can be seen here: http://gph.is/2aSIpHY

There are a few bugs that I want to get rid of soon but I will be releasing the actual script in a few days.

I just want your opinion on the functionality


Momentum inspired theme with Birthday reminder

$
0
0

I was inspired to make something that had a similar feel to the Momentum extension for Chrome/Safari for my desktop so came across Geektool to make it happen.

During my research I discovered the iCalBuddy and thought I'd try and make an 'upcoming birthdays' reminder (as I'm always forgetting).

I bashed this out in an evening and am really happy with it. I may add some other stuff in future but as the Birthday calendar was something I was searching the net for, but couldn't find, I thought I'd post it here (birthday ical.glet).

Wunderlist tasks list

$
0
0

See the GitHub repository (https://github.com/czerwonkabartosz/wunderlist-geektool) for installation instructions.

Very simple GeekTool script written in Node JS to display tasks from Wunderlist.

Prerequisites

  • install nodejs - https://nodejs.org/en/
  • copy script.js file to your computer
  • create Wunderlist access token and client id - https://developer.wunderlist.com/documentation/concepts/authorization
    • register their application - https://developer.wunderlist.com/apps/new (as APP URL and AUTH CALLBACK URL enter http://localhost)
    • create access token (you will find a button to do this)

Install

  • use file wunderlist-geektool.glet to install
  • change command from /usr/local/bin/node /script.js access_token client_id to /usr/local/bin/node /path/to/script.js [enter_your_access_token] [enter_your_client_id]

The Original Momentum Inspired Desktop (with Updates)

$
0
0

([Originally]http://lifehacker.com/the-momentum-inspired-desktop-1784139077) featured by Lifehacker in July 2017)

I love Rainmeter and having moved to OS X full-time (at home) a several months ago, I find I really miss it. In the meantime, I discovered Momentum, a “new tab” Chrome-extension that I quite like. Eventually these two things inspired this Geektool desktop.

For the first screenshot: Wallpaper from (Interfacelift)[https://interfacelift.com/wallpaper/details/4045/h%C3%B6llental.html] Left - “Three Things” reads from a text file (shell geeklet: cat /path/to/filename.txt) Left - “Now Playing” is Bowtie with the Karma theme (works fairly well with Spotify + last.fm) Center - Time (simple Date command: date +”%l:%M”) Center - Greeting using a simple shell script found via Google Center - Date (simple Date command: date “+%A, %B %e”) Center - Today reads from a text file (or you could just as easily use “echo” twice in a shell geeklet) Center - Parsed RSS feed (dropbox.com) from [QuotesDaddy.com] (https://www.quotesdaddy.com/) Right - [Weather geeklet] 9https://leadingspace.wordpress.com/2016/04/30/geektool-weather-information-from-yahoo-for-2016/) by RikerJoe (thanks for this!)

Updated (second screenshot): Wallpaper from macOS wallpapers Replaced Bowtie App with Simplify Replaced weather geeklet with HTML geeklet and darksky.net embed code This is pretty slick because it's responsive; you can resize it just to show the current conditions and not the forecast.

Display number and amount of files in All Trashes

$
0
0

Just change/add/remote the pathOfTrash variables. Then call the script from your Geeklet.

#!/bin/sh
#
pathOfTrash[0]="/Users/myusername/.Trash"
pathOfTrash[1]="/.Trashes"
pathOfTrash[2]="/Volumes/Drobo TimeCapsule/.Trashes"
pathOfTrash[3]="/Volumes/RAID Storage/.Trashes"

diskUsageCommnd=$(du -sckh /Volumes/*/.Trashes ~/.Trash/)
trashSize=$(echo $diskUsageCommnd | egrep -o '([0-9\.GMBK]+)\stotal' | head -n1 | egrep -o '([0-9\.GMBK]+)')
totalFiles=0
for i in "${pathOfTrash[@]}"
do
    :
    filesInFolder=$(find "$i" -type f | wc -l)
    folderName="${i/.Trashes/}"
    folderName="${folderName/.Trash/}"
    if [ $filesInFolder -gt 0 ]
    then
    if [ $filesInFolder -gt 1 ]
    then
        echo $filesInFolder "files in" $folderName
    else
        echo $filesInFolder "file in" $folderName
    fi
else
    #echo "No files in" $i
    zippo=0
fi
totalFiles=$(($filesInFolder+$totalFiles))
done

if [ $totalFiles -gt 0 ]
then
if [ $totalFiles -gt 1 ]
then
    itemName="Items"
    totalName="that are"
else
    itemName="Item"
    totalName="that is"
fi
echo "A total of" $totalFiles $itemName $totalName $trashSize
else
echo "Trash is empty!"
fi

`

Minimalistic Desktop

$
0
0

A simple desktop that lets you monitor your basic system and Spotify.

What I used:

System Information - http://www.macosxtips.co.uk/geeklets/system/system-information/

Spotify - http://www.macosxtips.co.uk/geeklets/music/spotify-now-playing/

Viewing all 81 articles
Browse latest View live