-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstopsmoking.ini
72 lines (62 loc) · 1.73 KB
/
stopsmoking.ini
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
[module/stopsmoking]
type = custom/script
; Available tokens:
; %counter%
; Command to be executed (using "/bin/sh -c [command]")
exec = /usr/bin/run_polybar_stopsmoking.sh
; Conditional command that, if defined, needs to exit successfully
; before the main exec command is invoked.
; Default: ""
;exec-if = pgrep -x stopsmoking
; Set this to true for scripts that continuously produce output
; If set to 'true', everytime the script produces a new line of output, the module updates.
; Otherwise, only the first line of output is considered and all later lines are discarded.
; Default: false
tail = false
; Seconds to sleep between updates
; Default: 5 (0 if `tail = true`)
interval = 3
; Set environment variables in the 'exec' script
; New in version 3.6.0
; env-NAME = VALUE
; env-FOO = BAR
; Available tags:
; <label> (default)
format = <label>
format-background = ${color.shade3}
format-foreground = #FFFFFF
format-padding = 1
; Format used when the `exec` command returns with a non-zero exit code
; Only used with `tail = false`
; If not defined, format is used instead.
; Available tags:
; <label-fail>
; New in version 3.6.0
; format-fail = <label-fail>
; Available tokens:
; %output%
; Default: %output%
label = %output:0:15:...%
; Available tokens:
; %output%
; Default: %output%
; New in version 3.6.0
label-fail = %output:0:15:...%
; Available tokens:
; %counter%
; %pid%
;
; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]"
click-left = pkill -SIGUSR1 stopsmoking-pol
click-middle =
click-right =
double-click-left =
double-click-middle =
double-click-right =
; Available tokens:
; %counter%
; %pid%
;
; "scroll-(up|down)" will be executed using "/bin/sh -c [command]"
scroll-up =
scroll-down =