-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yml
108 lines (88 loc) · 2.42 KB
/
config.example.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
idleRefreshRateMs: 500
processRunningRefreshRateMs: 100
commands:
- label: "2200K"
command: "redshift"
args: "-P -O 2200"
env:
- "DISPLAY=:0"
- label: "2700K"
command: "redshift"
args: "-P -O 2700"
env:
- "DISPLAY=:0"
- label: "3500K"
command: "redshift"
args: "-P -O 3500"
env:
- "DISPLAY=:0"
- label: "4800K"
command: "redshift"
args: "-P -O 4800"
env:
- "DISPLAY=:0"
- label: "6500K"
command: "redshift"
args: "-P -O 6500"
env:
- "DISPLAY=:0"
- label: "brightness 100%"
command: "/bin/bash"
shell: "xrandr --output eDP-1 --brightness 1"
env:
- "DISPLAY=:0"
- label: "brightness 25%"
command: "/bin/bash"
shell: "xrandr --output eDP-1 --brightness 0.25"
env:
- "DISPLAY=:0"
- label: "brightness 100% external"
command: "/bin/bash"
shell: "xrandr --output DP-1 --brightness 1"
env:
- "DISPLAY=:0"
- label: "brightness 25% external"
command: "/bin/bash"
shell: "xrandr --output DP-1 --brightness 0.25"
env:
- "DISPLAY=:0"
- label: "get current power"
command: "/bin/bash"
shell: "sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | uniq"
- label: "powersaver"
command: "/bin/bash"
shell: "echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
- label: "performance"
command: "/bin/bash"
shell: "echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
- label: "turn external monitor on"
command: "/bin/bash"
shell: "xrandr --output DP-1 --mode 1920x1080"
env:
- "DISPLAY=:0"
- label: "turn external monitor off"
command: "/bin/bash"
shell: "DISPLAY=:0 xrandr --output DP-1 --off"
env:
- "DISPLAY=:0"
- label: "caffeine"
command: "xset"
args: "s off -dpms"
env:
- "DISPLAY=:0"
- label: "idle"
command: "/bin/bash"
shell: "DISPLAY=:0 xset s blank; DISPLAY=:0 xset s 5 5 +dpms;"
- label: "battery level"
command: "/bin/bash"
shell: "echo $(cat /sys/class/power_supply/BAT1/capacity)%"
- label: "battery status"
command: "/bin/bash"
shell: "cat /sys/class/power_supply/BAT1/status"
- label: "test long output"
command: "/bin/bash"
shell: "for ((i = 0 ; i < 100 ; i++ )); do echo $i ; sleep 0.01; done"
- label: "suspend"
command: "/bin/bash"
shell: "sudo systemctl suspend"