Color the menubar according to the current keyboard layout
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/MenubarFlag.spoon.zip
Functionality inspired by ShowyEdge
Signature | MenubarFlag.allScreens |
---|---|
Type | Variable |
Description | Boolean to specify whether the indicators should be shown on all monitors or just the current one. Defaults to |
Source | Source/MenubarFlag.spoon/init.lua line 22 |
Signature | MenubarFlag.colors |
---|---|
Type | Variable |
Description | Table that contains the configuration of indicator colors |
Notes |
or complex, programmatically-generated:
or solid colors:
|
Source | Source/MenubarFlag.spoon/init.lua line 42 |
Signature | MenubarFlag.indicatorAlpha |
---|---|
Type | Variable |
Description | Number to specify the indicator transparency (0.0 - invisible; 1.0 - fully opaque). Defaults to 0.3 |
Source | Source/MenubarFlag.spoon/init.lua line 32 |
Signature | MenubarFlag.indicatorHeight |
---|---|
Type | Variable |
Description | Number to specify the height of the indicator. Specify 0.0-1.0 to specify a percentage of the height of the menu bar, larger values indicate a fixed height in pixels. Defaults to 1.0 |
Source | Source/MenubarFlag.spoon/init.lua line 27 |
Signature | MenubarFlag.indicatorInAllSpaces |
---|---|
Type | Variable |
Description | Boolean to specify whether the indicator should be shown in all spaces (this includes full-screen mode). Defaults to |
Source | Source/MenubarFlag.spoon/init.lua line 37 |
Signature | MenubarFlag.timerFreq |
---|---|
Type | Variable |
Description | Number to indicate how frequently (in seconds) should the menubar indicator be updated. Defaults to 1.0. |
Notes |
|
Source | Source/MenubarFlag.spoon/init.lua line 80 |
Signature | MenubarFlag:drawIndicators(src) |
---|---|
Type | Method |
Description | Draw the indicators corresponding to the given layout name |
Parameters |
|
Returns |
|
Source | Source/MenubarFlag.spoon/init.lua line 118 |
Signature | MenubarFlag:getLayoutAndDrawindicators() |
---|---|
Type | Method |
Description | Draw indicators for the current keyboard method or layout |
Parameters |
|
Returns |
|
Source | Source/MenubarFlag.spoon/init.lua line 175 |
Signature | MenubarFlag:start() |
---|---|
Type | Method |
Description | Start the keyboard layout watcher to draw the menubar indicators. |
Parameters |
|
Returns | |
Source | Source/MenubarFlag.spoon/init.lua line 188 |
Signature | MenubarFlag:stop() |
---|---|
Type | Method |
Description | Remove indicators and stop the keyboard layout watcher |
Parameters |
|
Returns | |
Source | Source/MenubarFlag.spoon/init.lua line 208 |