~luxferre/nnscripts

no-nonsense shell scripts
0f0d6068 — Luxferre 6 months ago
updated nnkeys.conf example
3a2f1793 — Luxferre 6 months ago
updated nnkeys conf example
fd33a196 — Luxferre 6 months ago
introduced daemon mode for nnlight

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~luxferre/nnscripts
read/write
git@git.sr.ht:~luxferre/nnscripts

You can also use your local clone with git send-email.

#no-nonsense shell scripts

This is a set of (mostly Linux-specific unless stated otherwise) various useful shell scripts that aim to be lightweight and portable across different shells. All scripts were tested on busybox sh and oksh. The list is going to be updated from time to time. Please see the source code comments for usage guides.

#Current script list

  • nnwifi.sh: easily set up a WiFi connection (depends on ip, iw, wpa_supplicant and udhcpc)
  • nnlight.sh: control laptop screen brightness (depends on nawk or other AWK command)
  • nnstatus.sh: output useful status information to dzen2 panel (Xorg-specific but can be rewritten to use any other panel of your choice, depends on nawk or other AWK command, iw for WLAN stats, amixer for volume controls and xkb-switch for keyboard layout controls)
  • nnstatus-stdout.sh: same as nnstatus.sh but without interactivity and keyboard layout functionality, suitable for use in dvtm, a4 and other terminal-based tools with configurable status bar, as it just outputs the information line into the stdout
  • nnkeys.sh: shell-based multimedia keys manager daemon with a separate configuration file (see nnkeys.conf for an example), depends on evtest, pkill and AWK
  • ghmd.sh: single-script solution for basic self-hosted Git repository management including setting up the Git server, private and public-readable repos and their metadata (see ghmd.sh help for all information)

#Credits

All scripts in this repo were created by Luxferre starting from 2023 and released into public domain.

Made in Ukraine.