#!/bin/bash #Panel for BigLinux # #Authors: # Bruno Goncalves Araujo # #License: GPLv2 or later ################################################# . /usr/share/bigcontrolcenter/default/theme-categories.sh.htm #Translation export TEXTDOMAINDIR="/usr/share/locale-langpack" export TEXTDOMAIN=bigcontrolcenter-hardware-keyboard echo ' ' title=$"Teclado, mouse e touchpad" apply=$"Aplicar" close=$"Sair" tip_abnt=$"Padrao utilizado por quase todos os computadores vendidos no Brasil" tip_usa=$"Padrao dos Estados Unidos para idiomas que nao utilizam acentos" tip_usaint=$"Padrao dos Estados Unidos com suporte a acentos, em geral notebooks importados.

* Recomendado ativar a opcao utilizar cedilha com acento agudo + C" tip_es=$"Padrao na Espanha" tip_pt=$"Padrao em Portugal" tip_manual_example=$"Exemplo de comando: setxkbmap -model pc105 -layout br -variant" tip_auto=$"Em geral durante a instalacao ja e especificado o modelo correto" tip_manual=$"Informe o comando setxkbmap especifico para seu teclado" tip_cedilla=$"Importante principalmente em Notebooks com teclado USA Internacional.

* Para essa opcao entrar em operacao e necessario reiniciar o computador ou encerrar a sessao e efetuar login novamente" ############### # Apply options ############### ################ # Cedilha ################ if [ -e "/etc/X11/Xsession.d/85big-cedilla-fix" ] then cedilla_check="checked" fi ################ # AUTO ################ if [ ! -e "/etc/X11/Xsession.d/84big-keyboard-layout" ] then auto_check="checked" fi ################ # ABNT_PADRAO ################ if [ "$(grep ABNT_PADRAO /etc/X11/Xsession.d/84big-keyboard-layout)" != "" ] then abnt_check="checked" fi ################ # USA_PADRAO ################ if [ "$(grep USA_PADRAO /etc/X11/Xsession.d/84big-keyboard-layout)" != "" ] then usa_check="checked" fi ################ # USA_INT ################ if [ "$(grep USA_INT /etc/X11/Xsession.d/84big-keyboard-layout)" != "" ] then usaint_check="checked" fi ################ # ES_PADRAO ################ if [ "$(grep ES_PADRAO /etc/X11/Xsession.d/84big-keyboard-layout)" != "" ] then es_check="checked" fi ################ # PT_PADRAO ################ if [ "$(grep PT_PADRAO /etc/X11/Xsession.d/84big-keyboard-layout)" != "" ] then pt_check="checked" fi ################ # MANUAL ################ if [ "$(grep "# MANUAL" /etc/X11/Xsession.d/84big-keyboard-layout)" != "" ] then manual_check="checked" fi echo "$title" #header open_header echo "$title" '
' $"Layout de teclado, velocidade e ate controlar o mouse com a webcam." close_header #body echo '

' echo $"Esse configurador estipula a configuracao do teclado para todos os ambientes graficos do sistema." # ABNT = setxkbmap -model pc105 -layout br -variant # USA = setxkbmap -model pc105 -layout us -variant # USAINT = setxkbmap -model pc105 -layout us -variant intl # ES = setxkbmap -model pc105 -layout es -variant # PT = setxkbmap -model pc105 -layout es -variant echo "

" echo "

' echo "





" if [ "$manual_check" = "checked" ] then echo '

' else echo '" echo "
"