mikshaw


Group: Members
Posts: 4856
Joined: July 2004 |
 |
Posted: Feb. 29 2008,02:41 |
 |
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
|