https://github.com/cphyc/small-scripts
Basic small scripts for everyday-life basic tasks!
https://github.com/cphyc/small-scripts
Last synced: 11 days ago
JSON representation
Basic small scripts for everyday-life basic tasks!
- Host: GitHub
- URL: https://github.com/cphyc/small-scripts
- Owner: cphyc
- Created: 2014-06-09T08:37:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-12-03T21:04:12.000Z (over 10 years ago)
- Last Synced: 2025-02-23T19:15:11.502Z (over 1 year ago)
- Language: Shell
- Size: 37.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Small-scripts
Basic small scripts for everyday-life basic tasks!
##battery.sh
[shell] Get the battery status through acpi and get from it the percentage of remaining power in it.
Syntax:
bash battery.sh
##dring.py
[python3] Similar to the "at" command be only requires a python3 distribution (should also work with python2).
Dependencies:
python3 (or python2 if you really want ...)
Syntax:
python3 dring.py (hh:mm | hh mm)
Example:
python3 dring.py 08:30 mplayer ~/Music/Summertime.mp3
##grooveshark.sh
[bash] Very basic control of Grooveshark through command line (and therefore with keyboard shortcuts if you configure it). It basically get the id of a window containing "Grooveshark" and sends the command you want to it. If not found, opens a new firefox window (you can change it by changing Firefox into any other browser).
Dependencies:
xdotool
Syntax:
bash grooveshark.sh
Example:
# Next song
bash grooveshark.s ctrl+Right
# Pause
bash grooveshark.sh space
# Lower volume
bash grooveshark.sh ctrl+Down
##flac2mp3.sh
[shell] Finds all flac files in directory and convert it to mp3, conserving the id3 tags. You need to have installed flac and some codex for mp3.
Syntax:
bash flac2mp3.sh
##synergy.sh
[bash] Establish a synergy client-server between two computers. The server is behind a firewall or any uncrossable device.
Launch this script on the server side and replace the paramaters by those who fits. The client_adress has to be a reachable adress for the server.
TODO : support error and don't display a successfull message in all cases (which is really stupid).
Dependencies :
synergy, ssh, zenity (optional)
Syntax:
bash synergy.sh