1
0
Fork 0

Update dot_config/i3/executable_on_i3_start.sh

This commit is contained in:
Florian RICHER 2022-05-08 18:57:42 +02:00
parent 5611752f37
commit 424fe10453

View file

@ -5,6 +5,7 @@ source $GENERATED_MONITOR_CONF
$MONITOR_CONF # Apply configured layout $MONITOR_CONF # Apply configured layout
function process_workspace () { function process_workspace () {
WORKSPACE_NUMBER=$(echo $1 | cut -d ',' -f1) WORKSPACE_NUMBER=$(echo $1 | cut -d ',' -f1)
OUTPUT_NAME=$(echo $1 | cut -d ',' -f2) OUTPUT_NAME=$(echo $1 | cut -d ',' -f2)
@ -18,6 +19,7 @@ function process_workspace () {
fi fi
} }
function reconfigure_workspaces () {
# Create new workspace for multiple screen at first index of relative index # Create new workspace for multiple screen at first index of relative index
# Ex: SCREEN 2 => WORKSPACE NUMBER => 20 # Ex: SCREEN 2 => WORKSPACE NUMBER => 20
for i in $(seq 2 $SCREEN_NUMBER); do for i in $(seq 2 $SCREEN_NUMBER); do
@ -33,4 +35,7 @@ $MSG_COMMAND -t get_workspaces \
while IFS=$'\n' read -r c; do while IFS=$'\n' read -r c; do
process_workspace $c process_workspace $c
done done
}
# reconfigure_workspaces