From 6567fc7645c5fb14464d5ca15ad564958cb87be0 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 16 Mar 2017 10:13:50 +0000 Subject: pre-command for set-screen --- bin/set-screen | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.3