Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding keybow-mini example layout for switching 'layers' on the fly #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

boatplugs
Copy link

I've added an example layout that allows you to define 'layers' that you can swap to on the fly by double pressing a key. There is a new folder called layers where you can place your layer files that will be required when configuring your layout. At the top of the layout file you can require the different layers that you would like to use and then add them to the layers table. The logic for switching is mostly in the layer_changer function and allows setting the delay as a parameter and is designed to cycle through the layers table sequentially and then wrap. There are a few 'global' variables used to keep track of the layer state and time between button presses.

I have included two examples of layers, one of which is for programmers that will facilitate coding workflows and the other has some i3 linux shortcuts. The layers are effectively layouts themselves however they are packed into a table and referenced programmatically in the main layout file so the big difference is the normal functions need to be encapsulated.

Feel free to make or request any changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants