Some shell scripts I've written, all licensed GPLv3 unless otherwise stated.
What each script does:
| fans | fans <rpm of first fan> [rpm of second fan, if omitted first arg is applied to both fans] |
E.g. fans 2000, fans 1000 1500 |
|---|---|---|
Changes the speed of the fans on my Corsair H110i GT via printf'ing directly into its /dev/hidraw device. I believe with some adjustments it should work on other Corsair Hydro series liquid cooling systems, but no guarantees. |
||
| img | img <image files...> |
E.g. img photo001.jpg photo002.jpg |
Displays images in the terminal in 24bit colour and using half-height block characters ▄. Uses imagemagick so supports anything that does. |
||
| s |
Log: log [journalctl args]Trailing service log: log [service name]Following commands can be prepended with u for user services:Service status: s <service name>Start service: start <service name>Stop service: stop <service name>Restart service: restart <service name>Start inactive or stop active service: toggle <service name>Enable starting service at boot: stay <service name>Disable starting service at boot: leave <service name>Reload systemd unit files: reloadReload service's config: reload <service name>
|
E.g. s, restart sshd, toggle transmission, us sunshine, ustart sunshine |
The Simple Short Service Script is an easier to type alternative to systemd's verbose systemctl for controlling services. Place s in your bin folder and create these symbolic links to it for i in log {u,}{start,stop,restart,toggle,stay,leave,reload}; do sudo ln -s /usr/local/bin/{s,$i}; done. |
||