Author |
Message |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 06 Jan 2010, 07:48 Post subject:
|
|
...No there was a post earlier in the thread by some one else.
/ect/X11/xorg.conf
Code: |
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc102"
Option "XkbLayout" "gb" #xkeymap0
Option "XkbOptions" "altwin:menu"
Option "XkbOptions" "altwin:super_win"
EndSection
|
now the:
Code: |
Option "XkbOptions" "altwin:menu"
Option "XkbOptions" "altwin:super_win
|
Options get lost when you go to another computer where xorg generates a new xorg.confg. So what file do I need to edit to keep those options?
Last edited by abushcrafter on Thu 07 Jan 2010, 14:18; edited 1 time in total
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Wed 06 Jan 2010, 08:46 Post subject:
|
|
I haven't had a proper look at how it works, but I suspect you could either add them to this part of /usr/sbin/xorgwizard (in which case they'd have to be properly quoted) Code: | if [ "$XSECTION" = "InputDevice" -a "$IDENTIFIER" = "Keyboard0" ] ; then
TEMPSECTION="$TEMPSECTION
Option \"XkbRules\" \"xorg\"
Option \"XkbModel\" \"pc102\"
Option \"XkbLayout\" \"$XKEYMAP\" #xkeymap0" |
Or maybe you could add an InputDevice section to /etc/X11/xorg.conf0
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 06 Jan 2010, 09:12 Post subject:
|
|
disciple wrote: | I haven't had a proper look at how it works, but I suspect you could either add them to this part of /usr/sbin/xorgwizard (in which case they'd have to be properly quoted) Code: | if [ "$XSECTION" = "InputDevice" -a "$IDENTIFIER" = "Keyboard0" ] ; then
TEMPSECTION="$TEMPSECTION
Option \"XkbRules\" \"xorg\"
Option \"XkbModel\" \"pc102\"
Option \"XkbLayout\" \"$XKEYMAP\" #xkeymap0" |
Or maybe you could add an InputDevice section to /etc/X11/xorg.conf0 |
Arr so that's what I did wrong. I will try this!
disciple wrote: |
Or maybe you could add an InputDevice section to /etc/X11/xorg.conf0 |
tried that all ready and it failed .
|
Back to top
|
|
 |
joel

Joined: 26 Feb 2009 Posts: 185 Location: Buffalo, NY & Nottingham, England
|
Posted: Wed 06 Jan 2010, 14:07 Post subject:
|
|
I know it seems simple, but as a work around you could just create a base xorg.conf with the options you want and then copy it over when switching to a different computer.
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 06 Jan 2010, 14:12 Post subject:
|
|
sorry got it working. (there was a lot of yee, yee, yee, yee, yee, yee and )
To joel: no that is not practical for me as I switch between a lot of computers!
|
Back to top
|
|
 |
joel

Joined: 26 Feb 2009 Posts: 185 Location: Buffalo, NY & Nottingham, England
|
Posted: Wed 06 Jan 2010, 14:20 Post subject:
|
|
yea if its more than a few it'd be a hassle, how'd you fix it?
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 06 Jan 2010, 14:23 Post subject:
|
|
Look at disciple's post.
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Wed 06 Jan 2010, 19:39 Post subject:
|
|
I have found that I can only have one option enabled at a time . How do I enable both the win and menu keys?
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Thu 07 Jan 2010, 14:16 Post subject:
|
|
This is being a right pain. I can't find any documentation on how I can have the windows and menu keys enabled at the same time! In-fact the Xorg website is awful to browse! Does anyone know how to fix this problem?
Btw how do I set/(does one already exist?) a hotkey for the right click menu?
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Thu 07 Jan 2010, 16:53 Post subject:
|
|
Quote: | Btw how do I set/(does one already exist?) a hotkey for the right click menu? |
That's what the menu key is.
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Thu 07 Jan 2010, 17:37 Post subject:
|
|
I know but If I can only have the menu key or the windows keys then I would like the windows keys with a hotkey for the right click menu function, But I prefer to get both working.
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Thu 07 Jan 2010, 17:55 Post subject:
|
|
I think even if your keyboard didn't physically have a menu key you could use xmodmap to use another key for one.
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Thu 07 Jan 2010, 18:06 Post subject:
|
|
Thanks for your opinion. So could you help me with that? I have tried reading up but have not had much success.
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Sun 10 Jan 2010, 03:24 Post subject:
|
|
Say you want to use the Print Scrn key:
- open a terminal
- run (Not in many recent puppies - get it at http://www.murga-linux.com/puppy/viewtopic.php?p=244431#244431)
- press the Print Scrn key and see what keycode it says is assigned to that key. For me it is 111.
- put a line in ~/.Xmodmap like this and save the file
- reboot the computer (or probably just restart X, but I'm not certain), or run (IIRC)
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: Sun 10 Jan 2010, 11:47 Post subject:
|
|
Thanks very muchly. I'm happy .
Btw does puppy use the print screen key by default for something?
|
Back to top
|
|
 |
|