1
0
Fork 0

Update dot_config/i3/executable_relative_workspace.sh

This commit is contained in:
Florian RICHER 2022-05-08 14:52:51 +02:00
parent cbabbf5ac3
commit e0297d280b

View file

@ -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