-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
87 lines (86 loc) · 5.53 KB
/
config.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
rotate:
3:
clockwise:
update:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 500)"
keypress:
RIGHTCTRL:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 125)"
LEFTCTRL:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 125)"
LEFTSHIFT:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 2500)"
counterclockwise:
update:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 500)"
keypress:
RIGHTCTRL:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 125)"
LEFTCTRL:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 125)"
LEFTSHIFT:
command: "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 2500)"
4:
clockwise:
begin:
command: "qdbus org.kde.kglobalaccel /component/mediacontrol invokeShortcut playpausemedia"
counterclockwise:
begin:
command: "qdbus org.kde.kglobalaccel /component/mediacontrol invokeShortcut playpausemedia"
swipe:
3:
left:
begin:
command: "ydotool key 56:1 15:1 15:0 && echo left_pressed > $HOME/projects/projects_github/fusuma/fusuma_key_states" # alt, tab, release tab
update:
command: "if grep -q left_pressed $HOME/projects/projects_github/fusuma/fusuma_key_states; then ydotool key 105:1 105:0; fi"
interval: 3
threshold: 5
right:
begin:
command: "ydotool key 56:1 15:1 15:0 56:0"
update:
command: "if grep -q left_pressed $HOME/projects/projects_github/fusuma/fusuma_key_states; then ydotool key 106:1 106:0; fi"
interval: 3
threshold: 5
down:
update:
command: "if grep -q left_pressed $HOME/projects/projects_github/fusuma/fusuma_key_states; then ydotool key 108:1 108:0; fi"
interval: 3
threshold: 5
up:
update:
command: "if grep -q left_pressed $HOME/projects/projects_github/fusuma/fusuma_key_states; then ydotool key 103:1 103:0; fi"
interval: 3
threshold: 5
end:
command: "ydotool key 56:0 && echo > $HOME/projects/projects_github/fusuma/fusuma_key_states"
4:
down:
update:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut decrease_volume"
interval: 0.5
keypress:
LEFTSHIFT:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut decrease_volume"
interval: 0.3
LEFTCTRL:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut decrease_volume_small"
interval: 2.5
up:
update:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut increase_volume"
interval: 0.5
keypress:
LEFTSHIFT:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut increase_volume"
interval: 0.3
LEFTCTRL:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut increase_volume_small"
interval: 2.5
right:
begin:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut mute"
left:
begin:
command: "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut mic_mute"