Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account


Member Since 24 Feb 2014
Offline Last Active Feb 19 2021 01:49 PM

#108034 Unofficial Wineskin Project

Posted emendelson on 25 January 2019 - 02:31 AM

View PostGcenx, on 24 January 2019 - 01:56 AM, said:

This one I’m aware of but honestly I didn’t think anyone would enable the option if they had it enabled systemwide, I guess people may get confused believing this option only affects Wineskin and not the entire system.

I will see about adding a check in a future wrapper update so if it’s already enabled Wineskin will skip the option on startup/shutdown.

I distribute a Wineskin-based app that needs the F1-F12 keys, and I thought it would be a good idea to have this option turned on in the app, in case the user didn't have it turned on system-wide. If you can add a check in a future wrapper for the existing setting, that would be very helpful. Thank you again for this superb project.

#108014 Assign Alt to Option (not Cmd) in new versions

Posted emendelson on 16 January 2019 - 01:31 PM

View PostGcenx, on 16 January 2019 - 04:15 AM, said:

If you think that’s handy use wine 3.17 or higher, Command key functions like it does on macOS.
Both options are enabled by default on wrapper creation.

Thank you for letting me know about that! I gave up hoping they would ever make this default. This saves an enormous amount of trouble.

Thank you again!

#108012 Assign Alt to Option (not Cmd) in new versions

Posted emendelson on 16 January 2019 - 03:32 AM

View PostGcenx, on 16 January 2019 - 02:37 AM, said:

You really don't need to go through all that trouble as the macDriver already has that feature since Wine 1.7.4, I verified that tonight and added it as a feature to Wineskin-2.8.9Beta2

Thank you! I just downloaded this from GitHub and the "Map Option as Alt" option finally works (I think for the first time). This will save an enormous amount of trouble. Thank you again!

#101433 xmodmap question: how to make Cmd key act like Win key (not Alt key)?

Posted emendelson on 14 April 2014 - 08:10 AM

And here are full details on how to map the Windows Alt key to the Mac Option key, and the Windows Win key to the Mac Cmd key, in both the Mac driver and the X11 driver:


I hope someone finds this useful.

#100925 xmodmap question: how to make Cmd key act like Win key (not Alt key)?

Posted emendelson on 25 February 2014 - 11:02 PM

Thank you - that was one of the pages that let me find the solution. Part of the problem is that if you have Mavericks, and you don't have a separate X11 installed (and I don't), then you can't use the xmodmap utility directly, and have to create and edit the .Xmodmap file by hand.

After reading a lot of pages, I eventually came up with this: The contents of my .Xmodmap file are as follows:

! keycodes 63 and 71 and left and right command keys
! keycodes 66 and sixty-nine are left and right alt keys 

keycode 63 = Super_L
keycode 71 = Super_R
keycode 66 = Alt_L Meta_L
keycode <<<SEE NOTE BELOW>>> = Alt_R Meta_R

clear mod1
clear mod4

add mod1	= Alt_L Alt_R
add mod4	= Super_L Super_R

<<<THIS IS THE "NOTE BELOW">>> Weirdly - when I type in "keycode" and the numerals six and nine, the BBS software replaces the numerals six and nine with the word "number" (I suppose to discourage teen-age boys from posting things they shouldn't), but if you use this code, make sure to use "keycode six nine" with those last two words as numerals; the numerals belong where "<<<SEE NOTE BELOW>>>" appears in the code.

I'm not sure how much of this code is actually needed, but it seems to work.

For those who wonder how to get an .Xmodmap file into a Wineskin, here's one easy way. Create a text file like the one above and name it Xmodmap (no dot) and save it in the Frameworks folder of a Wineskin. Then open a terminal window with the Frameworks folder as the current directory and enter this command

cp Xmodmap .Xmodmap

(note the dot before the second filename) which creates the invisible .Xmodmap file as a copy of the visible Xmodmap file.

To open a terminal window on the Frameworks folder easily, go to System Preferences, Keyboard, Shortcut, and under Services, Files and Folders, add a checkmark next to New Terminal at Folder. Then, with the Frameworks folder selected in the Finder, ctrl-click and choose New Terminal at Folder from the Services menu.

The program I'm using uses Win+F11 and Win+F12 to specific functions, and these now work correctly with Cmd+F11 and Cmd+F12. What I want to do now is figure out some way to make Cmd+F1, F2, etc. do nothing at all. Right now, they act like F1, F2, etc., which is mildly annoying but not serious.

EDIT: In an earlier version of this post I wasn't certain that both Win keys worked correctly. I now see that they do work correctly.