diff options
author | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2017-03-16 10:13:50 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2017-03-16 10:13:50 +0000 |
commit | 6567fc7645c5fb14464d5ca15ad564958cb87be0 (patch) | |
tree | 5ee68dc39afc5831c76911a6a85b4552d53983ac /bin/set-screen | |
parent | various pieces (diff) | |
download | misc-scripts-6567fc7645c5fb14464d5ca15ad564958cb87be0.tar.gz misc-scripts-6567fc7645c5fb14464d5ca15ad564958cb87be0.tar.bz2 misc-scripts-6567fc7645c5fb14464d5ca15ad564958cb87be0.zip |
pre-command for set-screen
Diffstat (limited to 'bin/set-screen')
-rwxr-xr-x | bin/set-screen | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/set-screen b/bin/set-screen index 9d53edd..edecc26 100755 --- a/bin/set-screen +++ b/bin/set-screen @@ -31,6 +31,9 @@ function run_display_state_commands() { dir="$(display_state_dir)" if [[ -x "${dir}/command" ]]; then + if [[ -x "${CONFIG_DIR}/pre-command" ]]; then + "${CONFIG_DIR}/pre-command" + fi "${dir}/command" if [[ -x "${CONFIG_DIR}/post-command" ]]; then "${CONFIG_DIR}/post-command" |