summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2017-03-16 10:13:50 +0000
committerGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2017-03-16 10:13:50 +0000
commit6567fc7645c5fb14464d5ca15ad564958cb87be0 (patch)
tree5ee68dc39afc5831c76911a6a85b4552d53983ac
parentvarious pieces (diff)
downloadmisc-scripts-6567fc7645c5fb14464d5ca15ad564958cb87be0.tar.gz
misc-scripts-6567fc7645c5fb14464d5ca15ad564958cb87be0.tar.bz2
misc-scripts-6567fc7645c5fb14464d5ca15ad564958cb87be0.zip
pre-command for set-screen
-rwxr-xr-xbin/set-screen3
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"