Update dot_config/i3/executable_relative_workspace.sh
This commit is contained in:
parent
cbabbf5ac3
commit
e0297d280b
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue