Skip to content
Snippets Groups Projects
Commit a5cb550a authored by Stephanie Briere Americo's avatar Stephanie Briere Americo
Browse files

Solve merge conflict

parents 1386bd52 f2bed667
No related branches found
No related tags found
1 merge request!5SCRUM#337: Associate seat to the correct output (monitor)
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
# For input devices, it uses /proc/bus/input/devices # For input devices, it uses /proc/bus/input/devices
# For video cardes, it uses the "discover" package. # For video cardes, it uses the "discover" package.
<<<<<<< HEAD
=======
# TODO: find a decent way to do all this.
>>>>>>> f2bed6673c6e31075587f1e43c5fb606dbc48f78
DISCOVER=/sbin/discover DISCOVER=/sbin/discover
# This function prints the physical addresses of the mice found # This function prints the physical addresses of the mice found
......
...@@ -70,20 +70,13 @@ find_keyboard () { ...@@ -70,20 +70,13 @@ find_keyboard () {
# Write in configuration file # Write in configuration file
if [[ $fKey -gt 1 ]]; then if [[ $fKey -gt 1 ]]; then
echo "$wNum : ${OUTPUTS[$((wNum-1))]}"
echo -e "[Seat:$SEAT_NAME]\nxserver-command=xephyr-wrapper :90.0 -output ${OUTPUTS[$((wNum-1))]}\n" >> configuracao echo -e "[Seat:$SEAT_NAME]\nxserver-command=xephyr-wrapper :90.0 -output ${OUTPUTS[$((wNum-1))]}\n" >> configuracao
fi fi
echo "*************** SAINDO"
exit 1 exit 1
else else
echo "CAN NOT FIND KEYBOARD" echo "CAN NOT FIND KEYBOARD"
echo "*************** SAINDO"
exit 0 exit 0
fi fi
echo "*************** SAINDO"
} }
\ No newline at end of file
...@@ -152,4 +152,5 @@ done ...@@ -152,4 +152,5 @@ done
# Cleans the system by killing all the processes and files it has created # Cleans the system by killing all the processes and files it has created
kill_jobs kill_jobs
exit 0 exit 0
...@@ -47,7 +47,6 @@ create_window () { ...@@ -47,7 +47,6 @@ create_window () {
# Creates a new window for writing on this output # Creates a new window for writing on this output
WINDOW_NAME=w$(($WINDOW_COUNTER+1)) WINDOW_NAME=w$(($WINDOW_COUNTER+1))
$NEW_WINDOW $SCREEN_RESOLUTION+0+0 $WINDOW_NAME & $NEW_WINDOW $SCREEN_RESOLUTION+0+0 $WINDOW_NAME &
#sleep 1
# Try to access the window # Try to access the window
xwininfo -name $WINDOW_NAME xwininfo -name $WINDOW_NAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment