🔧 Refactoring + preparing v1.2

- Refactoring of the way the slider are created
- Read the current value of ddcctl monitor after launching the app, so no more value at 0 for the sliders
- When there's only one monitor, display it directly, not in a submenu, closes #10
- Added a "start at login" helper (still need testing) for v1.2

Signed-off-by: Guillaume Broder <iamnotheoneyouseek@gmail.com>
This commit is contained in:
Guillaume Broder 2018-01-13 22:49:10 +01:00
parent 1112380361
commit 087bb132c6
No known key found for this signature in database
GPG key ID: 66FB02D063D9E08F
14 changed files with 340 additions and 213 deletions

120
.github/rules.json vendored
View file

@ -1,120 +0,0 @@
{
"title": "MonitorControl (@the0neyouseek)",
"rules": [
{
"description": "External Screen brightness [-] (using MonitorControl)",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "f1",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [{
"key_code": "down_arrow",
"modifiers": [
"left_shift",
"left_control",
"left_option",
"left_command"
]
}]
}]
},
{
"description": "External Screen brightness [+] (using MonitorControl)",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "f2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [{
"key_code": "up_arrow",
"modifiers": [
"left_shift",
"left_control",
"left_option",
"left_command"
]
}]
}]
},
{
"description": "External Screen volume [-] (using MonitorControl)",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "f11",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [{
"key_code": "left_arrow",
"modifiers": [
"left_shift",
"left_control",
"left_option",
"left_command"
]
}]
}]
},
{
"description": "External Screen volume [+] (using MonitorControl)",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "f12",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [{
"key_code": "right_arrow",
"modifiers": [
"left_shift",
"left_control",
"left_option",
"left_command"
]
}]
}]
},
{
"description": "External Screen volume mute (using MonitorControl)",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "f10",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [{
"key_code": "equal_sign",
"modifiers": [
"left_shift",
"left_control",
"left_option",
"left_command"
]
}]
}]
}
]
}