├── .gitignore ├── README.md ├── example_output.jpg ├── fonts ├── pf_tempesta_seven.ttf ├── pf_tempesta_seven_bold.ttf ├── pf_tempesta_seven_compressed.ttf ├── pf_tempesta_seven_compressed_bold.ttf ├── pf_tempesta_seven_condensed.ttf ├── pf_tempesta_seven_condensed_bold.ttf ├── pf_tempesta_seven_extended.ttf └── pf_tempesta_seven_extended_bold.ttf ├── rgb.txt ├── satellites ├── download-tle.sh ├── iss.png ├── sat-dark.png └── sat.png ├── stars └── BSC ├── world ├── 01.jpg ├── 02.jpg ├── 03.jpg ├── 04.jpg ├── 05.jpg ├── 06.jpg ├── 07.jpg ├── 08.jpg ├── 09.jpg ├── 10.jpg ├── 11.jpg ├── 12.jpg ├── bump.jpg ├── clouds.jpg ├── download-clouds.sh ├── download-images.sh ├── earth.jpg ├── night.jpg └── specular.jpg ├── xfce-planet.conf.sample └── xfce-planet.sh /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *~ 3 | \#* 4 | .#* 5 | *.swp 6 | .DStore/ 7 | thumbs.db 8 | xplanet_output.png 9 | xfce-planet.conf 10 | default 11 | world/earth.jpg 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # xfce-planet 2 | 3 | A simple and easy to understand structure & collection of pre-selected resources 4 | and scripts to feed and control xplanet's high-definition textures, near-realtime 5 | cloudmap and satellite two-line elements (TLE) files. 6 | 7 | It was born out of the necessity to get xplanet to work with xfce or other 8 | compositing multi screen window managers, where xplanet cannot simply take 9 | over the root window to draw on (or you don't want it to do so). 10 | 11 | And, of course, you can use this with just minor tweaks for any other window manager. 12 | 13 | ![alt text](https://raw.githubusercontent.com/apollo-ng/xfce-planet/master/example_output.jpg "Example output") 14 | 15 | 16 | 17 | ## Installation 18 | 19 | ### Dependencies 20 | 21 | Make sure the following tools are available on your system: 22 | 23 | * xplanet 24 | * dos2unix (some TLE's have really weird WIN/DOS chars that break xplanet) 25 | * unzip 26 | * wget 27 | * convert (imagemagick) - only when you use your own textures/cloudmaps 28 | 29 | ### Cloning the Repo 30 | 31 | $ git clone https://github.com/apollo-ng/xfce-planet.git 32 | 33 | ### Set up a link 34 | 35 | This package provides all neccessary files in 5400x2700px high-definition 36 | resolution. If your distribution already placed a .xplanet folder in your 37 | $HOME, please move it to avoid collisions. 38 | 39 | $ mv $HOME/.xplanet $HOME/.xplanet_dist 40 | 41 | Now set the fallback link for xplanet: 42 | 43 | $ ln -s xfce-planet $HOME/.xplanet 44 | 45 | If you don't like this and want/need to deploy somewhere else you'll have to 46 | edit xfce-planet.sh and change the BASEDIR parameter accordingly. The rest 47 | should line up automatically again. 48 | 49 | ## Usage 50 | 51 | $ cd $HOME/.xplanet 52 | $ ./xfce-planet.sh 53 | 54 | Or simply put it into your local .xinitrc/autostart system 55 | 56 | Then select xplanet_output.png as your background image in xfce. 57 | 58 | ## Configuration 59 | 60 | On the first run, xfce-planet will copy a sample config to xfce-planet.conf. 61 | Please change all your local settings in there. 62 | 63 | 64 | The default sats are a subset of known USA/NRO spy satellites to remind 65 | oneself how far this totalitarian surveillance has come and the ISS 66 | as a contrast showing a glimpse of global co-operation. 67 | 68 | ## Bonus Points 69 | 70 | Goes along very well with the experimental ISS HDEV payload live stream: 71 | 72 | http://www.ustream.tv/channel/iss-hdev-payload 73 | 74 | And if you want to have it as a live backdrop on the desktop of your 75 | second monitor, have a look at https://github.com/chrippa/livestreamer and 76 | xwinwrap :) 77 | 78 | $ livestreamer -Q http://www.ustream.tv/channel/iss-hdev-payload best --player \ 79 | "./xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer2 -wid WID -nosound 80 | 81 | ## Support 82 | 83 | Please use the issue tracker if you have problems or questions. We are looking 84 | forward to see feedback and pull requests. Or just join us in #apollo on freenode. 85 | 86 | ## License 87 | 88 | This program is free software: you can redistribute it and/or modify 89 | it under the terms of the GNU General Public License as published by 90 | the Free Software Foundation, either version 3 of the License, or 91 | (at your option) any later version. 92 | 93 | This program is distributed in the hope that it will be useful, 94 | but WITHOUT ANY WARRANTY; without even the implied warranty of 95 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 96 | GNU General Public License for more details. 97 | 98 | You should have received a copy of the GNU General Public License 99 | along with this program. If not, see . 100 | -------------------------------------------------------------------------------- /example_output.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/example_output.jpg -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_bold.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_compressed.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_compressed.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_compressed_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_compressed_bold.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_condensed.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_condensed.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_condensed_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_condensed_bold.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_extended.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_extended.ttf -------------------------------------------------------------------------------- /fonts/pf_tempesta_seven_extended_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/fonts/pf_tempesta_seven_extended_bold.ttf -------------------------------------------------------------------------------- /rgb.txt: -------------------------------------------------------------------------------- 1 | # Copyright 1985, 1998 The Open Group 2 | # 3 | # All Rights Reserved. 4 | # 5 | # The above copyright notice and this permission notice shall be 6 | # included in all copies or substantial portions of the Software. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 9 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 10 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 11 | # NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY 12 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 13 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 14 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 15 | # 16 | # Except as contained in this notice, the name of The Open Group shall 17 | # not be used in advertising or otherwise to promote the sale, use or 18 | # other dealings in this Software without prior written authorization 19 | # from The Open Group. 20 | 21 | 255 250 250 snow 22 | 248 248 255 ghost white 23 | 248 248 255 GhostWhite 24 | 245 245 245 white smoke 25 | 245 245 245 WhiteSmoke 26 | 220 220 220 gainsboro 27 | 255 250 240 floral white 28 | 255 250 240 FloralWhite 29 | 253 245 230 old lace 30 | 253 245 230 OldLace 31 | 250 240 230 linen 32 | 250 235 215 antique white 33 | 250 235 215 AntiqueWhite 34 | 255 239 213 papaya whip 35 | 255 239 213 PapayaWhip 36 | 255 235 205 blanched almond 37 | 255 235 205 BlanchedAlmond 38 | 255 228 196 bisque 39 | 255 218 185 peach puff 40 | 255 218 185 PeachPuff 41 | 255 222 173 navajo white 42 | 255 222 173 NavajoWhite 43 | 255 228 181 moccasin 44 | 255 248 220 cornsilk 45 | 255 255 240 ivory 46 | 255 250 205 lemon chiffon 47 | 255 250 205 LemonChiffon 48 | 255 245 238 seashell 49 | 240 255 240 honeydew 50 | 245 255 250 mint cream 51 | 245 255 250 MintCream 52 | 240 255 255 azure 53 | 240 248 255 alice blue 54 | 240 248 255 AliceBlue 55 | 230 230 250 lavender 56 | 255 240 245 lavender blush 57 | 255 240 245 LavenderBlush 58 | 255 228 225 misty rose 59 | 255 228 225 MistyRose 60 | 255 255 255 white 61 | 0 0 0 black 62 | 47 79 79 dark slate gray 63 | 47 79 79 DarkSlateGray 64 | 47 79 79 dark slate grey 65 | 47 79 79 DarkSlateGrey 66 | 105 105 105 dim gray 67 | 105 105 105 DimGray 68 | 105 105 105 dim grey 69 | 105 105 105 DimGrey 70 | 112 128 144 slate gray 71 | 112 128 144 SlateGray 72 | 112 128 144 slate grey 73 | 112 128 144 SlateGrey 74 | 119 136 153 light slate gray 75 | 119 136 153 LightSlateGray 76 | 119 136 153 light slate grey 77 | 119 136 153 LightSlateGrey 78 | 190 190 190 gray 79 | 190 190 190 grey 80 | 211 211 211 light grey 81 | 211 211 211 LightGrey 82 | 211 211 211 light gray 83 | 211 211 211 LightGray 84 | 25 25 112 midnight blue 85 | 25 25 112 MidnightBlue 86 | 0 0 128 navy 87 | 0 0 128 navy blue 88 | 0 0 128 NavyBlue 89 | 100 149 237 cornflower blue 90 | 100 149 237 CornflowerBlue 91 | 72 61 139 dark slate blue 92 | 72 61 139 DarkSlateBlue 93 | 106 90 205 slate blue 94 | 106 90 205 SlateBlue 95 | 123 104 238 medium slate blue 96 | 123 104 238 MediumSlateBlue 97 | 132 112 255 light slate blue 98 | 132 112 255 LightSlateBlue 99 | 0 0 205 medium blue 100 | 0 0 205 MediumBlue 101 | 65 105 225 royal blue 102 | 65 105 225 RoyalBlue 103 | 0 0 255 blue 104 | 30 144 255 dodger blue 105 | 30 144 255 DodgerBlue 106 | 0 191 255 deep sky blue 107 | 0 191 255 DeepSkyBlue 108 | 135 206 235 sky blue 109 | 135 206 235 SkyBlue 110 | 135 206 250 light sky blue 111 | 135 206 250 LightSkyBlue 112 | 70 130 180 steel blue 113 | 70 130 180 SteelBlue 114 | 176 196 222 light steel blue 115 | 176 196 222 LightSteelBlue 116 | 173 216 230 light blue 117 | 173 216 230 LightBlue 118 | 176 224 230 powder blue 119 | 176 224 230 PowderBlue 120 | 175 238 238 pale turquoise 121 | 175 238 238 PaleTurquoise 122 | 0 206 209 dark turquoise 123 | 0 206 209 DarkTurquoise 124 | 72 209 204 medium turquoise 125 | 72 209 204 MediumTurquoise 126 | 64 224 208 turquoise 127 | 0 255 255 cyan 128 | 224 255 255 light cyan 129 | 224 255 255 LightCyan 130 | 95 158 160 cadet blue 131 | 95 158 160 CadetBlue 132 | 102 205 170 medium aquamarine 133 | 102 205 170 MediumAquamarine 134 | 127 255 212 aquamarine 135 | 0 100 0 dark green 136 | 0 100 0 DarkGreen 137 | 85 107 47 dark olive green 138 | 85 107 47 DarkOliveGreen 139 | 143 188 143 dark sea green 140 | 143 188 143 DarkSeaGreen 141 | 46 139 87 sea green 142 | 46 139 87 SeaGreen 143 | 60 179 113 medium sea green 144 | 60 179 113 MediumSeaGreen 145 | 32 178 170 light sea green 146 | 32 178 170 LightSeaGreen 147 | 152 251 152 pale green 148 | 152 251 152 PaleGreen 149 | 0 255 127 spring green 150 | 0 255 127 SpringGreen 151 | 124 252 0 lawn green 152 | 124 252 0 LawnGreen 153 | 0 255 0 green 154 | 127 255 0 chartreuse 155 | 0 250 154 medium spring green 156 | 0 250 154 MediumSpringGreen 157 | 173 255 47 green yellow 158 | 173 255 47 GreenYellow 159 | 50 205 50 lime green 160 | 50 205 50 LimeGreen 161 | 154 205 50 yellow green 162 | 154 205 50 YellowGreen 163 | 34 139 34 forest green 164 | 34 139 34 ForestGreen 165 | 107 142 35 olive drab 166 | 107 142 35 OliveDrab 167 | 189 183 107 dark khaki 168 | 189 183 107 DarkKhaki 169 | 240 230 140 khaki 170 | 238 232 170 pale goldenrod 171 | 238 232 170 PaleGoldenrod 172 | 250 250 210 light goldenrod yellow 173 | 250 250 210 LightGoldenrodYellow 174 | 255 255 224 light yellow 175 | 255 255 224 LightYellow 176 | 255 255 0 yellow 177 | 255 215 0 gold 178 | 238 221 130 light goldenrod 179 | 238 221 130 LightGoldenrod 180 | 218 165 32 goldenrod 181 | 184 134 11 dark goldenrod 182 | 184 134 11 DarkGoldenrod 183 | 188 143 143 rosy brown 184 | 188 143 143 RosyBrown 185 | 205 92 92 indian red 186 | 205 92 92 IndianRed 187 | 139 69 19 saddle brown 188 | 139 69 19 SaddleBrown 189 | 160 82 45 sienna 190 | 205 133 63 peru 191 | 222 184 135 burlywood 192 | 245 245 220 beige 193 | 245 222 179 wheat 194 | 244 164 96 sandy brown 195 | 244 164 96 SandyBrown 196 | 210 180 140 tan 197 | 210 105 30 chocolate 198 | 178 34 34 firebrick 199 | 165 42 42 brown 200 | 233 150 122 dark salmon 201 | 233 150 122 DarkSalmon 202 | 250 128 114 salmon 203 | 255 160 122 light salmon 204 | 255 160 122 LightSalmon 205 | 255 165 0 orange 206 | 255 140 0 dark orange 207 | 255 140 0 DarkOrange 208 | 255 127 80 coral 209 | 240 128 128 light coral 210 | 240 128 128 LightCoral 211 | 255 99 71 tomato 212 | 255 69 0 orange red 213 | 255 69 0 OrangeRed 214 | 255 0 0 red 215 | 255 105 180 hot pink 216 | 255 105 180 HotPink 217 | 255 20 147 deep pink 218 | 255 20 147 DeepPink 219 | 255 192 203 pink 220 | 255 182 193 light pink 221 | 255 182 193 LightPink 222 | 219 112 147 pale violet red 223 | 219 112 147 PaleVioletRed 224 | 176 48 96 maroon 225 | 199 21 133 medium violet red 226 | 199 21 133 MediumVioletRed 227 | 208 32 144 violet red 228 | 208 32 144 VioletRed 229 | 255 0 255 magenta 230 | 238 130 238 violet 231 | 221 160 221 plum 232 | 218 112 214 orchid 233 | 186 85 211 medium orchid 234 | 186 85 211 MediumOrchid 235 | 153 50 204 dark orchid 236 | 153 50 204 DarkOrchid 237 | 148 0 211 dark violet 238 | 148 0 211 DarkViolet 239 | 138 43 226 blue violet 240 | 138 43 226 BlueViolet 241 | 160 32 240 purple 242 | 147 112 219 medium purple 243 | 147 112 219 MediumPurple 244 | 216 191 216 thistle 245 | 255 250 250 snow1 246 | 238 233 233 snow2 247 | 205 201 201 snow3 248 | 139 137 137 snow4 249 | 255 245 238 seashell1 250 | 238 229 222 seashell2 251 | 205 197 191 seashell3 252 | 139 134 130 seashell4 253 | 255 239 219 AntiqueWhite1 254 | 238 223 204 AntiqueWhite2 255 | 205 192 176 AntiqueWhite3 256 | 139 131 120 AntiqueWhite4 257 | 255 228 196 bisque1 258 | 238 213 183 bisque2 259 | 205 183 158 bisque3 260 | 139 125 107 bisque4 261 | 255 218 185 PeachPuff1 262 | 238 203 173 PeachPuff2 263 | 205 175 149 PeachPuff3 264 | 139 119 101 PeachPuff4 265 | 255 222 173 NavajoWhite1 266 | 238 207 161 NavajoWhite2 267 | 205 179 139 NavajoWhite3 268 | 139 121 94 NavajoWhite4 269 | 255 250 205 LemonChiffon1 270 | 238 233 191 LemonChiffon2 271 | 205 201 165 LemonChiffon3 272 | 139 137 112 LemonChiffon4 273 | 255 248 220 cornsilk1 274 | 238 232 205 cornsilk2 275 | 205 200 177 cornsilk3 276 | 139 136 120 cornsilk4 277 | 255 255 240 ivory1 278 | 238 238 224 ivory2 279 | 205 205 193 ivory3 280 | 139 139 131 ivory4 281 | 240 255 240 honeydew1 282 | 224 238 224 honeydew2 283 | 193 205 193 honeydew3 284 | 131 139 131 honeydew4 285 | 255 240 245 LavenderBlush1 286 | 238 224 229 LavenderBlush2 287 | 205 193 197 LavenderBlush3 288 | 139 131 134 LavenderBlush4 289 | 255 228 225 MistyRose1 290 | 238 213 210 MistyRose2 291 | 205 183 181 MistyRose3 292 | 139 125 123 MistyRose4 293 | 240 255 255 azure1 294 | 224 238 238 azure2 295 | 193 205 205 azure3 296 | 131 139 139 azure4 297 | 131 111 255 SlateBlue1 298 | 122 103 238 SlateBlue2 299 | 105 89 205 SlateBlue3 300 | 71 60 139 SlateBlue4 301 | 72 118 255 RoyalBlue1 302 | 67 110 238 RoyalBlue2 303 | 58 95 205 RoyalBlue3 304 | 39 64 139 RoyalBlue4 305 | 0 0 255 blue1 306 | 0 0 238 blue2 307 | 0 0 205 blue3 308 | 0 0 139 blue4 309 | 30 144 255 DodgerBlue1 310 | 28 134 238 DodgerBlue2 311 | 24 116 205 DodgerBlue3 312 | 16 78 139 DodgerBlue4 313 | 99 184 255 SteelBlue1 314 | 92 172 238 SteelBlue2 315 | 79 148 205 SteelBlue3 316 | 54 100 139 SteelBlue4 317 | 0 191 255 DeepSkyBlue1 318 | 0 178 238 DeepSkyBlue2 319 | 0 154 205 DeepSkyBlue3 320 | 0 104 139 DeepSkyBlue4 321 | 135 206 255 SkyBlue1 322 | 126 192 238 SkyBlue2 323 | 108 166 205 SkyBlue3 324 | 74 112 139 SkyBlue4 325 | 176 226 255 LightSkyBlue1 326 | 164 211 238 LightSkyBlue2 327 | 141 182 205 LightSkyBlue3 328 | 96 123 139 LightSkyBlue4 329 | 198 226 255 SlateGray1 330 | 185 211 238 SlateGray2 331 | 159 182 205 SlateGray3 332 | 108 123 139 SlateGray4 333 | 202 225 255 LightSteelBlue1 334 | 188 210 238 LightSteelBlue2 335 | 162 181 205 LightSteelBlue3 336 | 110 123 139 LightSteelBlue4 337 | 191 239 255 LightBlue1 338 | 178 223 238 LightBlue2 339 | 154 192 205 LightBlue3 340 | 104 131 139 LightBlue4 341 | 224 255 255 LightCyan1 342 | 209 238 238 LightCyan2 343 | 180 205 205 LightCyan3 344 | 122 139 139 LightCyan4 345 | 187 255 255 PaleTurquoise1 346 | 174 238 238 PaleTurquoise2 347 | 150 205 205 PaleTurquoise3 348 | 102 139 139 PaleTurquoise4 349 | 152 245 255 CadetBlue1 350 | 142 229 238 CadetBlue2 351 | 122 197 205 CadetBlue3 352 | 83 134 139 CadetBlue4 353 | 0 245 255 turquoise1 354 | 0 229 238 turquoise2 355 | 0 197 205 turquoise3 356 | 0 134 139 turquoise4 357 | 0 255 255 cyan1 358 | 0 238 238 cyan2 359 | 0 205 205 cyan3 360 | 0 139 139 cyan4 361 | 151 255 255 DarkSlateGray1 362 | 141 238 238 DarkSlateGray2 363 | 121 205 205 DarkSlateGray3 364 | 82 139 139 DarkSlateGray4 365 | 127 255 212 aquamarine1 366 | 118 238 198 aquamarine2 367 | 102 205 170 aquamarine3 368 | 69 139 116 aquamarine4 369 | 193 255 193 DarkSeaGreen1 370 | 180 238 180 DarkSeaGreen2 371 | 155 205 155 DarkSeaGreen3 372 | 105 139 105 DarkSeaGreen4 373 | 84 255 159 SeaGreen1 374 | 78 238 148 SeaGreen2 375 | 67 205 128 SeaGreen3 376 | 46 139 87 SeaGreen4 377 | 154 255 154 PaleGreen1 378 | 144 238 144 PaleGreen2 379 | 124 205 124 PaleGreen3 380 | 84 139 84 PaleGreen4 381 | 0 255 127 SpringGreen1 382 | 0 238 118 SpringGreen2 383 | 0 205 102 SpringGreen3 384 | 0 139 69 SpringGreen4 385 | 0 255 0 green1 386 | 0 238 0 green2 387 | 0 205 0 green3 388 | 0 139 0 green4 389 | 127 255 0 chartreuse1 390 | 118 238 0 chartreuse2 391 | 102 205 0 chartreuse3 392 | 69 139 0 chartreuse4 393 | 192 255 62 OliveDrab1 394 | 179 238 58 OliveDrab2 395 | 154 205 50 OliveDrab3 396 | 105 139 34 OliveDrab4 397 | 202 255 112 DarkOliveGreen1 398 | 188 238 104 DarkOliveGreen2 399 | 162 205 90 DarkOliveGreen3 400 | 110 139 61 DarkOliveGreen4 401 | 255 246 143 khaki1 402 | 238 230 133 khaki2 403 | 205 198 115 khaki3 404 | 139 134 78 khaki4 405 | 255 236 139 LightGoldenrod1 406 | 238 220 130 LightGoldenrod2 407 | 205 190 112 LightGoldenrod3 408 | 139 129 76 LightGoldenrod4 409 | 255 255 224 LightYellow1 410 | 238 238 209 LightYellow2 411 | 205 205 180 LightYellow3 412 | 139 139 122 LightYellow4 413 | 255 255 0 yellow1 414 | 238 238 0 yellow2 415 | 205 205 0 yellow3 416 | 139 139 0 yellow4 417 | 255 215 0 gold1 418 | 238 201 0 gold2 419 | 205 173 0 gold3 420 | 139 117 0 gold4 421 | 255 193 37 goldenrod1 422 | 238 180 34 goldenrod2 423 | 205 155 29 goldenrod3 424 | 139 105 20 goldenrod4 425 | 255 185 15 DarkGoldenrod1 426 | 238 173 14 DarkGoldenrod2 427 | 205 149 12 DarkGoldenrod3 428 | 139 101 8 DarkGoldenrod4 429 | 255 193 193 RosyBrown1 430 | 238 180 180 RosyBrown2 431 | 205 155 155 RosyBrown3 432 | 139 105 105 RosyBrown4 433 | 255 106 106 IndianRed1 434 | 238 99 99 IndianRed2 435 | 205 85 85 IndianRed3 436 | 139 58 58 IndianRed4 437 | 255 130 71 sienna1 438 | 238 121 66 sienna2 439 | 205 104 57 sienna3 440 | 139 71 38 sienna4 441 | 255 211 155 burlywood1 442 | 238 197 145 burlywood2 443 | 205 170 125 burlywood3 444 | 139 115 85 burlywood4 445 | 255 231 186 wheat1 446 | 238 216 174 wheat2 447 | 205 186 150 wheat3 448 | 139 126 102 wheat4 449 | 255 165 79 tan1 450 | 238 154 73 tan2 451 | 205 133 63 tan3 452 | 139 90 43 tan4 453 | 255 127 36 chocolate1 454 | 238 118 33 chocolate2 455 | 205 102 29 chocolate3 456 | 139 69 19 chocolate4 457 | 255 48 48 firebrick1 458 | 238 44 44 firebrick2 459 | 205 38 38 firebrick3 460 | 139 26 26 firebrick4 461 | 255 64 64 brown1 462 | 238 59 59 brown2 463 | 205 51 51 brown3 464 | 139 35 35 brown4 465 | 255 140 105 salmon1 466 | 238 130 98 salmon2 467 | 205 112 84 salmon3 468 | 139 76 57 salmon4 469 | 255 160 122 LightSalmon1 470 | 238 149 114 LightSalmon2 471 | 205 129 98 LightSalmon3 472 | 139 87 66 LightSalmon4 473 | 255 165 0 orange1 474 | 238 154 0 orange2 475 | 205 133 0 orange3 476 | 139 90 0 orange4 477 | 255 127 0 DarkOrange1 478 | 238 118 0 DarkOrange2 479 | 205 102 0 DarkOrange3 480 | 139 69 0 DarkOrange4 481 | 255 114 86 coral1 482 | 238 106 80 coral2 483 | 205 91 69 coral3 484 | 139 62 47 coral4 485 | 255 99 71 tomato1 486 | 238 92 66 tomato2 487 | 205 79 57 tomato3 488 | 139 54 38 tomato4 489 | 255 69 0 OrangeRed1 490 | 238 64 0 OrangeRed2 491 | 205 55 0 OrangeRed3 492 | 139 37 0 OrangeRed4 493 | 255 0 0 red1 494 | 238 0 0 red2 495 | 205 0 0 red3 496 | 139 0 0 red4 497 | 255 20 147 DeepPink1 498 | 238 18 137 DeepPink2 499 | 205 16 118 DeepPink3 500 | 139 10 80 DeepPink4 501 | 255 110 180 HotPink1 502 | 238 106 167 HotPink2 503 | 205 96 144 HotPink3 504 | 139 58 98 HotPink4 505 | 255 181 197 pink1 506 | 238 169 184 pink2 507 | 205 145 158 pink3 508 | 139 99 108 pink4 509 | 255 174 185 LightPink1 510 | 238 162 173 LightPink2 511 | 205 140 149 LightPink3 512 | 139 95 101 LightPink4 513 | 255 130 171 PaleVioletRed1 514 | 238 121 159 PaleVioletRed2 515 | 205 104 137 PaleVioletRed3 516 | 139 71 93 PaleVioletRed4 517 | 255 52 179 maroon1 518 | 238 48 167 maroon2 519 | 205 41 144 maroon3 520 | 139 28 98 maroon4 521 | 255 62 150 VioletRed1 522 | 238 58 140 VioletRed2 523 | 205 50 120 VioletRed3 524 | 139 34 82 VioletRed4 525 | 255 0 255 magenta1 526 | 238 0 238 magenta2 527 | 205 0 205 magenta3 528 | 139 0 139 magenta4 529 | 255 131 250 orchid1 530 | 238 122 233 orchid2 531 | 205 105 201 orchid3 532 | 139 71 137 orchid4 533 | 255 187 255 plum1 534 | 238 174 238 plum2 535 | 205 150 205 plum3 536 | 139 102 139 plum4 537 | 224 102 255 MediumOrchid1 538 | 209 95 238 MediumOrchid2 539 | 180 82 205 MediumOrchid3 540 | 122 55 139 MediumOrchid4 541 | 191 62 255 DarkOrchid1 542 | 178 58 238 DarkOrchid2 543 | 154 50 205 DarkOrchid3 544 | 104 34 139 DarkOrchid4 545 | 155 48 255 purple1 546 | 145 44 238 purple2 547 | 125 38 205 purple3 548 | 85 26 139 purple4 549 | 171 130 255 MediumPurple1 550 | 159 121 238 MediumPurple2 551 | 137 104 205 MediumPurple3 552 | 93 71 139 MediumPurple4 553 | 255 225 255 thistle1 554 | 238 210 238 thistle2 555 | 205 181 205 thistle3 556 | 139 123 139 thistle4 557 | 0 0 0 gray0 558 | 0 0 0 grey0 559 | 3 3 3 gray1 560 | 3 3 3 grey1 561 | 5 5 5 gray2 562 | 5 5 5 grey2 563 | 8 8 8 gray3 564 | 8 8 8 grey3 565 | 10 10 10 gray4 566 | 10 10 10 grey4 567 | 13 13 13 gray5 568 | 13 13 13 grey5 569 | 15 15 15 gray6 570 | 15 15 15 grey6 571 | 18 18 18 gray7 572 | 18 18 18 grey7 573 | 20 20 20 gray8 574 | 20 20 20 grey8 575 | 23 23 23 gray9 576 | 23 23 23 grey9 577 | 26 26 26 gray10 578 | 26 26 26 grey10 579 | 28 28 28 gray11 580 | 28 28 28 grey11 581 | 31 31 31 gray12 582 | 31 31 31 grey12 583 | 33 33 33 gray13 584 | 33 33 33 grey13 585 | 36 36 36 gray14 586 | 36 36 36 grey14 587 | 38 38 38 gray15 588 | 38 38 38 grey15 589 | 41 41 41 gray16 590 | 41 41 41 grey16 591 | 43 43 43 gray17 592 | 43 43 43 grey17 593 | 46 46 46 gray18 594 | 46 46 46 grey18 595 | 48 48 48 gray19 596 | 48 48 48 grey19 597 | 51 51 51 gray20 598 | 51 51 51 grey20 599 | 54 54 54 gray21 600 | 54 54 54 grey21 601 | 56 56 56 gray22 602 | 56 56 56 grey22 603 | 59 59 59 gray23 604 | 59 59 59 grey23 605 | 61 61 61 gray24 606 | 61 61 61 grey24 607 | 64 64 64 gray25 608 | 64 64 64 grey25 609 | 66 66 66 gray26 610 | 66 66 66 grey26 611 | 69 69 69 gray27 612 | 69 69 69 grey27 613 | 71 71 71 gray28 614 | 71 71 71 grey28 615 | 74 74 74 gray29 616 | 74 74 74 grey29 617 | 77 77 77 gray30 618 | 77 77 77 grey30 619 | 79 79 79 gray31 620 | 79 79 79 grey31 621 | 82 82 82 gray32 622 | 82 82 82 grey32 623 | 84 84 84 gray33 624 | 84 84 84 grey33 625 | 87 87 87 gray34 626 | 87 87 87 grey34 627 | 89 89 89 gray35 628 | 89 89 89 grey35 629 | 92 92 92 gray36 630 | 92 92 92 grey36 631 | 94 94 94 gray37 632 | 94 94 94 grey37 633 | 97 97 97 gray38 634 | 97 97 97 grey38 635 | 99 99 99 gray39 636 | 99 99 99 grey39 637 | 102 102 102 gray40 638 | 102 102 102 grey40 639 | 105 105 105 gray41 640 | 105 105 105 grey41 641 | 107 107 107 gray42 642 | 107 107 107 grey42 643 | 110 110 110 gray43 644 | 110 110 110 grey43 645 | 112 112 112 gray44 646 | 112 112 112 grey44 647 | 115 115 115 gray45 648 | 115 115 115 grey45 649 | 117 117 117 gray46 650 | 117 117 117 grey46 651 | 120 120 120 gray47 652 | 120 120 120 grey47 653 | 122 122 122 gray48 654 | 122 122 122 grey48 655 | 125 125 125 gray49 656 | 125 125 125 grey49 657 | 127 127 127 gray50 658 | 127 127 127 grey50 659 | 130 130 130 gray51 660 | 130 130 130 grey51 661 | 133 133 133 gray52 662 | 133 133 133 grey52 663 | 135 135 135 gray53 664 | 135 135 135 grey53 665 | 138 138 138 gray54 666 | 138 138 138 grey54 667 | 140 140 140 gray55 668 | 140 140 140 grey55 669 | 143 143 143 gray56 670 | 143 143 143 grey56 671 | 145 145 145 gray57 672 | 145 145 145 grey57 673 | 148 148 148 gray58 674 | 148 148 148 grey58 675 | 150 150 150 gray59 676 | 150 150 150 grey59 677 | 153 153 153 gray60 678 | 153 153 153 grey60 679 | 156 156 156 gray61 680 | 156 156 156 grey61 681 | 158 158 158 gray62 682 | 158 158 158 grey62 683 | 161 161 161 gray63 684 | 161 161 161 grey63 685 | 163 163 163 gray64 686 | 163 163 163 grey64 687 | 166 166 166 gray65 688 | 166 166 166 grey65 689 | 168 168 168 gray66 690 | 168 168 168 grey66 691 | 171 171 171 gray67 692 | 171 171 171 grey67 693 | 173 173 173 gray68 694 | 173 173 173 grey68 695 | 176 176 176 gray69 696 | 176 176 176 grey69 697 | 179 179 179 gray70 698 | 179 179 179 grey70 699 | 181 181 181 gray71 700 | 181 181 181 grey71 701 | 184 184 184 gray72 702 | 184 184 184 grey72 703 | 186 186 186 gray73 704 | 186 186 186 grey73 705 | 189 189 189 gray74 706 | 189 189 189 grey74 707 | 191 191 191 gray75 708 | 191 191 191 grey75 709 | 194 194 194 gray76 710 | 194 194 194 grey76 711 | 196 196 196 gray77 712 | 196 196 196 grey77 713 | 199 199 199 gray78 714 | 199 199 199 grey78 715 | 201 201 201 gray79 716 | 201 201 201 grey79 717 | 204 204 204 gray80 718 | 204 204 204 grey80 719 | 207 207 207 gray81 720 | 207 207 207 grey81 721 | 209 209 209 gray82 722 | 209 209 209 grey82 723 | 212 212 212 gray83 724 | 212 212 212 grey83 725 | 214 214 214 gray84 726 | 214 214 214 grey84 727 | 217 217 217 gray85 728 | 217 217 217 grey85 729 | 219 219 219 gray86 730 | 219 219 219 grey86 731 | 222 222 222 gray87 732 | 222 222 222 grey87 733 | 224 224 224 gray88 734 | 224 224 224 grey88 735 | 227 227 227 gray89 736 | 227 227 227 grey89 737 | 229 229 229 gray90 738 | 229 229 229 grey90 739 | 232 232 232 gray91 740 | 232 232 232 grey91 741 | 235 235 235 gray92 742 | 235 235 235 grey92 743 | 237 237 237 gray93 744 | 237 237 237 grey93 745 | 240 240 240 gray94 746 | 240 240 240 grey94 747 | 242 242 242 gray95 748 | 242 242 242 grey95 749 | 245 245 245 gray96 750 | 245 245 245 grey96 751 | 247 247 247 gray97 752 | 247 247 247 grey97 753 | 250 250 250 gray98 754 | 250 250 250 grey98 755 | 252 252 252 gray99 756 | 252 252 252 grey99 757 | 255 255 255 gray100 758 | 255 255 255 grey100 759 | 169 169 169 dark grey 760 | 169 169 169 DarkGrey 761 | 169 169 169 dark gray 762 | 169 169 169 DarkGray 763 | 0 0 139 dark blue 764 | 0 0 139 DarkBlue 765 | 0 139 139 dark cyan 766 | 0 139 139 DarkCyan 767 | 139 0 139 dark magenta 768 | 139 0 139 DarkMagenta 769 | 139 0 0 dark red 770 | 139 0 0 DarkRed 771 | 144 238 144 light green 772 | 144 238 144 LightGreen 773 | -------------------------------------------------------------------------------- /satellites/download-tle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | download_tle () { 4 | wget $1 -q -T 5 --no-cache -O $2 > /dev/null 2>&1 5 | } 6 | 7 | # ISS (LEO) #################################################################### 8 | 9 | download_tle http://www.celestrak.com/NORAD/elements/stations.txt stations.txt 10 | 11 | if [ -s stations.txt ]; 12 | then 13 | dos2unix stations.txt > /dev/null 2>&1 14 | echo "$(cat stations.txt | grep -A2 ISS | head -n3 | tail -1 | awk '{print $2;}') \" ISS\" image=satellites/iss.png transparent={0,0,0} color={200,200,200} altcirc=0 altcirc=45 trail={orbit,-15,5,1}" > iss_leo 15 | cat stations.txt | grep --no-group-separator -A2 ISS > iss_leo.tle 16 | rm stations.txt 17 | fi 18 | 19 | # Iridium (LEO) ################################################################ 20 | 21 | download_tle http://www.celestrak.com/NORAD/elements/iridium.txt iridium.txt 22 | 23 | if [ -s iridium.txt ]; 24 | then 25 | dos2unix iridium.txt > /dev/null 2>&1 26 | mv iridium.txt iridium_leo.tle 27 | 28 | while read tlename; do 29 | name=$(echo "$tlename" |sed 's/IRIDIUM //;s/ \[.\] *//') 30 | type=$(echo "$tlename" |sed 's/.*\[\(.\)\].*/\1/') 31 | read dummy 32 | read dummy SAT dummy 33 | case $type in # Make inactive sats darker 34 | -) color='10,10,090'; img="sat-dark.png" ;; 35 | *) color='70,70,250'; img="sat.png" ;; 36 | esac 37 | 38 | echo "${SAT} {$name} image=satellites/$img transparent={0,0,0} color={$color} fontsize=9 trail={orbit,-5,0,1}" 39 | done iridium_leo 40 | img="sat.png" 41 | fi 42 | 43 | # GLONASS 44 | 45 | download_tle https://celestrak.com/NORAD/elements/glo-ops.txt glo-ops.txt 46 | 47 | if [ -s glo-ops.txt ]; 48 | then 49 | dos2unix glo-ops.txt > /dev/null 2>&1 50 | mv glo-ops.txt glonass_leo.tle 51 | 52 | while read tlename; do 53 | read dummy 54 | read dummy SAT dummy 55 | 56 | echo "${SAT} {$name} image=satellites/$img transparent={0,0,0} color={$color} fontsize=9 trail={orbit,-5,0,1}" 57 | done glonass_leo 58 | fi 59 | 60 | 61 | # Starlink 62 | 63 | download_tle https://celestrak.com/NORAD/elements/starlink.txt starlink.txt 64 | 65 | if [ -s starlink.txt ]; 66 | then 67 | dos2unix starlink.txt > /dev/null 2>&1 68 | mv starlink.txt starlink_leo.tle 69 | 70 | while read tlename; do 71 | name=$(echo "$tlename" |sed 's/STARLINK-//;s/ \[.\] *//') 72 | read dummy 73 | read dummy SAT dummy 74 | 75 | echo "${SAT} {$name} image=satellites/$img transparent={0,0,0} color={0,246,255} fontsize=9 trail={orbit,-3,0,1}" 76 | done starlink_leo 77 | fi 78 | 79 | 80 | # Classified/Spy/Surveilance/Military (mostly LEO) ############################# 81 | 82 | get_sats_by_name () { 83 | 84 | IN_TLE=$1 85 | SAT_NAME=$2 86 | TLE_NAME=$3 87 | 88 | if [ -s ${TLE_NAME} ]; 89 | then 90 | echo "" > ${TLE_NAME} 91 | fi 92 | 93 | cat ${IN_TLE} | grep --no-group-separator -A2 ${SAT_NAME} > ${TLE_NAME}.tle 94 | cat ${TLE_NAME}.tle | grep ${SAT_NAME} > .${SAT_NAME}.tmp 95 | 96 | while read in; 97 | do 98 | SAT=$(cat ${TLE_NAME}.tle | grep -A2 "${in}" | tail -1 | awk '{print $2;}' ) 99 | echo "${SAT} \" ${in}\" image=satellites/sat.png transparent={0,0,0} color={255,71,0} fontsize=9 trail={orbit,-5,0,1}" >> ${TLE_NAME} 100 | done < .${SAT_NAME}.tmp 101 | 102 | rm .${SAT_NAME}.tmp 103 | } 104 | 105 | download_tle https://www.prismnet.com/~mmccants/tles/classfd.zip classfd.zip 106 | 107 | if [ -s classfd.zip ]; 108 | then 109 | unzip -o classfd.zip > /dev/null 2>&1 110 | dos2unix classfd.tle > /dev/null 2>&1 111 | 112 | # Pick up all birds with USA* designators 113 | get_sats_by_name classfd.tle USA usa_leo 114 | 115 | # Pick up all birds with NOSS* designators 116 | get_sats_by_name classfd.tle NOSS noss_leo 117 | 118 | # Pick up all birds with DSP* designators 119 | get_sats_by_name classfd.tle DSP dsp_geo 120 | 121 | # Pick up all birds with Milstar* designators 122 | get_sats_by_name classfd.tle Milstar milstar_geo 123 | 124 | # Have a look at satellites/classfd.tle to 125 | # find more birds you may extract here as well 126 | 127 | rm classfd.zip 128 | fi 129 | 130 | # Geostationary (GEO) ########################################################## 131 | 132 | # Remember that you need to zoom out your view (change RAD) to see these :) 133 | 134 | download_tle http://www.celestrak.com/NORAD/elements/geo.txt geo.txt 135 | 136 | if [ -s geo.txt ]; 137 | then 138 | dos2unix geo.txt > /dev/null 2>&1 139 | mv geo.txt geo_geo.tle 140 | awk '{if (count++%3==0) print $0;}' geo_geo.tle > .geo.tmp 141 | echo "" > geo_geo 142 | while read in; 143 | do 144 | SAT=$(cat geo_geo.tle | grep --no-group-separator -A2 "${in}" | tail -1 | awk '{print $2;}' ) 145 | echo "${SAT} \" ${in}\" image=satellites/sat.png transparent={0,0,0} color={117,137,12} fontsize=9}" >> geo_geo 146 | done < .geo.tmp 147 | rm .geo.tmp 148 | fi 149 | 150 | echo "$(date +%Y%m%d-%h%m)" > .last_updated 151 | -------------------------------------------------------------------------------- /satellites/iss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/satellites/iss.png -------------------------------------------------------------------------------- /satellites/sat-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/satellites/sat-dark.png -------------------------------------------------------------------------------- /satellites/sat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/satellites/sat.png -------------------------------------------------------------------------------- /world/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/01.jpg -------------------------------------------------------------------------------- /world/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/02.jpg -------------------------------------------------------------------------------- /world/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/03.jpg -------------------------------------------------------------------------------- /world/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/04.jpg -------------------------------------------------------------------------------- /world/05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/05.jpg -------------------------------------------------------------------------------- /world/06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/06.jpg -------------------------------------------------------------------------------- /world/07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/07.jpg -------------------------------------------------------------------------------- /world/08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/08.jpg -------------------------------------------------------------------------------- /world/09.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/09.jpg -------------------------------------------------------------------------------- /world/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/10.jpg -------------------------------------------------------------------------------- /world/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/11.jpg -------------------------------------------------------------------------------- /world/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/12.jpg -------------------------------------------------------------------------------- /world/bump.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/bump.jpg -------------------------------------------------------------------------------- /world/clouds.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/clouds.jpg -------------------------------------------------------------------------------- /world/download-clouds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 4 | 5 | # Get latest remote checksum 6 | ORIGINSHA=$(wget https://raw.githubusercontent.com/apollo-ng/cloudmap/master/global.sha256 -q -T 5 --no-cache -O - | awk {'print $1;'}) 7 | 8 | # Generate local checksum 9 | if [ -e clouds.jpg ]; 10 | then 11 | LOCALSHA=$(sha256sum clouds.jpg | awk {'print $1;'}) 12 | fi 13 | 14 | # Check if we're behind origin 15 | if [ "${ORIGINSHA}" != "${LOCALSHA}" ]; 16 | then 17 | 18 | # Download raw global.jpg from master 19 | wget https://raw.githubusercontent.com/apollo-ng/cloudmap/master/global.jpg?${ORIGINSHA} --no-cache -q -T 5 -O global.jpg 20 | 21 | # Generate checksum of downloaded file 22 | NEWSHA=$(sha256sum global.jpg | awk {'print $1;'}) 23 | 24 | # Check if download's chksum corresponds to to origin 25 | if [ "$NEWSHA" = "$ORIGINSHA" ]; 26 | then 27 | mv global.jpg clouds.jpg 28 | else 29 | rm global.jpg 30 | fi 31 | fi 32 | -------------------------------------------------------------------------------- /world/download-images.sh: -------------------------------------------------------------------------------- 1 | echo "Downloading images... " 2 | 3 | # NASA Visible Earth / Blue Marble Images from 2004 4 | 5 | URL="http://eoimages.gsfc.nasa.gov/images/imagerecords" 6 | wget -O 01.jpg "$URL/73000/73580/world.topo.bathy.200401.3x5400x2700.jpg" 7 | wget -O 02.jpg "$URL/73000/73605/world.topo.bathy.200402.3x5400x2700.jpg" 8 | wget -O 03.jpg "$URL/73000/73630/world.topo.bathy.200403.3x5400x2700.jpg" 9 | wget -O 04.jpg "$URL/73000/73655/world.topo.bathy.200404.3x5400x2700.jpg" 10 | wget -O 05.jpg "$URL/73000/73701/world.topo.bathy.200405.3x5400x2700.jpg" 11 | wget -O 06.jpg "$URL/73000/73726/world.topo.bathy.200406.3x5400x2700.jpg" 12 | wget -O 07.jpg "$URL/73000/73751/world.topo.bathy.200407.3x5400x2700.jpg" 13 | wget -O 08.jpg "$URL/73000/73776/world.topo.bathy.200408.3x5400x2700.jpg" 14 | wget -O 09.jpg "$URL/73000/73801/world.topo.bathy.200409.3x5400x2700.jpg" 15 | wget -O 10.jpg "$URL/73000/73826/world.topo.bathy.200410.3x5400x2700.jpg" 16 | wget -O 11.jpg "$URL/73000/73884/world.topo.bathy.200411.3x5400x2700.jpg" 17 | wget -O 12.jpg "$URL/73000/73909/world.topo.bathy.200412.3x5400x2700.jpg" 18 | 19 | # Bump map for relief 20 | 21 | wget -O bump.jpg "https://raw.githubusercontent.com/sukharev/ucd/master/PrecomputedAtmosphericScattering/height%20maps/srtm_ramp2.world.5400x2700.jpg" 22 | 23 | # Night view of earth 2012 24 | 25 | wget -O night.tmp.jpg "${URL}/79000/79765/dnb_land_ocean_ice.2012.13500x6750.jpg" 26 | convert -resize 5400x2700 night.tmp.jpg night.jpg 27 | rm night.tmp.jpg 28 | 29 | # Specular map for reflections 30 | 31 | wget -O specular.jpg "http://misc.oranse.net/ie/inverted_earth/gebco_bathy.5400x2700.jpg" 32 | 33 | echo "DONE." 34 | 35 | -------------------------------------------------------------------------------- /world/earth.jpg: -------------------------------------------------------------------------------- 1 | 01.jpg -------------------------------------------------------------------------------- /world/night.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/night.jpg -------------------------------------------------------------------------------- /world/specular.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apollo-ng/xfce-planet/a3ea3f15449c6a8f7b4b7dd3f95453b345a547ae/world/specular.jpg -------------------------------------------------------------------------------- /xfce-planet.conf.sample: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # xfce-planet configuration # 3 | ################################################################################ 4 | 5 | OUTPUT="${BASEDIR}/xplanet_output.png" 6 | 7 | # Set your monitor resolution and viewing distance 8 | 9 | RES="1600x1200" 10 | RAD="41" 11 | 12 | # Observer position (Eurocentric View) 13 | 14 | LAT="30" 15 | LON="11" 16 | 17 | # Fonts 18 | 19 | FONT=${BASEDIR}/fonts/pf_tempesta_seven.ttf 20 | FONTSIZE=10 21 | 22 | # Window Manager background image reload trigger 23 | 24 | # XFCE: "xfdesktop --reload" tells xfce to reload the desktop 25 | # LightDM: "" image is automatically updated (Tested by Marco) 26 | # Other: "?" We appreciate your feedback 27 | 28 | WM_RELOAD_CMD="xfdesktop --reload" 29 | 30 | # Adjust your desired update intervalls for grid/off-grid usage (seconds) 31 | 32 | SLEEP_ON_AC=5 33 | SLEEP_ON_BAT=20 34 | 35 | # Satellite file switch delay (number of renders between switches) 36 | DELAY=5 37 | 38 | # Defaul xplanet parameters 39 | 40 | DEFCFG=$(cat << EOF 41 | [earth] 42 | "Earth" 43 | map=${BASEDIR}/world/earth.jpg 44 | night_map=${BASEDIR}/world/night.jpg 45 | bump_map=${BASEDIR}/world/bump.jpg 46 | specular_map=${BASEDIR}/world/specular.jpg 47 | cloud_map=${BASEDIR}/world/clouds.jpg 48 | bump_scale=1 49 | shade=10 50 | EOF 51 | ) 52 | -------------------------------------------------------------------------------- /xfce-planet.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU General Public License as published by 5 | # the Free Software Foundation, either version 3 of the License, or 6 | # (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # You should have received a copy of the GNU General Public License 14 | # along with this program. If not, see . 15 | 16 | BASEDIR="${HOME}/.xplanet" 17 | 18 | ################################################################################ 19 | # INIT # 20 | ################################################################################ 21 | 22 | if [ -r ${BASEDIR}/xfce-planet.conf ]; 23 | then 24 | # Load config 25 | . ${BASEDIR}/xfce-planet.conf 26 | else 27 | # Likely to be a new install 28 | echo "Hmm, it seems, I have made it to another box... sweet :)" 29 | echo "Let me just check if we've got everything we'll need..." 30 | 31 | # Check Dependencies 32 | 33 | DEPENDENCIES="awk convert dos2unix find grep unzip wget xplanet" 34 | 35 | for i in $DEPENDENCIES; 36 | do 37 | echo -n "Checking for $i ... " 38 | LOC=$(type $i 2>&1 >/dev/null) 39 | if [ $? -eq 0 ]; 40 | then 41 | echo "OK" 42 | else 43 | echo "NOT FOUND" 44 | exit 1 45 | fi 46 | done 47 | 48 | # Deploy config file from sample and load it 49 | cp ${BASEDIR}/xfce-planet.conf.sample ${BASEDIR}/xfce-planet.conf 50 | . ${BASEDIR}/xfce-planet.conf 51 | echo "I've copied the sample config file to xfce-planet.conf" 52 | fi 53 | 54 | # Download new TLE package if local elements are older than 24h ################ 55 | 56 | if [ ! -e ${BASEDIR}/satellites/.last_updated ] || test "$(find ${BASEDIR}/satellites/.last_updated -mmin +1440)"; 57 | then 58 | cd ${BASEDIR}/satellites/ 59 | ${BASEDIR}/satellites/download-tle.sh 60 | cd .. 61 | fi 62 | 63 | # Pick up the TLEs prepared by download-tle.sh in satellites/ ################## 64 | 65 | TLE_LIST=$(find ${BASEDIR}/satellites/ -name "*.tle" | grep -v iss_leo.tle) 66 | TLE_COUNT=$(echo $TLE_LIST | wc -w) 67 | 68 | COUNTER=0 69 | DELAY_COUNT=0 70 | 71 | ################################################################################ 72 | # MAIN # 73 | ################################################################################ 74 | 75 | while true 76 | do 77 | # Download weather image if local copy is older than 1h #################### 78 | 79 | if [ ! -e ${BASEDIR}/world/clouds.jpg ] || test "$(find ${BASEDIR}/world/clouds.jpg -mmin +60)"; 80 | then 81 | cd ${BASEDIR}/world/ 82 | ${BASEDIR}/world/download-clouds.sh 83 | cd .. 84 | fi 85 | 86 | # Download new TLE package if local elements are older than 24h ############ 87 | 88 | if test "$(find ${BASEDIR}/satellites/.last_updated -mmin +1440)"; 89 | then 90 | cd ${BASEDIR}/satellites/ 91 | ${BASEDIR}/satellites/download-tle.sh 92 | cd .. 93 | fi 94 | 95 | # Check/Link the appropriate VE/BM texture for this month ################## 96 | 97 | MONTH=$(date +%m) 98 | cd ${BASEDIR}/world/ 99 | 100 | if [ -e ${BASEDIR}/world/earth.jpg ]; 101 | then 102 | LINK=$(ls -al ${BASEDIR}/world/earth.jpg | awk {'print $11;'}) 103 | MONTH_OF_FILE=$(echo $LINK | awk '{ string=substr($0, 1, 2); print string;}') 104 | 105 | if [ "${MONTH}" != "${MONTH_OF_FILE}" ]; 106 | then 107 | rm earth.jpg 108 | ln -s ${MONTH}.jpg earth.jpg 109 | fi 110 | else 111 | ln -s ${MONTH}.jpg earth.jpg 112 | fi 113 | 114 | cd .. 115 | 116 | # Prep xplanets default config for this run ################################ 117 | 118 | LN=$(($COUNTER+1)) 119 | ABS_SATFILE=$(echo $TLE_LIST | cut -d " " -f $LN) 120 | SATFILE=$(basename -s .tle "${ABS_SATFILE}") 121 | 122 | echo "satellite_file=${BASEDIR}/satellites/iss_leo" > ${BASEDIR}/default 123 | echo "satellite_file=${BASEDIR}/satellites/${SATFILE}" >> ${BASEDIR}/default 124 | echo "${DEFCFG}" >> ${BASEDIR}/default 125 | 126 | # Set viewing distance according to current sat class (leo/geo) 127 | 128 | SAT_TYPE=$(echo $SATFILE | cut -d "_" -f 2) 129 | 130 | if [ "${SAT_TYPE}" = "geo" ]; 131 | then 132 | VIEW=10 133 | else 134 | VIEW=$RAD 135 | fi 136 | 137 | # Switch between available tle files with a defined delay ################## 138 | 139 | if [ ${COUNTER} -lt ${TLE_COUNT} ]; 140 | then 141 | if [ ${DELAY_COUNT} -lt ${DELAY} ]; 142 | then 143 | DELAY_COUNT=$(($DELAY_COUNT+1)) 144 | else 145 | COUNTER=$((COUNTER+1)) 146 | DELAY_COUNT=0 147 | fi 148 | else 149 | COUNTER=0 150 | fi 151 | 152 | # Call xplanet ############################################################# 153 | 154 | nice -n 19 xplanet \ 155 | -latitude ${LAT} -longitude ${LON} \ 156 | -geometry ${RES} \ 157 | -radius ${VIEW} \ 158 | -quality 90 \ 159 | -font ${FONT} \ 160 | -fontsize ${FONTSIZE} \ 161 | -starmap ${BASEDIR}/stars/BSC \ 162 | -searchdir ${BASEDIR} \ 163 | -output ${OUTPUT} \ 164 | -pango \ 165 | -num_times 1 \ 166 | -verbosity -1 167 | 168 | # Tell the window manager to update the background image (if needed) ####### 169 | 170 | if [ "${WM_RELOAD_CMD}" != "" ]; 171 | then 172 | ${WM_RELOAD_CMD} 173 | fi 174 | 175 | # Go to sleep - The timeout is dynamically changed based on ACPI state 176 | # so that a system running on battery automatically decreases the update 177 | # frequency (longer SLEEP) to enhance battery endurance when off-grid. 178 | 179 | if [ -r /sys/class/power_supply/AC/online -a $(cat /sys/class/power_supply/AC/online) -eq 1 ]; 180 | then 181 | sleep ${SLEEP_ON_AC} 182 | else 183 | sleep ${SLEEP_ON_BAT} 184 | fi 185 | 186 | done 187 | --------------------------------------------------------------------------------