slitaz-tools diff tinyutils/tazkeymap @ rev 939

tazbox: fix subox icon when ~/.local/share/applications is absent; fix working with freegeoip; write full list of icons used; all other files: 2015 and insert blank lines.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 17 07:35:02 2015 +0300 (2015-04-17)
parents 5bb075010572
children 3be081525506
line diff
     1.1 --- a/tinyutils/tazkeymap	Wed Nov 05 23:22:01 2014 +0100
     1.2 +++ b/tinyutils/tazkeymap	Fri Apr 17 07:35:02 2015 +0300
     1.3 @@ -3,14 +3,17 @@
     1.4  # Tazkeymap - SliTaz GNU/Linux keymap config using loadkeys and dialog boxes.
     1.5  # Configuration file is: /etc/keymap.conf
     1.6  #
     1.7 -# Copyright (C) 2008-2014 SliTaz GNU/Linux - BSD License
     1.8 +# Copyright (C) 2008-2015 SliTaz GNU/Linux - BSD License
     1.9  #
    1.10  # Author: Christophe Lincoln <pankso@slitaz.org>
    1.11  #
    1.12 +
    1.13  . /lib/libtaz.sh
    1.14  export TEXTDOMAIN='slitaz-tools' #i18n
    1.15  
    1.16 +
    1.17  # List all keymaps.
    1.18 +
    1.19  list_keymaps() {
    1.20  	cd /usr/share/kbd/keymaps/i386
    1.21  	# We first need a list to sort and then use \n for Yad list.
    1.22 @@ -21,7 +24,9 @@
    1.23  	done
    1.24  }
    1.25  
    1.26 +
    1.27  # Load the selected kmap file from /usr/share/kbd/keymaps or Busybox kmaps.
    1.28 +
    1.29  load_keymap() {
    1.30  	if [ -x /bin/loadkeys ]; then
    1.31  		loadkeys $kmap
    1.32 @@ -30,12 +35,15 @@
    1.33  	fi
    1.34  }
    1.35  
    1.36 +
    1.37  # Config /etc/keymap.conf and update Xorg keyboard config
    1.38 +
    1.39  system_config() {
    1.40  	echo "$kmap" > /etc/keymap.conf
    1.41  	tazx keyboard
    1.42  }
    1.43  
    1.44 +
    1.45  case "$1" in
    1.46  	info)
    1.47  		_n 'Config file:'; echo " /etc/keymap.conf"