-
Notifications
You must be signed in to change notification settings - Fork 0
/
odoo_dev.deskr.yaml
49 lines (44 loc) · 1.5 KB
/
odoo_dev.deskr.yaml
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
- command: gnome-terminal -- bash -c 'cd ~/code/odoo-docker && ./start.sh'
monitor: secondary
# top, right, bottom, left (like CSS position shorthand)
position: [80%, 0, 100, 0]
window_locator:
pstree:
predicate: >
'gnome-terminal-server' in process['command']
and any(( d['command'] == '/bin/bash ./start.sh' for d in descendants() ))
- command: upwork
monitor: secondary
position: [1712, 0, 0, 0]
# Give enough time for Upwork to boot up
reposition_preconditions:
- time.sleep(3) or True
window_locator:
title_regex: Upwork
- command: code ~/code/odoo-docker
monitor: primary
position: [0, 0, 0, 0]
window_locator:
title_regex: odoo-docker
- command: spotify
monitor: secondary
position: [50%, 0, 15%, 0]
window_locator:
pstree:
command_regex: /spotify$
- command: google-chrome --new-window http://localhost:8069
# Make sure server is running before launching Chrome
command_preconditions:
- 'poll(lambda: sh(''curl -s -o /dev/null -w "%{http_code}" http://localhost:8069'') == ''200'')'
monitor: secondary
position: [20%, 0, 30%, 0]
window_locator:
title_regex: 'Home.*Chrome'
- command: google-chrome --incognito --new-window http://localhost:8069/shop
# Make sure server is running before launching Chrome
command_preconditions:
- 'poll(lambda: sh(''curl -s -o /dev/null -w "%{http_code}" http://localhost:8069'') == ''200'')'
monitor: secondary
position: [0, 0, 60%, 0]
window_locator:
title_regex: 'Shop.*Chrome'