Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 30 Oct 2014, 14:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
KLM - Keyboard Layout Manager
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message

Joined: 27 Mar 2010
Posts: 831

PostPosted: Tue 26 Jun 2012, 17:39    Post_subject:  KLM - Keyboard Layout Manager
Sub_title: KLM in "Quirky Linux 1.40" ! only script to install

Languages English and Russian.



# KLM = Keyboard Layout Manager
# # #
sed -i".tmp" '/"KLayout"/d' /root/Choices/ROX-Filer/PuppyPin ;
echo '[Desktop Entry]' > /usr/share/applications/KdLt.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/KdLt.desktop ;
echo 'Name=Keyboard Layout - US<>RU' >> /usr/share/applications/KdLt.desktop ;
echo 'Comment=The way of keyboard layout setup' >> /usr/share/applications/KdLt.desktop ;
echo "Exec=bash -c '\`Xdialog --title \"Change layout\" --no-tags --radiolist \"Keyboard layouts\" 13 31 10 \"rxvt -e setxkbmap -option grp:shifts_toggle,grp_led:scroll us,ru\" -=English=- on \"rxvt -e setxkbmap -option grp:shifts_toggle,grp_led:scroll ru,us\" -=Russian=- off 2>&1\` ; yaf-splash -text \`setxkbmap -print|grep xkb_symbols|cut -d+ -f2\`'" >> /usr/share/applications/KdLt.desktop ;
echo 'Terminal=false' >> /usr/share/applications/KdLt.desktop ;
echo 'Type=Application' >> /usr/share/applications/KdLt.desktop ;
echo 'Categories=X-DesktopCountry' >> /usr/share/applications/KdLt.desktop ;
echo 'GenericName=Keyboard Layout' >> /usr/share/applications/KdLt.desktop ;
echo 'Icon=/usr/share/pixmaps/xfdiff-icon.png' >> /usr/share/applications/KdLt.desktop ;
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#echo '<icon x="928" y="128" label="KLayout">/usr/share/applications/KdLt.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="928" y="116" label="KLayout">/usr/share/applications/KdLt.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage 'Icon for the -=Keyboard Layout=- has been created.' `jwm -restart`

Edit: 2012, jun 27.

Permissions for -=Install_KLM--sr0.sh=- were changed as shown:

cd /place_where_Install_KLM--sr0.sh_is_located ; chmod u+x Install_KLM--sr0.sh

A script's content can be copied into text editor by means of <Quote> mode.

An attempt to launch -=RXVT=- with needful font

find / -name fonts.alias
cat /usr/X11R7/lib/X11/fonts/misc/fonts.alias
rxvt -fn lucidasanstypewriter-12

  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0461s ][ Queries: 11 (0.0055s) ][ GZIP on ]