Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: keymap selection improvement suggestion, keymap selection improvement suggestion< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 25 2008,15:05 QUOTE

The sbin directories are in dsl's path already, so I don't think that would make much difference

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
sander Offline





Group: Members
Posts: 4
Joined: Dec. 2007
Posted: Feb. 04 2008,09:44 QUOTE

I see the situation has improved much in 4.2.5, but I'm still missing an obvious way to just restart X. Maybe this could be added to the "DLS -> Exit" submenu?
Back to top
Profile PM 
bkil Offline





Group: Members
Posts: 6
Joined: Nov. 2006
Posted: Feb. 28 2008,18:28 QUOTE

Howdy!
I had the same observation. My solution to switching layout (Dvorak here too :D) was to create two xmodmap scripts and link them to the desktop by hand. :) Not the best aesthetically, but does the job in an instant, and without the need for a restart. Would it be possible to convert keymaps to xmodmaps on the fly...?

Regards,
bkil
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 29 2008,02:41 QUOTE

Quote
I'm still missing an obvious way to just restart X
Exit the window manager, or press Ctrl+Alt+Backspace, to shut down X. Type startx to restart X.

bkil:
There are many ways you can choose from multiple options; usually an easy way is to write a couple of lines of script.  For choosing one of two xmodmap files to use, you could include a prompt in .xinitrc:
Code Sample
echo "would you like Dvorak today? (Y|n)" && read answer
case "$answer" in
N|n) xmodmap $HOME/.Xmodmap-qwerty;;
*) xmodmap $HOME/.Xmodmap-dvorak;;
esac
Anything other than a response of "N" or "n" will use dvorak.

There are probably better ways, but this is the first thing that came to mind


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
8 replies since Jan. 23 2008,20:22 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: keymap selection improvement suggestion

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code