-
Notifications
You must be signed in to change notification settings - Fork 17
/
sample-config.json
81 lines (81 loc) · 1.99 KB
/
sample-config.json
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
{
"actions": [
{
"type": "command",
"label": "Run in python3",
"command_line": "gnome-terminal -t \"Running Python %b\" --profile \"No Close\" -- python3 %b",
"cwd": "%d",
"max_items": 1,
"mimetypes": [
"text/x-python"
]
},
{
"type": "command",
"label": "Test all place holders",
"command_line": "%O printf '%%s\\n' '#b' %b '#B' %B '#c' %c '#d' %d '#D' %D '#f' %f '#F' %F '#h' %h '#m' %m '#M' %M '#n' %n '#o' %o '#O' %O '#p' %p '#s' %s '#u' %u '#U' %U '#w' %w '#W' %W '#x' %x '#X' %X | zenity --title \"Test all place holders\" --text-info",
"use_shell": true
},
{
"type": "command",
"label": "Open in gedit",
"command_line": "gedit %F",
"filetypes": [
"!directory",
"standard"
]
},
{
"type": "menu",
"label": "Folder Actions",
"actions": [
{
"type": "command",
"label": "Execute command here",
"command_line": "$(zenity --entry --text \"Enter command\" --title \"execute command in %f\" --width 800)",
"use_shell": true,
"cwd": "%f",
"max_items": 1,
"filetypes": [
"directory"
]
},
{
"type": "command",
"label": "Start HTTP server here",
"command_line": "gnome-terminal -t \"HTTP Server on %f\" -- python3 -m http.server --bind 127.0.0.1",
"cwd": "%f",
"max_items": 1,
"mimetypes": [
"inode/directory"
]
}
]
},
{
"type": "menu",
"label": "Copy details",
"actions": [
{
"type": "command",
"label": "Copy name",
"command_line": "echo -n %B | xclip -f -selection primary | xclip -selection clipboard",
"use_shell": true
},
{
"type": "command",
"label": "Copy path",
"command_line": "echo -n %F | xclip -f -selection primary | xclip -selection clipboard",
"use_shell": true
},
{
"type": "command",
"label": "Copy URI",
"command_line": "echo -n %U | xclip -f -selection primary | xclip -selection clipboard",
"use_shell": true
}
]
}
],
"debug": false
}