HyperHamster / i3blocks

A collection repository of my personal i3blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a collection repository of my personal i3blocks.


media-info.sh

This block displays information from D-Bus MPRIS compliant media players (such as Spotify or VLC). It does not require playerctl to do so; it instead interfaces with D-Bus directly.

This block utilizes Font Awesome icons (you can swap them for unicode alternatives).

Example Output:  In A Sentimental Mood - Duke Ellington

~/.i3blocks.conf Entry:

[media-info]
command=bash .../media-info.sh
interval=1
...
Input Action
Left Click N/A
Right Click Pause/Play Track
Middle Click Stop Track
Scroll Down Next Track
Scroll Up Previous Track

weather-underground.sh

This block displays information from Weather Underground's API. It requires that you supply it a valid Wunderground API key and a valid location. It will update the current temperature and weather condition every 15 minutes relative to when it's initially ran (you can make this faster, but too fast and you'll deplete your daily update allowance).

In order to get a free API key you must sign up for an account here, then select the Stratus Developer plan here (I know it says purchase but it's most certainly free). Valid location formats include US zipcodes (10101), US state/city (NY/New_York), or country/city (UK/London). To display in degrees Celsius/Centigrade supply the -C option.

Example Output: Clear, 59 °F

~/.i3blocks.conf Entry:

[weather-underground]
command=bash .../weather-underground.sh [-C] API_KEY LOCATION
interval=persist
signal=6
...
Input Action
Left Click N/A
Right Click Flash High/Low Temp
Middle Click Force Update
Scroll Down N/A
Scroll Up N/A

About

A collection repository of my personal i3blocks

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%