Git Product home page Git Product logo

powerkey's Introduction

PowerKey

MacBook keyboard with power key

Remap your Power key

PowerKey remaps your Apple MacBook, MacBook Pro or MacBook Air's Power key.

Remapping the Power key to Forward Delete ⌦ is the most popular replacement.

PowerKey can also be used to run a Script or Apple Script each time you tap the Power Key.

Forward Delete for Mac OS X

The Forward Delete key is extremely convenient when writing or coding, and you're probably already used to tapping it frequently on keyboards other than your MacBook's.

Use PowerKey to restore useful functionality to your Macbook's keyboard!

Purchase and Download

The release version of PowerKey.app can be purchased via Gumroad.

https://gumroad.com/l/powerkey

The release version of PowerKey is signed with our DeveloperID, making it easier to run by default on Mac OS X. Purchasing the code-signed release version of PowerKey will allow you to run the app without modifying your Mac's Gatekeeper security settings.

Purchasing PowerKey also supports continued development of the app!

PowerKey can also be installed by cloning this repo and building the app via Xcode.

PowerKey app on desktop

Does not prevent Shut Down!

Your computer will still sleep or shut down if you hold the Power key.

Be careful! PowerKey works best if you use a firm, hard tap to press the power key.

Don't hold the power key. Tap it!

Does not remap other keys to Power

PowerKey remaps your Power key to output one of the key replacements below.

This app does not remap other keys to function as a Power key.

PowerKey cannot be used to remap any keys other than the Power key.

Key Replacements

Choose from one of the following Power key replacements.

  • Delete (forward)
  • No Action
  • Delete (backspace)
  • Page Up
  • Page Down
  • Home
  • End
  • Help
  • Clear
  • Escape
  • Tab
  • Return
  • Enter
  • F13
  • Script or Apple Script

PowerKey replacements

Frequently Asked Questions

Pressing the Power key doesn't always work.

Apple has made mode-switching keys such as Caps-Lock and Power somewhat harder to accidentally press:

Mac Notebooks: Caps Lock modified to reduce accidental activation

You must firmly press the key for half-a-tick longer than a normal keypress for it to be recognized.

The display is turning off!

PowerKey doesn't modify the behavior of holding the power key.

Depending on how long you hold the power key, this may result in your display turning off, the computer going to sleep, or a forced shutdown.

When using PowerKey, be sure to only press the power key with a firm, hard tap.

But my MacBook has an Eject key!

The Eject key has been replaced by a Power key on the newer Macbook, Macbook Pro, and Macbook Air models that do not feature an optical drive.

But PowerKey does work with the Eject key as well, so you're in luck.

Your laptop's metal Power button (in the chassis) will actually work with this app as well, but it's up to you to decide if that's desirable.

I'm using OS X 10.9 Mavericks, and my Mac immediately goes to Sleep.

In OS X 10.9 Mavericks, tapping the power key immediately puts the computer to sleep.

This behavior has been corrected in later versions of OS X, so please take the time to upgrade from Mavericks if possible.

If using Mavericks, you will need to run an additional command to enable PowerKey. Please see Issue #14 for more information.

Support

If you have any issues or suggestions, please create a GitHub issue:

https://github.com/pkamb/PowerKey/issues

Credits

Photo of Macbook Pro keyboard by Kārlis Dambrāns:
https://www.flickr.com/photos/janitors/10037328385/

powerkey's People

Contributors

dlh avatar jdlien avatar pkamb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerkey's Issues

Inconsistent and erratic

I purchased PowerKey a few minutes ago, and it doesn't work very well. It only works about half the time I press it. Also, when I press the key multiple times in a row, it only works for the first one or two presses. Sometimes it randomly makes my computer go into Sleep mode. The behavior is erratic and inconsistent. I'm using a 2015 MacBook Pro with macOS Sierra. I have uninstalled PowerKey on Gumroad and I would like to request a refund please. Thank you.

Sierra

Or doesnt seem To work on Sierra any suggestions ?

Remap Eject key

I've removed the superdrive from my MBP to fit an SSD, so my eject key is pretty useless. Can this be modified to support mapping of the eject key to forwards delete?

PowerKey for old Macs

Hi i have macbook 2009/2010 year (both) they have eject button not power button. So i want replace this eject button with power button, how i can do this? for example i will replace my superDrive with hdd and i don't need no more this button same time i want move off my mac outside from table and not go anytime to power it on.

Sorry for my english...

power key interferes with control + control function in papers 3 citations

If power key is running then the control + control keyboard shortcut for papers 3 (a program for storing and citing references in academic writing) magic citations will not function. You can still use the control + m shortcut in citations if you enable it in papers citation preferences. however if you want to use control + control you need to quit power key and also make sure it does not run at startup then restart the computer.

Remap to F13

I like to then map F13 to things like a drop-down terminal, etc.

map key to "Lock Screen"

I would like to be able to lock the screen when I press the eject button. Having a nice keyboard shortcut like Windows users have win+L key combination would be very handy in a corporate environment.

Macbook 2012 not recognizing Powerkey

Hello,
My silver power button (not within keyboard) no longer functions.
I bought powerkey in order to remap, but the app is somehow not being recognized, or my computer does not respond. I downloaded the powerkey app, and set the powerkey to various keys - escape, tab, f13. none respond. I have tried with caps pressed and not.
Is there something I need to do differently?
Thank you!

Re-maping the key left to backspace?

Hi,
on German keyboard layouts (used in here Austria and also in Germany), we got the accents (acute and grave) next to the backspace key. Nobody understands why, because those accents are hardly every used in German. So, this key (right next to the backspace key!) is the dream place for delete.

I am desperately trying to re-map this key (tried ctrl-d using ukelele, also some other fiddling with DefaultKeyBinding.dict), but it does not seem to work reliably. Do you see an option to help us out, by creating a version that re-maps that key?
I guess this should be far easier than using the power key, and I am convinced this would make you a national hero among Mac users here in Austria and Germany... ;-)

Kind regards from Vienna,
Philipp

Toggle keydown on power tap?

I use BetterTouchTool to bind Hyper+X to open applications, so for instance

cmd+option+control+shift+c for Chrome
cmd+option+control+shift+f for Firefox
etc...

I use KeyRemap4MacBook to bind fn to "Hyper" (cmd+option+control+shift) and it works pretty well until I want to bind on the right side of the keyboard; for instance, fn+o for Opera. KeyRemap4MacBook has options to remap the power key and one option for "Old ADB Keyboard" that binds it to fn but that doesn't work for the MacBook keyboard of course.

My understanding is that pressing and holding the power key + another key isn't possible... So that's what I'm thinking maybe it's possible to "tap" the power key to toggle the Hyper until the next individual key (o) is pressed.

Didn't see any issues about toggling on power key tap so hope this issue is justified, ty 👍

Force quit

I think adding a force quit command to the available options would be useful.

Remap into Lock or Swith Off the Screen

Hi pkamb,

on OSX there is no simple shortcut to Lock the Screen or Switch Off the screen.
The Power Key on Mavericks put it to sleep disconnecting from the WiFi or Ethernet connection and that is so bad for me :(

I really like to remap the Power Key into:
⇧ + ⌃ + Fn + Power Key

Thank you!

Eject to F13 not working as expected in Sierra

Hi, I've got the eject mapped to F13 on my 2012 MBP. I tested it a bit OS X Yosemite and it worked somewhat sporadically. However, on OS Sierra, I only get an error tone when pressed. The way I use it is to have the F13 activate an automator workflow application. I use triggers in Quicksilver to assign this application to F13.

In Quicksilver, pressing the Eject/F13 seems to register fine and I'm able to assign the F13 as a trigger. However, when I go to actually use it, it gives the error tone and does not actually launch the application as it is assigned to do.

Previously, I used to use Karabiner +Quicksilver in the same way where F13 launched the specified workflow and it worked flawlessly. I also used ^F13 or shift+F13 to launch another workflow. This doesn't seem to be working with PowerKey. Any idea what the limitation is?

I know this is somewhat convoluted, but I'm happy to clarify.
powerkey-quicksilver

No license

Can you clarify the license for this project?

Arbitrary key to be power button

Hey,
The keyboard of my macbook pro 13" 2011 is not working 100%. In particular only specific keys work (Letter W for instance). The power button does not work.
Thus, I would like to set this key to power on/of button. Isn't there anyway to set an arbitrary key to the power button?

Thanks

External keyboard eject key to action

The latest gen mac bluetooth keyboards come with an eject key. I'd like to map this useless key to the power button - matching the layout of the built in keyboard. Is this possible? I've downloaded the app and tinkered with the settings but as far as I can tell, nothing is happening.

Maybe I'm misunderstanding the readme, but "But PowerKey does work with the Eject key as well, so you're in luck" leads me to believe this is possible.

Pay or play?

I downloaded PowerKey which was advertised for free:
http://osxdaily.com/2013/04/26/delete-key-mac-forward-del/
But the readme.md file says I must pay or modify my Mac's Gatekeeper security settings.

Purchase and Download

The release version of PowerKey.app can be purchased via Gumroad.
https://gumroad.com/l/powerkey
The release version of PowerKey is signed with our DeveloperID, making it easier to run by default on Mac OS X. Purchasing the code-signed release version of PowerKey will allow you to run the app without modifying your Mac's Gatekeeper security settings.

I am new to Mac and don't know if I want to do that. Nonetheless, I do want forward-delete via the power key your way, if not available another way. I don't even know what file to run to install the app.

Using VMware Fusion Delete is continuous

I am using windows 7 using VMware fusion which is why I wanted to buy Powerkey,

I have just bought it and it works immediately in Mac but when I press the power key once in the virtual machine it deletes continuously as if I have held the delete key down on a normal PC

Anyone had this issue or have any ideas to solve it?

I am running Windows 7 Ultimate on VMware Fusion Professional v7 0 0

Power settings menu is activated when using...

When using a applescript to execute the following command "pmset displaysleepnow" the power settings menu always comes on as well. I've noticed that it ONLY does this when using that specific terminal command.

Is there anyway you can add a Sleep Display feature to the standard functions?

Thanks!

Volume Up key

Any chance you can add in a VolumeUp event line to your code to replace the power key? I'm able to add in F12, which works, but can't get the volume up to work. Is this easier to do with applescript? Finally upgrading to ElCap and it's causing the biggest headaches. Thanks.

F12 as option to remap

Hi, I just bought powerkey and I like it, but could you also add F12 as an option?
I think this is an easy change and would help me a lot.

I changed from a normal windows keyboard to an apple keyboard and at that position was the F12 key.

macOS Sierra Gatekeeper

I installed the latest release from Gumroad to support the cause and to get notices of updates. When launched in macOS Sierra, the Gatekeeper identifies it as an unsigned app. I can open it but it always asks for verification. Is there a solution? I don't want to disable the Gatekeeper function and I do want PowerKey to load at login without this annoying message box.

"Delete" when button is unpressed

Application is cool, but will be better if delete (or another action) will work after I move my hand from button. Because now when I want to lock my laptop it first remove one symbol and only then locking.

OS X Yosemite

pkamb, awesome work on your app, love it! Just out of curiosity, have you looked into building this for OS X Yosemite? I have no idea how to go about doing this myself, and I understand that plenty of developers don't like building for beta releases, but I was just curious whether you were in the works on this or if it was one of those things where you planned on waiting for the final release first.

Thanks!

Memory Leak?

I created PowerKey with Xcode. It has a warning plus analysis says it may have a memory leak? It works regardless. I am planning on buying the app rather than use my own compiled version. Just wanted to make sure it worked first. By the by, I'm using Xcode 8 and running macOS (Sierra). If you were to update the code, would the purchased version get updated? Does it check for updates? IS the update free? Comment on the memory leak and warnings?

Powerkey too slow

I bought this because karabiner doesn't work with Sierra. I used to use karabiner to make backslash do forward delete. I like the concept of your app but it is way too slow. To delete more than one letter I have to tap and hold for each letter which is painful. Is there any way you can make this app work faster?

Power on Power off - Twelve South BookArc

Hy, I have an macBook Pro which is in a BookArc connected to a LG-display and an external keyboard. So the MBP is closed. Can i use this PowerKey ON my external keyboard for powering on/off the MBP?
Best regrards,
Gunther
Greetings from Vienna, Austria - sorry for my bad english. #

OS X 10.9 Mavericks compatibility

In OS X 10.9 Mavericks, the computer goes to sleep immediately when the power button is pressed. PowerKey still sends your replacement keypress, but does not prevent the Sleep function.

OS X Mavericks: Using the power button
Learn how the power button works in OS X Mavericks.

  1. Tap the power button in Mavericks to put your Mac to sleep or to wake it up.
  2. Press and hold the power button for 1.5 seconds, to bring up additional options.
  3. Hold down the power button for 5 seconds to force the computer to turn off.

PowerKey no longer blocks the 1st item on the list, a quick press of the power key. Need to support/block the new Mavericks interactions.

EDITED WITH THE SOLUTION BELOW

(Note that this issue has been corrected in OS X 10.10 El Capitan and later versions. This fix is only needed if you're running Mavericks)

Additional steps for OS X 10.9 Mavericks

OS X 10.9 introduced new behavior for the Power key:

  • Tap the power button once to put your Mac to sleep.
  • Tap the power button again to wake your Mac.

In the 10.9.2 update, Apple made this behavior configurable:

defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool NO

To disable this immediate Sleep behavior and make the Power key usable with PowerKey:

  1. Update OS X to version 10.9.2 or greater.
  2. Open Terminal.
  3. Run the command: defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool NO
  4. Log out of your OS X account, then log back in.
  5. Run PowerKey.app; pressing the key will now not immediately put your Mac to sleep.

assign another key for power

Is it also possible to do the reverse? Like you press any other assigned key to power up the macbook from off. That would be handy as a lot of folk's older macbook pros with the dedicated power button, including mine, is acting up and not work. So we just can't turn on the macbooks because of the defective power button but need to reset by disconnecting the battery. Any help would be greatly appreciated.
Thanks.

Supr Key

Please, i need the supr button like in windows. How can i make it?
Thank you!!

To imrove UX add option for disabling Sleep feature on Mac entirely, if possible

Problem

If use Delete (which make sense because regular location) for Power button it doesn't work always. If user presses (taps) button fast, nothing happens, i.e. symbol doesn't erase. They erase only if big timespan between taping.

Solution / Assumption

Probably, this is because OS tracks the button pressing and waiting for acting Sleep action. Thus, if possible to disable Sleep action for the Power button - it will help to work Delete action as usual button.

INS as the replacement key

I am really missing Insert key from the PC keyboard in Remote Desktop sessions and in virtual machines.

Option to always run Powerkey in background + not to show preferences dialog

I bought Powerkey from Gumroad about a month ago. I have it set to launch on startup and I would like it to automatically run in the background without the need for clicking the option in the preferences dialog every time. I would also like the preferences dialog not to show once this has been set.

It would therefore be helpful to have three options in the preferences window:

  • Run in background (this time only)
  • Always run in background
  • Never run in background

Obviously, users would still need a way to access the preferences should they change their mind. I think the best way to handle this would be to show the preferences whenever the Powerkey application is activated when Powerkey is already running. i.e. if you explicitly activate Powerkey while it is already running (by clicking the application icon in Finder or from Application Launcher) then it would show the preferences dialog. If the user activates Powerkey and it is not already running (e.g. on startup) then Powerkey would follow the user's chosen preference to run in the background and would not show the preferences dialog.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.