Skip to content

Commit

Permalink
Merge pull request #12 from Osterie/dev
Browse files Browse the repository at this point in the history
Added default profile
  • Loading branch information
Osterie authored Mar 4, 2024
2 parents 43cedd5 + 1412679 commit 8b39242
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# test.ahk
PrivateConfig.ini
config/UserProfiles/*
!config/UserProfiles/Default
tests/*
TODO.ahk
42 changes: 42 additions & 0 deletions config/UserProfiles/Default/ClassObjects.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
; TODO: make sure that the same hotkey is not used for multiple functions.
; this can be made exceptions for if the same hotkey is used for different keyboard layers.
; It would be possible to have classes as arguments....

; TODO the user will be able to manipulate the .ini file, in case they mess up and ruin everything, at startup should also check if the ini file exists, and create it if not, check if there is a backup and run that first, then create the defualt ini file.
; they should be able to reset the .ini file to default settings.
; alternatively, the ini file should have a backup, which can be reverted to, and not directly changed by the user!


[test]

key =new
kwww=other

[PrivacyController]

MonitorSleepTimeMinutes =5

[Battery]

; GUID for battery saver mode and such, this can be found using the command: powercfg /L
PowerSaverModeGUID = "7ac15103-7e10-499d-b365-9647e042cde2"
DefaultPowerModeGUID = "8759706d-706b-4c22-b2ec-f91e1ef6ed38"

[Mouse]
AutoClickerClickCps=30

[UnauthorizedUseDetector]
lockComputerOnTaskBarClick=true


[WebNavigator]

chatGptLoadTime =3000

[CommandPrompt]

DefaultPath = "C:\Users\adria\"

; Key Modifiers: [^ = Ctrl] [+ = Shift] [! = Alt] [# = Win]
; The left side (key) of the expressions are the functions.
; The right side (value) of the expressions are the keys/hotkeys to press to run these functions.
215 changes: 215 additions & 0 deletions config/UserProfiles/Default/Keyboards.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"GlobalLayer-Hotkeys":{

"CapsLock": {
"isObject": true,
"ObjectName": "layers",
"MethodName": "toggleLayerIndicator",
"Parameters": [1]
},
"+CapsLock": {
"isObject": true,
"ObjectName": "layers",
"MethodName": "cycleLayerIndicators",
"Parameters": [2]
}
},
"NormalLayer-Hotkeys": {
"^!w": {
"isObject": true,
"ObjectName": "WebSearcher",
"MethodName": "CloseTabsToTheRight",
"Parameters": []
},
"^!s": {
"isObject": true,
"ObjectName": "ProcessManagerInstance",
"MethodName": "SuspendActiveAutohotkeyScript",
"Parameters": []
}
},
"SecondaryLayer-Hotkeys": {
"*q": {
"isObject": false,
"key": "Esc",
"modifiers": ""
},
"*å":{
"isObject": false,
"key": "Esc",
"modifiers": ""
} ,
"*a":{
"isObject": false,
"key": "Alt",
"modifiers": ""
},
"*d":{
"isObject": false,
"key": "Shift",
"modifiers": ""
},
"*f": {
"isObject": false,
"key": "Ctrl",
"modifiers": ""
},
"*n": {
"isObject": false,
"key": "Tab",
"modifiers": ""
},
"*w": {
"isObject": false,
"key": "WheelUp",
"modifiers": ""
},
"*s": {
"isObject": false,
"key": "WheelDown",
"modifiers": ""
},
"*e": {
"isObject": false,
"key": "Browser_Back",
"modifiers": ""
},
"*r": {
"isObject": false,
"key": "Browser_Forward",
"modifiers": ""
},
"*y": {
"isObject": false,
"key": "PgUp",
"modifiers": ""
},
"*h": {
"isObject": false,
"key": "PgDn",
"modifiers": ""
},
"*u": {
"isObject": false,
"key": "Home",
"modifiers": ""
},
"*o": {
"isObject": false,
"key": "End",
"modifiers": ""
},
"*p": {
"isObject": false,
"key": "Del",
"modifiers": ""
},
"*ø": {
"isObject": false,
"key": "BackSpace",
"modifiers": ""
},
"^s": {
"isObject": false,
"key": "s",
"modifiers": "^"
},
"^a": {
"isObject": false,
"key": "a",
"modifiers": "^"
},
"*z": {
"isObject": false,
"key": "z",
"modifiers": "^"
},
"*x": {
"isObject": false,
"key": "x",
"modifiers": "^"
},
"*c": {
"isObject": false,
"key": "c",
"modifiers": "^"
},
"*v": {
"isObject": false,
"key": "v",
"modifiers": "^"
},
"*m": {
"isObject": false,
"key": "Click",
"modifiers": ""
},
"*g": {
"isObject": false,
"key": "AppsKey",
"modifiers": ""
},
"*,": {
"isObject": false,
"key": "F6",
"modifiers": ""
},
"*i": {
"isObject": false,
"key": "Up",
"modifiers": ""
},
"*j": {
"isObject": false,
"key": "Left",
"modifiers": ""
},
"*k": {
"isObject": false,
"key": "Down",
"modifiers": ""
},
"*l": {
"isObject": false,
"key": "Right",
"modifiers": ""
},
"t":{
"isObject": true,
"ObjectName": "WebSearcher",
"MethodName": "LookUpHighlitedTextOrClipboardContent",
"Parameters": []
},
"+t": {
"isObject": true,
"ObjectName": "WebSearcher",
"MethodName": "AskChatGptAboutHighligtedTextOrClipboardContent",
"Parameters": []
},
"^t": {
"isObject": true,
"ObjectName": "WebSearcher",
"MethodName": "ShowTranslatedText",
"Parameters": ["auto", "en"]
},
"^+t": {
"isObject": true,
"ObjectName": "WebSearcher",
"MethodName": "ShowTranslatedText",
"Parameters": ["auto", "no"]
},
"b": {
"isObject": true,
"ObjectName": "WebSearcher",
"MethodName": "SearchFromInputBox",
"Parameters": []
},
"<": {
"isObject": true,
"ObjectName": "MouseInstance",
"MethodName": "MoveMouseToCenterOfScreen",
"Parameters": []
}
},
"TertiaryLayer-Hotkeys": {}
}
2 changes: 1 addition & 1 deletion config/meta.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[General]
activeUserProfile=Main
activeUserProfile=Default

0 comments on commit 8b39242

Please sign in to comment.