Skip to content

Commit 52e8d75

Browse files
committed
xcfg
1 parent cdd8c65 commit 52e8d75

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*.pyc
22
/*.cfg
33
/*.xcfg
4-
screens/*compare*.cfg
4+
screens/*compare*

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ My up-to-date XCTrack configuration files.
1616

1717
Optimised for a Nexus 7 2013 tablet, in landscape mode.
1818

19-
[Download](https://gitcdn.link/repo/hyperknot/xctrack-config/master/screens/hyperknot-landscape.cfg)
19+
[Download](https://gitcdn.link/repo/hyperknot/xctrack-config/master/screens/hyperknot-landscape.xcfg)
2020

2121
#### XC mode
2222

@@ -32,7 +32,7 @@ Optimised for a Nexus 7 2013 tablet, in landscape mode.
3232

3333
Optimised for a small screen Moto G phone, in portrait mode.
3434

35-
[Download](https://gitcdn.link/repo/hyperknot/xctrack-config/master/screens/hyperknot-portrait.cfg)
35+
[Download](https://gitcdn.link/repo/hyperknot/xctrack-config/master/screens/hyperknot-portrait.xcfg)
3636

3737

3838

compare-comp.sh

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ MODENAME=portrait
99
# MODENAME=landscape
1010

1111

12-
cp screens/hyperknot-$MODENAME.cfg screens/compare.cfg
12+
cp screens/hyperknot-$MODENAME.xcfg screens/compare.xcfg
1313

1414

15-
gsed -i "s|org.xcontest.XCTrack.widget.w.WCompMap|org.xcontest.XCTrack.widget.w.WXCAssistant|g" screens/compare.cfg
15+
gsed -i "s|org.xcontest.XCTrack.widget.w.WCompMap|org.xcontest.XCTrack.widget.w.WXCAssistant|g" screens/compare.xcfg
1616

17-
./process.py screens/compare.cfg compare-nocomp -$MODE -nocomp
18-
./process.py screens/compare.cfg compare-onlycomp -$MODE -onlycomp
17+
./process.py screens/compare.xcfg compare-nocomp -$MODE -nocomp
18+
./process.py screens/compare.xcfg compare-onlycomp -$MODE -onlycomp
1919

20-
rm screens/compare.cfg
20+
rm screens/compare.xcfg
2121

22-
gsed -i 's|"UUID".*||g' screens/compare-*.cfg
23-
gsed -i 's|"X1".*||g' screens/compare-*.cfg
24-
gsed -i 's|"X2".*||g' screens/compare-*.cfg
25-
gsed -i 's|"Y1".*||g' screens/compare-*.cfg
26-
gsed -i 's|"Y2".*||g' screens/compare-*.cfg
22+
gsed -i 's|"UUID".*||g' screens/compare-*.xcfg
23+
gsed -i 's|"X1".*||g' screens/compare-*.xcfg
24+
gsed -i 's|"X2".*||g' screens/compare-*.xcfg
25+
gsed -i 's|"Y1".*||g' screens/compare-*.xcfg
26+
gsed -i 's|"Y2".*||g' screens/compare-*.xcfg
2727

2828

29-
mv screens/{,$MODE-}compare-nocomp.cfg
30-
mv screens/{,$MODE-}compare-onlycomp.cfg
29+
mv screens/{,$MODE-}compare-nocomp.xcfg
30+
mv screens/{,$MODE-}compare-onlycomp.xcfg
3131

process.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def process(file_path, new_screen_name):
6060
sort_widgets_by_name(new_data['layout'])
6161

6262
ensure_dir('screens')
63-
target_file = os.path.join('screens', new_screen_name + '.cfg')
63+
target_file = os.path.join('screens', new_screen_name + '.xcfg')
6464
write_json(target_file, new_data)
6565

6666

@@ -74,7 +74,7 @@ def sort_widgets_by_name(layout):
7474

7575

7676
if len(sys.argv) < 3:
77-
sys.exit('Usage: process.py original_file.cfg new_screen_name [options]')
77+
sys.exit('Usage: process.py original_file.xcfg new_screen_name [options]')
7878

7979
process(sys.argv[1], sys.argv[2])
8080

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)