summaryrefslogtreecommitdiff
path: root/bin/set-screen
diff options
context:
space:
mode:
Diffstat (limited to 'bin/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"