8

statemgr - create state management scripts (post them here)

view full story
linux-howto

https://bbs.archlinux.org – IntroductionI have caught myself basically rewriting the same script multiple times to manage some sort of state. For example, xrandr screen layouts for different locations, alsaequal states for different audio configurations, etc. It was time to generalize the functionality and pack it into a module.I thus give you statemgr. To use it, all you need to do is define a name, a save function, and a load function. The module will then take care of the rest.Example: fehbg-mgrHere's a simple example for managing backgrounds with feh (provided in the fehbg-mgr package):#!/usr/bin/bash # identif (HowTos)