# Android
This is a WIP layout based on Colemak DHm for using on Android (with **en-US** layout on host) that includes Spanish accents, and complemented with easy access to development symbols and JS/TS shortcuts.
![US International](/.github/images/layout/US.png)
> **en-US International** layout have a bug with `alt` key that block his behavior. Some extra keys where not available.
---
## Menu
- [Conventions](#conventions)
- [Layers](#layers)
- [BAS](#bas)
- [DEV](#dev)
- [AXN](#axn)
- [STG](#stg)
- [Notifications](#notifications)
---
## Conventions
### Icons
Icons used to describe some modifiers and actions
| Label | Description |
| :----------: | ------------------------------------------------------------ |
| ❖ | Win |
| ⌃ | Control |
| ⌥ | Alt |
| ⇧ | Shift |
| 🄰 | Caps Lock |
| ⎋ | Esc |
| ↹ | Tab |
| ⏎ | Return |
| ⇪ | [Hold Tap](https://zmk.dev/docs/behaviors/hold-tap#hold-tap) |
### Shared Modifiers
| Label | Shortcut | Actions |
| -------------: | --------------------------: | ----------------------------------------------------- |
| ⌫ | | Backspace |
| \|⌫ | ⇪⌫ | Delete word backward |
| ⌦ | | Delete |
| ⌦\| | ⇪⌦ | Delete word forward |
| F2 | ⇪⏎ | Rename (like macOS) |
| ▷ | ⇪↹ | left (terminal autocompletion) |
| 🄰 | ⇧+⌫ | Caps lock |
| ⇧⇧ | L⇧+R⇧ | [Caps word](https://zmk.dev/docs/behaviors/caps-word) |
| ^^ | L^+R^ | Cancel caps |
| ❖❖ | L❖+R❖ | Show current layout on screen |
⇧ [Back to menu](#menu)
---
## Layers
### BAS
Letters, accents for Spanish language and quick shortcuts for most used symbols to "avoid" changing layers.
![BAS Layer](/.github/images/layers/android/BAS.png)
#### Spanish
| Label | Shortcut |
| :----------: | --------------------------------------: |
| á | ⌥+a |
| Á | ⇧+⌥+a |
| é | ⌥+e |
| É | ⇧+⌥+e |
| í | ⌥+i |
| Í | ⇧+⌥+i |
| ó | ⌥+o |
| Ó | ⇧+⌥+o |
| ú | ⌥+u |
| Ú | ⇧+⌥+u |
| ü | ^+u |
| Ü | ⇧+^+u |
| ñ | ⌥+n |
| Ñ | ⇧+⌥+n |
⇧ [Back to menu](#menu)
### DEV
Symbols and dev shortcuts for JS/TS.
![DEV Layer](/.github/images/layers/android/DEV.png)
#### Browser DevTools
| Label | Shortcut | Action |
| -----------: | ------------------------: | --------------------------- |
| ↻ | ↻ | Refresh |
| ⟳ | ⇧+↻ | Hard refresh (clean cache) |
#### VS Code
| Label | Shortcut | Action |
| ------------------: | -------------------------: | -------------------- |
| // | ⌃+/ | Toggle line comment |
⇧ [Back to menu](#menu)
### AXN
Quick navigation actions and numbers. Function keys works independently as a sub-layer to avoid shortcuts collisions.
![AXN Layer](/.github/images/layers/android/AXN.png)
#### Navigation
| Label | Shortcut | Action |
| ------------: | ------------------------- | --------------------- |
| △ | | Up |
| ▽ | | Down |
| ◁ | | Left |
| ▷ | | Right |
| ⇤ | | Home |
| ⇥ | | End |
| ⤒ | ^+⇤ | Beginning of document |
| ⤓ | ^+⇥ | End of document |
| ⇞ | | Page up |
| ⇟ | | Page down |
| ⇺ | | Prev Tab |
| ⇻ | | Next Tab |
#### Actions
| Label | Shortcut | Action |
| -------------: | -------------------------- | -------------------- |
| <\| | | Expand selection |
| \|> | | Shrink selection |
| ↶ | | Undo |
| ↷ | | Redo |
| ⬚ | | Cut |
| ⿻ | | Copy |
| ⏍ | | Paste |
| ☉ | | Find |
| ☊ | | Replace |
⇧ [Back to menu](#menu)
### STG
Dedicated to Bluetooth and media controls.
![STG Layer](/.github/images/layers/android/STG.png)
#### Actions
| Label | Action |
| -------------: | ----------------------- |
| B#️⃣ | Jump to #️⃣ device |
| ❌ | Clear Bluetooth |
| 🌐 | Browser |
| 🎤 | Assist |
| 📅 | Calendar |
| 🎼 | Music |
| 📧 | Mail |
| 📞 | Contacts |
| ⌂ | Home |
| ⛬ | Notifications |
| ▤ | Apps |
| ⍰ | Shortcuts |
#### Media
| Label | Action |
| ------------: | ----------- |
| 🔊 | Volume up |
| 🔇 | Mute |
| 🔉 | Volume down |
| ⏮️ | Prev |
| ⏯️ | Play/Pause |
| ⏭️ | Next |
⇧ [Back to menu](#menu)
---
## Notifications
### Prerequisites
- Download and install [Automate](https://play.google.com/store/apps/details?id=com.llamalab.automate)
### Flows
- Import the [`🅰️ Corne Caps.flo`](<../host/android/automate/🅰️ Corne Caps.flo>) and [`🏷️ Corne Layer.flo`](<../host/android/automate/🏷️ Corne Layer.flo>) flows located inside `host/android/automate` folder
- Add asked permissions
- Under `Flow > Settings > Privileges` menu check the `collect all the text you type` option
- Run `Corne Caps` and `Corne Layer`
- Under `Settings > Safety > Run on system startup` select `Resume running flows on system startup (boot)`
![Layers](/.github/images/examples/automate-layers.gif)
![Caps](/.github/images/examples/automate-caps.gif)
#### Premium
- Import the [`👁️ Corne Watch.flo`](<../host/android/automate/👁️ Corne Watch.flo>) flow located inside `host/android/automate` folder
- Under `Settings > Workarounds > Bluetooth tethering workaround` select `Privileged service`
- Stop `Corne Caps` and `Corne Layer`
- Run `Corne Watch` (it will watch if the keyboard is connected and start or stop `Corne Caps` and `Corne Layer`)
![Watch Mode](/.github/images/examples/automate-watch.gif)
### Indicators
Toast notifications:
- CapsLock (On/Off)
- CapsWord (On/Off)
- Layer changing
- Momentary layer activation and deactivation
⇧ [Back to menu](#menu)