Skip to content

Commit 4f883c5

Browse files
author
petrucci4prez
committed
initial commit
0 parents  commit 4f883c5

543 files changed

Lines changed: 9128 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 31 additions & 0 deletions

complile-theme

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
#! /bin/bash
2+
3+
pkg_dir="pkg"/CinnXP
4+
icon_dir="$PWD"/"$pkg_dir"/usr/share/icons/CinnXP
5+
theme_dir="$PWD"/"$pkg_dir"/usr/share/themes/CinnXP
6+
theme_src="$PWD"/theme-src
7+
8+
######################
9+
### BUILD CURSOR THEME
10+
######################
11+
12+
echo "Now building cursor theme
13+
"
14+
15+
if [ ! -d "$icon_dir" ]; then
16+
mkdir -p "$icon_dir"/cursors
17+
fi
18+
19+
cd cursor-src
20+
21+
#generate cursor files
22+
for i in *.cursor
23+
do
24+
filename=${i%.cursor}
25+
xcursorgen "$i" "$icon_dir"/cursors/"$filename"
26+
done
27+
28+
cp cursor.theme "$icon_dir"
29+
30+
cd "$icon_dir"/cursors
31+
32+
#link remaining cursor icons
33+
ln -s sb_v_double_arrow 00008160000006810000408080010102
34+
ln -s sb_h_double_arrow 028006030e0e7ebffc7f7070c0600140
35+
ln -s crossed_circle 03b6e0fcb3499374a867c041f52298f0
36+
ln -s left_ptr_watch 08e8e1c95fe2fc01f976f1e063a24ccd
37+
ln -s copy 1081e37283d90000800003c07f3ef6bf
38+
ln -s sb_h_double_arrow 14fef782d02440884392942c11205230
39+
ln -s sb_v_double_arrow 2870a09082c103050810ffdffffe0204
40+
ln -s link 3085a0e285430894940527032f8b26df
41+
ln -s left_ptr_watch 3ecb610c1bf2410f44200f48c40d3599
42+
ln -s move 4498f0e0c1937ffe01fd06f973665830
43+
ln -s help 5c6cd98b3f3ebcb1f9c7f1c204630408
44+
ln -s copy 6407b0e94181790501fd1e167b474872
45+
ln -s link 640fb0e74195791501fd1ed57b41487f
46+
ln -s move 9081237383d90e509aa00f00170e968f
47+
ln -s hand 9d800788f1b08800ae810202380a0822
48+
ln -s left_ptr arrow
49+
ln -s top_left_corner bd_double_arrow
50+
ln -s top_right_corner bottom_left_corner
51+
ln -s top_left_corner bottom_right_corner
52+
ln -s sb_v_double_arrow bottom_side
53+
ln -s sb_v_double_arrow bottom_tee
54+
ln -s top_left_corner c7088f0f3e6c8088236ef8e1e3e70000
55+
ln -s crosshair cross
56+
ln -s crosshair cross_reverse
57+
ln -s help d9ce0ab605698f320427677b458ad60b
58+
ln -s crosshair diamond_cross
59+
ln -s hand dnd-none
60+
ln -s target dotbox
61+
ln -s target dot_box_mask
62+
ln -s sb_v_double_arrow double_arrow
63+
ln -s right_ptr draft_large
64+
ln -s right_ptr draft_small
65+
ln -s target draped_box
66+
ln -s hand e29285e634086352946a0e7090d73106
67+
ln -s top_right_corner fcf1c3c7cd4491d801f1e1c78f100000
68+
ln -s top_right_corner fd_double_arrow
69+
ln -s hand fleur
70+
ln -s hand grab
71+
ln -s hand grabbing
72+
ln -s hand hand1
73+
ln -s hand hand2
74+
ln -s sb_h_double_arrow h_double_arrow
75+
ln -s target icon
76+
ln -s sb_h_double_arrow left_side
77+
ln -s sb_h_double_arrow left_tee
78+
ln -s top_right_corner ll_angle
79+
ln -s top_left_corner lr_angle
80+
ln -s crossed_circle pirate
81+
ln -s help question_arrow
82+
ln -s sb_h_double_arrow right_side
83+
ln -s sb_h_double_arrow right_tee
84+
ln -s crosshair tcross
85+
ln -s left_ptr top_left_arrow
86+
ln -s sb_v_double_arrow top_side
87+
ln -s sb_v_double_arrow top_tee
88+
ln -s top_left_corner ul_angle
89+
ln -s top_right_corner ur_angle
90+
ln -s sb_v_double_arrow v_double_arrow
91+
ln -s wait watch
92+
ln -s crossed_circle X_cursor
93+
ln -s ibeam xterm
94+
95+
cd ..
96+
97+
######################################
98+
### BUILD GTK/CINNAMON/METACITY THEMES
99+
######################################
100+
101+
echo "Now building gtk, cinnamon, and metacity themes
102+
"
103+
104+
if [ ! -d "$theme_dir" ]; then
105+
mkdir -p "$theme_dir"/gtk-3.0
106+
fi
107+
108+
cd "$theme_src"/gtk-3.0
109+
110+
#ensure gtk-contained is up to date
111+
rm gtk-contained.css
112+
./parse-sass.sh
113+
114+
#change compiled files here (currently uses all png images and css files in gtk-3.0)
115+
files=$(find . -type f \( -name "*.png" -or -name "*gtk-contained.css" \))
116+
117+
#build xml file for gtk.gresource
118+
files=${files//.$'\n'/}
119+
files=${files//'./'/' <file>'}
120+
files=${files//$'\n'/'</file>'$'\n'}
121+
files="$files"'</file>'$'\n'
122+
123+
resource_path="/org/gnome/CinnXP"
124+
xml_path="/tmp/gresources.xml"
125+
126+
header="<?xml version=\"1.0\" encoding=\"UTF-8\"?>
127+
<gresources>
128+
<gresource prefix=\"$resource_path\">
129+
"
130+
footer=" </gresource>
131+
</gresources>"
132+
133+
echo "$header$files$footer" > "$xml_path"
134+
135+
#build gtk3 resources file
136+
glib-compile-resources --target="$theme_dir"/gtk-3.0/gtk.gresource /tmp/gresources.xml
137+
138+
echo '@import url("resource:///org/gnome/CinnXP/gtk-contained.css");' > "$theme_dir"/gtk-3.0/gtk.css
139+
140+
#~ rm "$xml_path"
141+
142+
#copy everything else
143+
cp -r "$theme_src"/{gtk-2.0,metacity-1,index.theme,cinnamon} "$theme_dir"

cursor-src/all-scroll.cursor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
28 11 12 all-scroll.png

cursor-src/all-scroll.png

483 Bytes

cursor-src/circle.cursor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
28 0 1 circle.png

cursor-src/circle.png

621 Bytes

cursor-src/copy.cursor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
28 0 1 copy.png

cursor-src/copy.png

625 Bytes

cursor-src/crossed_circle.cursor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
28 13 14 crossed_circle.png

cursor-src/crossed_circle.png

637 Bytes

0 commit comments

Comments
 (0)