8000 GitHub - silasburger/DockClick.spoon: Restore or unhides the window of the active application by clicking its respective dock item. If the application doesn't have a corresponding item in the dock nothing will happen. Saves the effort of finding and clicking applications in the dock to reopen a closed window.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Restore or unhides the window of the active application by clicking its respective dock item. If the application doesn't have a corresponding item in the dock nothing will happen. Saves the effort of finding and clicking applications in the dock to reopen a closed window.

Notifications You must be signed in to change notification settings

silasburger/DockClick.spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DockClick.spoon

Emulates clicking the currently active, or frontmost, application in the dock. What this does depends that specific application, but more often than not it restores the applications primary window.

Features

  • Matches the name of the active application with a corresponding dock item. Uses includes to match short and long names - Chrome with Google Chrome, for example.
  • By default binds (Cmd + Alt + W) to restore a window.

Installation

Install Hammerspoon
If you haven't installed Hammerspoon yet, download it from here and follow the installation instructions. Take a look at their Github repo for more information.

Clone the Repository to .hammerspoon/Spoons
Clone this repository into the .hammerspoon/Spoons directory using the following command:

git clone https://github.com/silasburger/restore-window ~/.hammerspoon/Spoons/WindowRestore.spoon

Add to Hammerspoon Configuration .hammerspoon/init.lua

hs.loadSpoon("DockClick")
spoon.WindowRestore:bindHotkeys()

Notes

  • Easily customizable hotkeys, for example: .hammerspoon/init.lua

    hs.loadSpoon("WindowRestore")
    spoon.WindowRestore:bindHotkeys({
      click = { {"cmd", "alt"}, "w" }
    })

About

Restore or unhides the window of the active application by clicking its respective dock item. If the application doesn't have a corresponding item in the dock nothing will happen. Saves the effort of finding and clicking applications in the dock to reopen a closed window.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0