Browse Source

Hammerspoon: Update Readme

ubuntu_ci
Ein Verne 4 years ago
parent
commit
385af67f91
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 66
      hammerspoon/README.md

66
hammerspoon/README.md

@ -13,6 +13,11 @@ hammerspoon is my configuration for [Hammerspoon](http://www.hammerspoon.org/).
`cd ~/dotfiles && git pull` `cd ~/dotfiles && git pull`
## File structure
- `autoscript.lua`, auto commit and push my personal notes.
- `ime.lua`, auto switch different Input methods in different applications
## How to use ## How to use
Use Karabier-Elements to set <kbd>caps lock</kbd> as hyper key. Press caps lock is just like press Cmd+Control+Option+Shift at the same time. Use Karabier-Elements to set <kbd>caps lock</kbd> as hyper key. Press caps lock is just like press Cmd+Control+Option+Shift at the same time.
@ -46,7 +51,7 @@ I personally use the application called Context to switch between different wind
## Toggle hammerspoon console ## Toggle hammerspoon console
Option+z `Option+z`
## Move windows between monitors ## Move windows between monitors
@ -55,12 +60,26 @@ Option+z
### Application launcher ### Application launcher
Press option + a to enter application launcher. The shorcut information will show on the center of the screen. But I personally prefer Alfred. Press `option + a` to enter application launcher. The shorcut information will show on the center of the screen. But I personally prefer Alfred.
## Hammerspoon API manual
`Option+h` open Hammerspoon API manual.
## Lock screen
`Option+l` to lock screen.
## Show time in the middle of screen
`Option+t` to toggle the time in screen.
Just press <kbd>opt</kbd>, plus <kbd>A</kbd> or <kbd>C</kbd> or <kbd>R</kbd>… to start. If need help, press <kbd>tab</kbd> to toggle the keybindings cheatsheet. ## Auto type url in markdown format
Press <kbd>opt</kbd> + <kbd>?</kbd> to toggle the help panel, which will show all <kbd>opt</kbd> related keybindings. `Option+v` to auto type url in markdown format.
## Toggle Hammerspoon console
`Option+z` to toggle Hammerspoon console.
### Screenshots ### Screenshots
@ -68,22 +87,16 @@ These screenshots demostrate what awesome-hammerspoon is capable of. Learn more
#### Desktop widgets #### Desktop widgets
![widgets](https://github.com/ashfinal/bindata/raw/master/screenshots/awesome-hammerspoon-deskwidgets.png) ![widgets](https://github.com/ashfinal/bindata/raw/master/screenshots/awesome-hammerspoon-deskwidgets.png)
#### Window manpulation <kbd></kbd> + <kbd>R</kbd> #### Window manpulation <kbd></kbd> + <kbd>R</kbd>
![winresize](https://github.com/ashfinal/bindata/raw/master/screenshots/awesome-hammerspoon-winresize.gif) ![winresize](https://github.com/ashfinal/bindata/raw/master/screenshots/awesome-hammerspoon-winresize.gif)
#### aria2 Frontend <kbd></kbd> + <kbd>D</kbd> #### aria2 Frontend <kbd></kbd> + <kbd>D</kbd>
![hsearch](https://github.com/ashfinal/bindata/raw/master/screenshots/awesome-hammerspoon-aria2.png)
You need to [run aria2 with RPC enabled](https://github.com/ashfinal/awesome-hammerspoon/wiki/Run-aria2-with-rpc-enabled) before using this. Config aria2 host and token in `~/.hammerspoon/private/config.lua`, then you're ready to go. You need to [run aria2 with RPC enabled](https://github.com/ashfinal/awesome-hammerspoon/wiki/Run-aria2-with-rpc-enabled) before using this. Config aria2 host and token in `~/.hammerspoon/private/config.lua`, then you're ready to go.
```lua ```lua
@ -111,39 +124,26 @@ Then modify the file `~/.hammerspoon/private/config.lua`:
Please read `~/.hammerspoon/private/config.lua`for more details. Please read `~/.hammerspoon/private/config.lua`for more details.
Finally press `cmd + ctrl + shift + r` to reload the configuration.
## Contribute
- Improve existing Spoons ## Reference
Some resources you may find helpful:
A "Spoon" is just a directory, right-click on it -> "Show Package Contents". - [Learn Lua in Y minutes](http://learnxinyminutes.com/docs/lua/)
Feel free to file issues or open PRs. - [Getting Started with Hammerspoon](http://www.hammerspoon.org/go/)
- Create new Spoons - [Hammerspoon API Docs](http://www.hammerspoon.org/docs/index.html)
Some resources you may find helpful: - [hammerspoon/SPOONS.md at master · Hammerspoon/hammerspoon](https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md)
[Learn Lua in Y minutes](http://learnxinyminutes.com/docs/lua/)
[Getting Started with Hammerspoon](http://www.hammerspoon.org/go/)
[Hammerspoon API Docs](http://www.hammerspoon.org/docs/index.html)
[hammerspoon/SPOONS.md at master · Hammerspoon/hammerspoon](https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md)
## Thanks to ## Thanks to
- [https://github.com/zzamboni/oh-my-hammerspoon](https://github.com/zzamboni/oh-my-hammerspoon)
[https://github.com/zzamboni/oh-my-hammerspoon](https://github.com/zzamboni/oh-my-hammerspoon) - [https://github.com/scottcs/dot_hammerspoon](https://github.com/scottcs/dot_hammerspoon)
[https://github.com/scottcs/dot_hammerspoon](https://github.com/scottcs/dot_hammerspoon)
[https://github.com/dharmapoudel/hammerspoon-config](https://github.com/dharmapoudel/hammerspoon-config) - [https://github.com/dharmapoudel/hammerspoon-config](https://github.com/dharmapoudel/hammerspoon-config)
[http://tracesof.net/uebersicht/](http://tracesof.net/uebersicht/) - [http://tracesof.net/uebersicht/](http://tracesof.net/uebersicht/)

Loading…
Cancel
Save