A dictionary in your terminal

Owning to my poor vocabulary I had to look up for meanings every now and then, the following script gets you the meaning for any word from dictionary.com using bash. A bash script dictionary dict() { #Creating a temp folder dir=~/.dict #Check for the existence if not create one [[ -d $dir ]] || mkdir $dir #download respective file from dictionary dot com # -q => do it quietly ie nothing @ screen # -O save it as mean wget -q -O $dir/mean wget http://dictionary. [Read More]

Battery information inside terminal

If you want to know your battery details in terminal use upower and create an alias to it. This is helpful hack if you want to trigger events on low battery or if you are someone who uses really light desktop managers without a battery indicator. Upower command can be used to get stats on battery. upower -i /org/freedesktop/UPower/devices/battery_BAT0 Grep for the required details. upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per" Create an alias, after this step you can run the command using the alias bat. [Read More]