| Description: | A Bash module for creating generic state/profile managers. |
| Latest Version: | 2018 |
| Source Code: | src/ |
| Architecture: |
|
| Dependencies: |
|
| Optional Dependencies: |
|
| Arch Repositories: |
|
| AUR Page: | bash-statemgr |
| Arch Forum Thread: | 166530 |
| Tags: |
This is a general state manager for writing custom scripts. It provides a common interface for saving and loading states along with commands for managing saved states. See the examples below for details.
See the list of statemgr-tagged projects.
This is a general state manager for Bash scripts. To use it, you must define the following in a separate script and then source the statemgr file:
The following will manage desktop background images set with
feh.
#!/bin/bash
name_=feh
function save_state_()
{
cp ~/.fehbg "$1"
}
function load_state_()
{
sh "$1"
}
See alsaequal-mgr and xrandr-mgr for other
examples.