From e0297d280bea96119bbcca922b3c66071c98907e Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 8 May 2022 14:52:51 +0200 Subject: [PATCH] Update dot_config/i3/executable_relative_workspace.sh --- dot_config/i3/executable_relative_workspace.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dot_config/i3/executable_relative_workspace.sh b/dot_config/i3/executable_relative_workspace.sh index d2a8be5..da6b716 100644 --- a/dot_config/i3/executable_relative_workspace.sh +++ b/dot_config/i3/executable_relative_workspace.sh @@ -3,8 +3,9 @@ # Required jq to be installed with # pacman -S jq arandr -# Move to layout.sh exported with arandr -SCREENS=("DP-3" "DP-1" "DP-5") +source ~/.config/i3/common_var.sh +source $GENERATED_MONITOR_CONF + SCREEN_NUMBER=${#SCREENS[@]} # Set command from current WM @@ -32,7 +33,7 @@ done DESIRED_WORKSPACE=$(($SCREEN_INDEX * 10 + $1)) # To run in DRY RUN uncomment line in below -# MSG_COMMAND=echo +MSG_COMMAND=echo if [[ "$2" == "move" ]]; then $MSG_COMMAND move container to workspace number $DESIRED_WORKSPACE else