djorborn / helpful-functions-and-scripts

Helpful C Functions and Shell Scripts, things like battery usage and catching arrow keys.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helper Functions And Scripts

This is a repositry of helpful functions in C and Bourne Shell Script.

get-battery

Both shell and C do pretty much the same thing. Output the current battery percent and = for Full - for dischrging and + for charging. The result is printed to stdout. Orignal source for C is from suckless and the script is from oh-my-zsh/plugin/battery.

arrow-hoome-and-end-keys.sh

This is a shell script that catches the UP, DOWN, LEFT and RIGHT arrow keys as well as HOME and END keys. It uses a trick to catch multi digit keys and works for most terminals. Orignal code source from stackoverflow

dwm_status

This along with start_dwm_status are the script I use to show system stats in dwm.

Contribute

Please feel free to make a pull request if you feel like you have something that should be here.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

Helpful C Functions and Shell Scripts, things like battery usage and catching arrow keys.

License:GNU General Public License v3.0


Languages

Language:Shell 51.0%Language:C 49.0%