le-proinfodata: Fix identation for file exec_dialog.sh

Signed-off-by: 's avatarDiego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 0f78bb5c
...@@ -24,39 +24,39 @@ BACKGROUND="/usr/share/backgrounds/le5-wallpaper1600X1200.png" ...@@ -24,39 +24,39 @@ BACKGROUND="/usr/share/backgrounds/le5-wallpaper1600X1200.png"
LE_EDUBAR_POS="/usr/share/gnome/autostart/le-edubar_position.sh" LE_EDUBAR_POS="/usr/share/gnome/autostart/le-edubar_position.sh"
function enable_mouse () { function enable_mouse () {
xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9" & xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9" &
xmodmap -e "keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L" & xmodmap -e "keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L" &
} }
function disable_mouse () { function disable_mouse () {
xmodmap -e "pointer = 1 2 11 4 5 6 7 8 9" & xmodmap -e "pointer = 1 2 11 4 5 6 7 8 9" &
xmodmap -e "keycode 64 = " & xmodmap -e "keycode 64 = " &
} }
function call_dialog_inep_mult_off () { function call_dialog_inep_mult_off () {
#Disable mouse right-click #Disable mouse right-click
disable_mouse disable_mouse
#Set background #Set background
xli -onroot -fillscreen $BACKGROUND xli -onroot -fillscreen $BACKGROUND
dialog_inep.sh dialog_inep.sh
#Reset background to default #Reset background to default
xli -onroot -background black xli -onroot -background black
#Enable mouse right-click #Enable mouse right-click
enable_mouse enable_mouse
} }
function call_dialog_inep_mult_on () { function call_dialog_inep_mult_on () {
#Disable mouse right-click #Disable mouse right-click
disable_mouse disable_mouse
dialog_inep.sh dialog_inep.sh
#Get PID #Get PID
P_EDUBAR=$(ps aux | grep $LE_EDUBAR_POS | tr -s -t " " "|" | cut -d"|" -f2) P_EDUBAR=$(ps aux | grep $LE_EDUBAR_POS | tr -s -t " " "|" | cut -d"|" -f2)
P_GPANEL=$(pgrep gnome-panel) P_GPANEL=$(pgrep gnome-panel)
#Enable Edubar and Panel #Enable Edubar and Panel
kill -cont $P_GPANEL kill -cont $P_GPANEL
kill -cont $P_EDUBAR kill -cont $P_EDUBAR
#Enable mouse right-click #Enable mouse right-click
enable_mouse enable_mouse
} }
export LANG="pt_BR.UTF-8" export LANG="pt_BR.UTF-8"
...@@ -74,18 +74,18 @@ fi ...@@ -74,18 +74,18 @@ fi
sleep 3 sleep 3
# Check whether the computer is running on a the multiterminal # Check whether the computer is running on a the multiterminal
if dpkg --get-selections "le-multiterminal" | grep -q 'install$'; then if dpkg --get-selections "le-multiterminal" | grep -q 'install$'; then
# In the first call (lightdm) in multiterminal this is script must leave, to be called again after. # In the first call (lightdm) in multiterminal this is script must leave, to be called again after.
if [ -f $F_MULT ];then if [ -f $F_MULT ];then
touch $F_LOCK touch $F_LOCK
echo "0" > $F_LOCK echo "0" > $F_LOCK
call_dialog_inep_mult_on call_dialog_inep_mult_on
else else
touch $F_MULT touch $F_MULT
exit 0 exit 0
fi fi
else else
touch $F_LOCK touch $F_LOCK
echo "1" > $F_LOCK echo "1" > $F_LOCK
call_dialog_inep_mult_off call_dialog_inep_mult_off
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment