Skip to content
Snippets Groups Projects
Commit 9308a4ed authored by Lucas Vinicius Semprebom Gonçalves's avatar Lucas Vinicius Semprebom Gonçalves
Browse files

le-proinfodata: terminated

parent 02ca23aa
No related branches found
No related tags found
No related merge requests found
......@@ -18,54 +18,48 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
F_MULT="/tmp/.mult.lock"
F_LOCK="/tmp/.dialog.lock"
F_INEP="/opt/seed_mec/SEED2/client/conf/inep"
BACKGROUND="/usr/share/backgrounds/le5-wallpaper1600X1200.png"
LE_EDUBAR_POS="/usr/share/gnome/autostart/le-edubar_position.sh"
MOUSE_ID=$(xinput | grep Mouse | sed -e 's/^.*id=//' -e 's/\s.*$//')
#KEYBOARD_ID=$(xinput | grep Keyboard | sed -e 's/^.*id=//' -e 's/\s.*$//')
function enable_mouse () {
xmodmap -e "pointer = default"
xmodmap -e "keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L"
#Bug userfull
#xinput set-prop $MOUSE_ID "Device Enabled" 1
}
function disable_mouse () {
if [[ -z "$1" ]]; then
# Disable mouse right-click
xmodmap -e "pointer = 1 2 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32"
xmodmap -e "keycode 64 = "
else
#BUg userful
#xinput set-prop $MOUSE_ID "Device Enabled" 0
# Disable mouse right-click and left-click
xmodmap -e "pointer = 0 2 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32"
xmodmap -e "keycode 64 = "
fi
}
function keyboard () {
#BUG USERFULL
#xinput set-prop $KEYBOARD_ID "Device Enabled" $1
# Disable keyboard control-button
if [[ -z "$1" ]]; then
xmodmap -e 'remove Control = Control_L'
else
xmodmap -e 'add Control = Control_L'
fi
}
function call_dialog_inep_mult_off () {
#Disable mouse right-click
# Disable mouse right-click
disable_mouse
#Set background
# Set background
xli -onroot -fillscreen $BACKGROUND
dialog_inep.sh
#Reset background to default
# Reset background to default
xli -onroot -background black
#Enable mouse right-click
# Enable mouse right-click
enable_mouse
}
......@@ -120,15 +114,15 @@ function call_dialog_inep_mult_on () {
}
function warning_dialog_inep_on () {
# Disable user interaction
disable_mouse "1"
#disable_keyboard
keyboard
while [ ! -e $F_LOCK ]; do
echo wait
sleep 1
done | zenity --progress --pulsate --no-cancel --auto-close --title="INEP" \
--text="Aguarde a configuração do PROINFODATA"
#enable_keyboard
# Enable user interaction
keyboard "1"
enable_mouse
}
......
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