Skip to content

Commit 59611a8

Browse files
v3.7
* add initial config file, road to 3.7 * add some documentation
1 parent 3435653 commit 59611a8

25 files changed

+106
-41
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/4d5c0768b874407bb1dcc2f928899ba5)](https://www.codacy.com/app/bil-elmoussaoui/Hardcode-Tray?utm_source=github.com&utm_medium=referral&utm_content=bil-elmoussaoui/Hardcode-Tray&utm_campaign=Badge_Coverage)
44
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/Hardcode-Tray/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
55
[![Hardcode-Tray
6-
release](https://img.shields.io/badge/release-v3.6.6-blue.svg)](https://github.com/bil-elmoussaoui/Hardcode-Tray/releases)
6+
release](https://img.shields.io/badge/release-v3.7-blue.svg)](https://github.com/bil-elmoussaoui/Hardcode-Tray/releases)
77

88
# Hardcode-Tray
99

@@ -159,6 +159,16 @@ You can also update to the git version of the script
159159
hardcode-tray --update-git
160160
```
161161

162+
### Config file
163+
Hardcode-Tray also supports a JSON config file that can be placed under `~/.config`. The file must be named `hardcode-tray.json`. The file supports the following options for now.
164+
- `blacklist`: a list of applications that you don't want to be fixed.
165+
- `conversion-tool`: the default tool to be used everytime you use the script.
166+
- `icons` : An object, that contains `theme` and `size` for the Gtk icon theme and the icon size to be used.
167+
168+
An example of the config file can be found [here](https://github.com/bil-elmoussaoui/Hardcode-Tray/blob/master/config.json).
169+
Passing `--theme` `--conversion-tool` `--size` will overwrite the default settings.
170+
171+
162172
### Uninstallation
163173
To remove the script completely from your desktop you can use
164174
```bash

config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"blacklist": ["telegram", "hangouts"],
3+
"icons": {
4+
"theme": "Numix",
5+
"size": 24
6+
},
7+
"conversion-tool": "CairoSVG"
8+
}

hardcode-tray

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
version=v3.6.6
2+
version=v3.7
33
if [[ $EUID -ne 0 ]]; then
44
case $1 in
55
-u|--update)

modules/applications/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

modules/applications/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

modules/applications/electron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

modules/applications/nwjs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

modules/applications/pak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

modules/applications/qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

modules/applications/zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author : Bilal Elmoussaoui ([email protected])
66
Contributors : Andreas Angerer, Joshua Fogg
7-
Version : 3.6.6
7+
Version : 3.7
88
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray
99
Licence : The script is released under GPL, uses a modified script
1010
form Chromium project released under BSD license

0 commit comments

Comments
 (0)