-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
47 lines (37 loc) · 1.37 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
/*
d888888P dP oo
88 88
88 dP dP 88d888b. 88d888b. .d8888b. dP 88d888b.
88 88 88 88' `88 88' `88 88' `88 88 88' `88
88 88. .88 88 88. .88 88. .88 88 88 88
dP `88888P' dP 88Y8888' `88888P' dP dP dP
Welcome to Turboin's example config!
*/
func setupModes() map[string]interface{} {
modes := map[string]interface{} {
// The default mode is the most important mode,
// without it, Turboin wont run
"default": map[string]interface{} {
// Normal Click Examples
"mod4-d": "dmenu_run",
"mod4-return": "termite",
// Double Click Example
// First command is the command for one click
// Second command is the command for the double click
"mod4-c": []interface{} {"mocp --volume +10", "mocp --volume -10"},
// Special Keys Example
// Hold mod4 and z before also holding mod4-x to run this double click
// command set
"{mod4:z}-mod4-x": []interface{} {"mocp --unpause", "mocp --pause"},
// Switch your mode (does not work yet)
"mod4-s": "has mode mode_2",
}, // Make sure you have a comma at the end of every mode
"mode_2": map[string]interface{} {
// Return to the previous mode
"mod4-z": "has mode default",
"mod4-d": "doom run",
}, // Make sure you have a comma at the end of every mode
}
return modes
}