While playing with Openbox, we often need a script to perform some actions not included OOTB. Having to search the same answers again and again on each new machine, I thought it was worth documenting them somewhere for further use.
The Tint2 panel - a brilliant and flexible piece of software - allows to execute scripts every certain period of time. At least some of these scripts should also be useful in other applications (panels?).
This repository contains scripts of various usability in various stages of development. Always up to date versions you'll find in separate repositories:
Contains a python-psutil-based script, which provides a set of commands to display information on system resources usage. In Tint2 panel you may choose from graphical (icons) and textual format. Published as psuinfo (AUR) package for Arch Linux and in official Void Linux repository.
Contains the rest of most useful scripts, which as well display system info, as allow to assign some useful actions to mouse clicks: desktop indicator/switcher, Bumblebee status, brightness and volume level, wi-fi network in use, Arch updates and current weather. Published as t2ec (AUR) package for Arch Linux.
A simple helper script, which is a launcher allowing to avoid running multiple instances of the same window. Useful while assigning commands to mouse click events. AUR
Attention: all the content described below this point concerns development versions, which may not contain latest changes. Use of packages named above is strongly recommended.
Displays an icon according to the current Bumblebee status. If NVIDIA graphics turned on, it'll also display the GPU temperature.
Command: ~/tint2-executors/bbswitch-status-temp.sh
Wiki: dependencies, sample executor
This script displays an appropriate brightness icon, according to the current brightness level. Assign scroll up/down command to increase/decrease level. Use -l
argument to display level as text next to the icon.
Command: ~/tint2-executors/brightness-icon.sh
Wiki: dependencies, sample executor
This script displays an appropriate volume icon, according to the current volume level. Assign scroll up/down command to increase/decrease level. Use -l
argument to display level as text next to the icon.
Command: ~/tint2-executors/volume-icon.sh
Wiki: dependencies, sample executor
This script displays an appropriate battery icon, according to the current charge level and charging state. It has mainly aesthetic values: it should rather be used next to the built-in Tint2 battery indicator, not instead of it. However, you may use -l
argument to display level as text next to the icon.
Command: ~/tint2-executors/battery-icon.sh
Wiki: dependencies, sample executor
This Python script displays current desktop indicator. Assign scroll up/down command with n
| p
(next | previous) argument to switch desktops.
Wiki: dependencies, optional arguments, sample executor
Bash script to display the name of Wi-Fi network currently in use, labeled with an icon or text.
Command: ~/tint2-executors/wifi-name.sh
Wiki: optional agruments, sample executor
This script displays an icon to indicate Arch / AUR package updates available. Likely to need some customization to work well on each machine, as it depends on the terminal and AUR helper you use. Check Wiki for details.
Command: ~/tint2-executors/./arch-update.sh
Wiki: dependencies, customization, sample executor
Opens a Zenity box to set the brightness level. Could be used e.g. as the left click action with the brightness icon.
Command: ~/tint2-executors/zenity-set-brightness.sh
Opens a Zenity box to set the volume level. Could be used e.g. as the left click action with the volume icon.
Command: ~/tint2-executors/zenity-set-volume.sh
Lately I needed to prove that my Internet connection sucks. And not as fast as the provider claims it does. To collect data on the speed over time, I used this bash script in a Tint2 executor. It saves Ping [ms] Download and Upload speed [Mbit/s] every a certain interval to ~/speedtest.txt.
Command: ~/tint2-executors/speedtest.sh
Wiki: dependencies, sample executor and output
cpu-fan-mem.py (deprecated)
Important note: the cpu-fan-mem.py script has been turned into a separate project and also AUR package, and will no longer be updated here. The description below, Wiki and the script itself are out of date. Please check the project site.