All Projects → fabiospampinato → Phoenix

fabiospampinato / Phoenix

Licence: mit
My Phoenix setup. Powerful, easy to customize, tuned for web development, adds a space switcher.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Phoenix

Fake Filler Extension
A browser extension for Chrome, Edge and Firefox that fills dummy text in all input fields in a page.
Stars: ✭ 383 (+9.43%)
Mutual labels:  productivity, developer-tools
Duckrails
Development tool to mock API endpoints quickly and easily (docker image available)
Stars: ✭ 1,690 (+382.86%)
Mutual labels:  productivity, developer-tools
Bloop
Bloop is a build server and CLI tool to compile, test and run Scala fast from any editor or build tool.
Stars: ✭ 730 (+108.57%)
Mutual labels:  productivity, developer-tools
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (+92.29%)
Mutual labels:  phoenix, developer-tools
hapi-dev-errors
A hapi plugin to return better error details and skip the look at command line to catch the issue.
Stars: ✭ 58 (-83.43%)
Mutual labels:  productivity, developer-tools
Gita
Manage many git repos with sanity 从容管理多个git库
Stars: ✭ 865 (+147.14%)
Mutual labels:  productivity, developer-tools
Check It Out
A command line interface for Git Checkout. See branches available for checkout.
Stars: ✭ 127 (-63.71%)
Mutual labels:  productivity, developer-tools
Cutcode
A browser extension that enables double click to copy code snippet from stack overflow.
Stars: ✭ 163 (-53.43%)
Mutual labels:  productivity, developer-tools
Devutils App
Offline Toolbox for Developers
Stars: ✭ 2,735 (+681.43%)
Mutual labels:  productivity, developer-tools
Dev Tools
The most popular software developer tools in one app
Stars: ✭ 221 (-36.86%)
Mutual labels:  productivity, developer-tools
Fw
workspace productivity booster
Stars: ✭ 269 (-23.14%)
Mutual labels:  productivity, developer-tools
Devdocs Macos
An unofficial DevDocs API Documentation viewer for macOS.
Stars: ✭ 258 (-26.29%)
Mutual labels:  productivity, developer-tools
Daily
Building the homepage every developer deserves 👩🏽‍💻 👨‍💻
Stars: ✭ 4,632 (+1223.43%)
Mutual labels:  productivity, developer-tools
Haxor News
Browse Hacker News like a haxor: A Hacker News command line interface (CLI).
Stars: ✭ 3,342 (+854.86%)
Mutual labels:  developer-tools
Stup
Daily notes in the terminal 🐧
Stars: ✭ 340 (-2.86%)
Mutual labels:  productivity
Todocheck
A static code analyzer for annotated TODO comments
Stars: ✭ 322 (-8%)
Mutual labels:  productivity
Appstat
Get AppStore apps stats
Stars: ✭ 322 (-8%)
Mutual labels:  developer-tools
Developer Roadmap Guide 2018
Stars: ✭ 344 (-1.71%)
Mutual labels:  developer-tools
Sublimetutor
An interactive in-editor keyboard shortcuts tutorial for Sublime Text 3
Stars: ✭ 336 (-4%)
Mutual labels:  productivity
Thermal
One stop to manage all git repository
Stars: ✭ 321 (-8.29%)
Mutual labels:  developer-tools

Phoenix

My Phoenix setup. Powerful, easy to customize, tuned for web development, adds a space switcher.

Installation

This configuration uses a remap of the Caps Lock key to something more useful: the Hyper key (basically just ctrl + alt + cmd combined into one key) if used in combination with other keys, otherwise it gets mapped to F18, which is used to trigger the space switcher. If you prefer you may skip these remap steps while you try the configuration, but if you usually have many spaces opened I highly recommend you not to miss out the awesome space switcher, for which this hack is a requirement.

  1. Install Phoenix
  2. Install Karabiner Elements via its dmg
  3. Replace Caps Lock with Hyper/F18 using this Karabiner Elements configuration (if the link doesn't work copy and paste this in a browser: karabiner://karabiner/assets/complex_modifications/import?url=https%3A%2F%2Fraw.githubusercontent.com%2Ffabiospampinato%2Fphoenix%2Fmaster%2Fconfig%2Fkarabiner.json)
  4. $ mkdir ~/.config
  5. $ cd ~/.config
  6. $ git clone [email protected]:fabiospampinato/phoenix.git
  7. Restart Phoenix
  8. Enjoy!

Customization

To disable specific features, just comment out their correspondent require call in phoenix.js.

To tweak some numbers, simply edit constants.js.

Changing the specific shortcut used to trigger an action is pretty trivial.

Don't forget to make a PR if you fixed something or implemented something cool :)

Shortcuts

Sides

Sides

Shortcut Description
⇪ + ↑ Move window to the top side
⇪ + → Move window to the right side
⇪ + ↓ Move window to the bottom side
⇪ + ← Move window to the left side

Corners

Corners

Shortcut Description
⇪ + Q Move window to the top-left corner
⇪ + W Move window to the top-right corner
⇪ + S Move window to the bottom-right corner
⇪ + A Move window to the bottom-left corner

Halves

Halves

Shortcut Description
⇪ + [ Move window to the 1st half
⇪ + ] Move window to the 2nd half

Thirds

Thirds

Shortcut Description
⇪ + 1 Move window to the 1st column
⇪ + 2 Move window to the 2nd column
⇪ + 3 Move window to the 3rd column

Sixths

Sixths

Shortcut Description
⇪ + shift + Q Move window to the 1st sixth
⇪ + shift + W Move window to the 2nd sixth
⇪ + shift + E Move window to the 3rd sixth
⇪ + shift + A Move window to the 4th sixth
⇪ + shift + S Move window to the 5th sixth
⇪ + shift + D Move window to the 6th sixth

Center

Center

Shortcut Description
⇪ + X Center the window
⇪ + shift + X Center the window and set its dimensions to 900x600

Grow

Grow

Shortcut Description
⇪ + shift + ↑ Grow window from the top
⇪ + shift + → Grow window from the right
⇪ + shift + ↓ Grow window from the bottom
⇪ + shift + ← Grow window from the left

Expand

Expand

Shortcut Description
⇪ + space Toggle window expansion to fill the space
⇪ + shift + space Toggle window expansion to fullscreen

Focus or Open

Focus or Open

Shortcut Description
⇪ + ` Focus to or open Notable
⇪ + C Focus to or open Chrome
⇪ + D Focus to or open Chrome Developer Tools
⇪ + V Focus to or open Visual Studio Code
⇪ + F Focus to or open Finder
⇪ + T Focus to or open iTerm
⇪ + G Focus to or open GitTower

Spaces

Spaces

In order to make this work you have to open System Preferences -> Keyboard -> Shortcuts -> Mission Control and bind all Switch to Desktop [NUMBER] actions to ctrl + alt + cmd + shift + [NUMBER]. There are actions up to the 9th desktop, but they may not be shown to you if you have less then 9 desktops currently open.

Note: If you don't need wrapping support, you should just remap the Move left/right a space actions under System Preferences -> Keyboard -> Shortcuts -> Mission Control.

Shortcut Description
⇪ + tab Switch to the next space
⇪ + shift + tab Switch to the previous space

Applications Icons

Applications Icons

Shortcut Description
⇪ + I For each window in the current space show an icon indicating its position
⇪ + shift + I Display the current date and time

Reload Phoenix

Reload Phoenix

Shortcut Description
⇪ + shift + P Reload Phoenix

Pause/Resume Application

Pause/Resume Application

This can be used for saving battery, pausing single-player games etc.

Shortcut Description
⇪ + F8 Pause or resume the current application

Quit Application

Quit Application

Did you ever close 3+ Chrome windows instead of a single tab by mistake? Fear no more! Now in order to quit an app you have to trigger ⌘Q twice in a short timeframe. Stop wasting 10$ for something so basic.

Shortcut Description
⌘Q ⌘Q Quit application

Screens

For this to work you need to have the follwing shell functions available: resolution-set

//TODO: Record gif

Shortcut Description
⇪ + Enter Set the resolution of screens

Brightness

For this to work you need to have the follwing shell functions available: brightness-mod

//TODO: Record gif

Shortcut Description
⇪ + F1 Increase brightness by 10%
⇪ + F2 Decrease brightness by 10%
⇪ + shift + F1 Increase brightness by 2.5%
⇪ + shift + F2 Decrease brightness by 2.5%

Volume

For this to work you need to have the follwing shell functions available: volume-mod

//TODO: Record gif

Shortcut Description
⇪ + F11 Increase volume by 10%
⇪ + F12 Decrease volume by 10%
⇪ + shift + F11 Increase volume by 2.5%
⇪ + shift + F12 Decrease volume by 2.5%

Split View

//TODO: Unfortunately there's no API available for doing this at the moment, that's a shame given that I would have finally found a use for the § key, it looks like 2 S => Side-by-Side :D

Shortcut Description
⇪ + § If there are only 2 windows in the current space put them in split view

Mouse

Snapping

Snapping

Drag a window to an edge or corner to snap it into place.

Magic

Chrome

If it gets opened, positionate it to the left side.

Chrome Developer Tools

If it gets opened, positionate it to the bottom-right corner, and shrink Visual Studio Code's height a bit, so that the console will be visible.

If it gets closed, restore Visual Studio Code's height.

Terminal/iTerm2/Finder

If one of these apps' windows gets opened, positionate it to bottom-left corner.

Visual Studio Code

If it gets opened, positionate it to the right side.

Space Switcher

Space Switcher

This is the truly great addition to what was already available on the internet.

It combines Phoenix, Alfred and alfred-spaces-workflow into the space switcher macOS deserves but never had, always just a double Hyper ( ) away.

This is how it works:

  • It uses Phoenix to compile a list of your spaces
  • It tries to guess a name for those spaces, by default that would be the name of the folder opened in the Visual Studio Code instance present in that space (get_space_name.js)
  • Refreshes the list and those guessed names when necessary
  • Listens for the double Hyper ( ) shortcut
  • Opens Alfred and triggers alfred-spaces-workflow
  • Which reads the list of spaces compiled with Phoenix and displays it to you
  • Now just select a space to switch to

In order to make this work you have to open System Preferences -> Keyboard -> Shortcuts -> Mission Control and bind all Switch to Desktop [NUMBER] actions to ctrl + alt + cmd + shift + [NUMBER]. There are actions up to the 9th desktop, but they may not be shown to you if you have less then 9 desktops currently open.

Note: There's no API available for retrieving windows from other spaces, therefor other spaces' guessed names won't be refreshed until you visit them. The very first time you load Phoenix you might want to switch the focus to all of them, one by one, to have their names updated.

License

MIT © Fabio Spampinato

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].