Commit b332651d authored by Roman Alifanov's avatar Roman Alifanov

0.8-alt1

- Initial build for Sisyphus. (Forked from branding-alt-server)
parent 4df30de6
......@@ -64,7 +64,7 @@ browser-qt:browser-qt/design/bg.png
#cp -f browser-qt/design/design-live.qss browser-qt/design/design.qss
rcc-qt5 -binary browser-qt/theme.qrc -o $(datadir)/alterator-browser-qt/design/$(THEME)-live.rcc
install -d $(sysconfdir)/alternatives/packages.d
printf '/etc/alterator/design-browser-qt\t/usr/share/alterator-browser-qt/design/$(THEME).rcc\t46\n'>$(sysconfdir)/alternatives/packages.d/$(THEME).rcc
printf '/etc/alterator/design-browser-qt\t/usr/share/alterator-browser-qt/design/$(THEME).rcc\t47\n'>$(sysconfdir)/alternatives/packages.d/$(THEME).rcc
# ahttpd
......@@ -134,10 +134,10 @@ indexhtml:
install -Dpm644 /dev/null $(INDEXHTML_DIR)/index.html
cp -a indexhtml/images $(INDEXHTML_DIR)
cp -a indexhtml/fonts $(INDEXHTML_DIR)
for i in alt-docs documentation;do \
ln -s /usr/share/doc/$$i $(INDEXHTML_DIR)/$$i; \
done
install -Dpm644 indexhtml/indexhtml.desktop $(datadir)/applications/indexhtml.desktop
#for i in alt-docs documentation;do \
#ln -s /usr/share/doc/$$i $(INDEXHTML_DIR)/$$i; \
#done
#install -Dpm644 indexhtml/indexhtml.desktop $(datadir)/applications/indexhtml.desktop
install: browser-qt ahttpd boot indexhtml
# install product icon
......@@ -150,8 +150,8 @@ install: browser-qt ahttpd boot indexhtml
cp -a backgrounds icons faces $(datadir)/design/$(THEME)
ln -s ../../../wallpapers $(datadir)/design/$(THEME)/backgrounds/more
install -d $(sysconfdir)/alternatives/packages.d
echo "/usr/share/design-current /usr/share/design/$(THEME) 000012000046" >> $(sysconfdir)/alternatives/packages.d/branding-$(BRAND)-$(THEME)-graphics
echo "/usr/share/design/current /usr/share/design/$(THEME) 000012000046" >> $(sysconfdir)/alternatives/packages.d/branding-$(BRAND)-$(THEME)-graphics
echo "/usr/share/design-current /usr/share/design/$(THEME) 000012000047" >> $(sysconfdir)/alternatives/packages.d/branding-$(BRAND)-$(THEME)-graphics
echo "/usr/share/design/current /usr/share/design/$(THEME) 000012000047" >> $(sysconfdir)/alternatives/packages.d/branding-$(BRAND)-$(THEME)-graphics
#release
mkdir -p $(sysconfdir)/buildreqs/packages/ignore.d/
install -pD -m644 /dev/null $(sysconfdir)/buildreqs/packages/ignore.d/$(BRAND)-$(THEME)-release
......@@ -186,5 +186,5 @@ install: browser-qt ahttpd boot indexhtml
#indexhtml
install -d $(datadir)/doc/indexhtml
cp -a indexhtml/{*.html,images} $(datadir)/doc/indexhtml
install -Dm755 indexhtml/indexhtml-desktop.desktop $(datadir)/kf5/kio_desktop/DesktopLinks/indexhtml.desktop
install -Dm755 indexhtml/indexhtml-desktop.desktop $(datadir)/Desktop/indexhtml.desktop
#install -Dm755 indexhtml/indexhtml-desktop.desktop $(datadir)/kf5/kio_desktop/DesktopLinks/indexhtml.desktop
#install -Dm755 indexhtml/indexhtml-desktop.desktop $(datadir)/Desktop/indexhtml.desktop
......@@ -4,8 +4,8 @@ body {
background-color: white;
margin: 5px;
padding: 10px;
font-family : "Liberation Sans", Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 9pt;
font-family : "Cantarell", Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 23pt;
width: 85%;
}
......@@ -20,7 +20,7 @@ a {
}
table {
font-size: 9pt;
font-size: 23pt;
border-color: #306ac4;
border-spacing: 0px;
border-collapse: collapse;
......@@ -66,7 +66,7 @@ textarea, select, input.text {
/*border: 1px solid #e2e6eb; #MIDDLE_LABELS_HEX@;*/ /*FIX NEEDED!!!!!*/
font-size: 9pt;
font-size: 23pt;
margin: 0px 5px 1px 5px;
padding: 2px 4px;
border: 1px solid #c4c4c4;
......@@ -120,7 +120,7 @@ small {
border: 1px solid #36a1cc;
cursor: pointer;
font-size: 9pt;
font-size: 23pt;
font-weight: bold;
padding: 2.5px 10px;
vertical-align: middle;
......@@ -186,7 +186,7 @@ small {
.alterator-information-message {
font-style:italic;
font-size: 9pt;
font-size: 23pt;
padding-top:3px;
padding-bottom:3px;
}
......@@ -232,14 +232,14 @@ canvas.alterator-clock {
.year {
font-weight: bold;
color: black;
font-size: 10pt;
font-size: 24pt;
vertical-align: middle;
}
.month {
font-weight:bold;
color: black;
font-size: 10pt;
font-size: 24pt;
vertical-align: middle;
}
......@@ -383,7 +383,7 @@ canvas.alterator-clock {
color: #0088bf;
height: 16px;
background: url(/design/images/section.png) no-repeat 0px 23px;
font-size: 10pt;
font-size: 24pt;
padding-top: 3px;
padding-bottom: 10px;
......@@ -400,7 +400,7 @@ canvas.alterator-clock {
table.alterator-listbox {
font-family:arial;
/*margin:10px 0pt 15px;*/
font-size: 8pt;
font-size: 20pt;
width: 100%;
text-align: left;
border: 1px solid #808080;
......@@ -413,7 +413,7 @@ table.alterator-listbox thead tr th, table.alterator-listbox tfoot tr th {
border: solid 1px;
border-right-color:#242a60;
border-right: 1px solid #242a60;*/
font-size: 8pt;
font-size: 20pt;
margin: 0px;
padding: 4px;
color: black;
......@@ -541,7 +541,7 @@ table.alterator-listbox thead tr .headerSortDown, table.alterator-listbox thead
div.alterator-accordion h3 {
background-color: #DBEEF6;
font-size: 9pt;
font-size: 23pt;
padding-top: 3px;
padding-bottom: 3px;
......@@ -795,7 +795,7 @@ div.alterator-accordion {
text-align: left;
color: black;
font-family: "DejaVu Sans",Verdana,Tahoma,Helvetica;
font-family: "Cantarell",Verdana,Tahoma,Helvetica;
font-weight: bold;
text-decoration: none;
font-size:large;
......
bootsplash/progress_bar.png

6.24 KB | W: | H:

bootsplash/progress_bar.png

173 Bytes | W: | H:

bootsplash/progress_bar.png
bootsplash/progress_bar.png
bootsplash/progress_bar.png
bootsplash/progress_bar.png
  • 2-up
  • Swipe
  • Onion skin
bootsplash/progress_box.png

17.4 KB | W: | H:

bootsplash/progress_box.png

196 Bytes | W: | H:

bootsplash/progress_box.png
bootsplash/progress_box.png
bootsplash/progress_box.png
bootsplash/progress_box.png
  • 2-up
  • Swipe
  • Onion skin
Palette\active=#141312, #e8e7e6, #ffffff, #ebebea, #6d6c6b, #b7b5b3, #141312, #ffffff, #141312, #ffffff, #e0dfde, #3d3c3c, #@MIDDLE_COLOR_HEX@, #ffffff, #0057ae, #644a9b, #f8f7f6, #000000, #f8f7f6, #141312
Palette\inactive=#141312, #e8e7e6, #ffffff, #ebebea, #6d6c6b, #b7b5b3, #141312, #ffffff, #141312, #ffffff, #e0dfde, #3d3c3c, #@MIDDLE_COLOR_HEX@, #ffffff, #0057ae, #644a9b, #f8f7f6, #000000, #f8f7f6, #141312
Palette\disabled=#929190, #dedcdb, #ffffff, #e2e1e0, #686766, #b0aeac, #a5a4a4, #ffffff, #979695, #f4f4f4, #d6d5d3, #3c3b3b, #d6d5d3, #929190, #97bcdf, #c1b6d7, #eeece9, #000000, #f8f7f6, #141312
Style=Cleanlooks
Palette\active=#b6c1d0, #525863, #004567, #003a56, #001925, #002638, #d2def0, #ffffff, #d2def0, #000000, #242424, #00121b, #78889c, #d1e1f4, #9cd4ff, #790079, #434750, #000000, #b6c1d0, #2a2c30, #d2def0
Palette\disabled=#385464, #484d57, #004161, #003550, #001621, #002131, #406a7f, #ffffff, #6f7682, #262626, #002538, #001018, #002538, #385464, #306784, #25255b, #3b3e46, #000000, #b6c1d0, #2a2c30, #d2def0
Palette\inactive=#b6c1d0, #525863, #004567, #003a56, #001925, #002638, #d2def0, #ffffff, #d2def0, #000000, #242424, #00121b, #2e3d4a, #b6c1d0, #9cd4ff, #790079, #434750, #000000, #b6c1d0, #2a2c30, #d2def0
style=Fusion
icons=breeze-dark
/* Customize any plain widget that is a child of a QMainWindow. */
/* Main area */
.AWizardFace {
border-style: none;
background-image: url(:/design/bg.png);
background-position: top left;
background-repeat: no-repeat
background-color: black;
color: white;
}
AWizardFace > QScrollArea {
border-width: 1px;
/*
border-width: 2px;
border-color: #080044;
border-style: solid;
border-color: rgba(198, 198, 198, 65%);
}
.ACenterFace {
border-style: none;
}
.ACenterFace #modules_view {
background-color: white;
}
QCheckBox, QLineEdit, QComboBox, QTreeView, QTextBrowser {
border-color: transparent;
border-width: 1px;
padding: 2px;
border-style: outset;
border-radius: 5px;
}
AWizardFace QCheckBox, AWizardFace QLineEdit, AWizardFace QComboBox, AWizardFace QTreeView, AWizardFace QTextBrowser {
border-color: transparent;
border-width: 1px;
padding: 2px;
border-style: outset;
border-radius: 5px;
}
AWizardFace QPushButton {
min-width: 12ex;
min-height: 2.5ex;
}
/* Nice WindowsXP-style password character for password line edits. */
QLineEdit {
lineedit-password-character: 9679;
}
AWizardFace QLineEdit {
border: 2px inset gray;
*/
border-radius: 3ex;
background-image: url(:/design/bg.png);
background-position: bottom right;
}
/* White color for labels: 100% white for title text and for other labels */
AWizardFace QLabel {
color: rgba(255, 255, 255, 100%);
.AWizardFace #view {
border-width: 2px;
border-color: #080044;
border-style: solid;
border-radius: 3ex;
background-image: url(:/design/bg.png);
}
QCheckBox, QRadioButton {
color: black;
.AWizardFace #wizardface_title_text {
color: white;
}
AWizardFace QCheckBox:checked, AWizardFace QCheckBox:unchecked, AWizardFace QCheckBox:indeterminate {
color: white;
.AWizardFaceStepList {
border-width: 2px;
border-color: #080044;
border-style: none;
border-right-style: solid;
border-top-right-radius: 3ex;
border-bottom-right-radius: 3ex;
background-color: #05002b;
/*
background-image: url(:/design/bg.png);
background-position: bottom right;
*/
}
AWizardFace QRadioButton:checked, AWizardFace QRadioButton:unchecked, AWizardFace QRadioButton:indeterminate {
color: rgba(255, 255, 255, 100%);
.AWizardFaceStepList QLabel {
font-weight: bold;
font-size: 10px;
}
/* Sections */
AWizardFace AGroupBox {
border: 1px solid rgba(255, 255, 255, 0%);
.ACenterFace {
border-style: none;
}
AWizardFace AGroupBox::title {
color: #F8E97C;
font: bold;
.ACenterFace #modules_view {
background-color: #001e2d;
}
QCheckBox:hover, QRadioButton:hover {
background: none;
.ACenterFace #modules_view QToolButton:hover {
border-width: 1px;
border-color: #080044;
border-style: solid;
/* background-color: white; */
border-radius: 5;
}
/* Fix side effect on transparent background */
QCheckBox:indicator:hover, QRadioButton:indicator:hover {
margin-left: 1px;
/* Nice WindowsXP-style password character */
QLineEdit[echoMode="2"] {
lineedit-password-character: 9679;
}
/* Step title */
QLabel#wizardface_title_text {
color: white;
/*
QToolTip {
border: 2px solid #080044;
padding: 5px;
border-radius: 3px;
opacity: 200;
}
*/
/* Popup dialogs and message boxes with warnings and errors */
MessageBox {
background-color: rgba(235, 235, 235, 100%);
border: 5px solid #d7d7d7;
QPushButton {
border-width: 2px;
border-color: #080044;
border-style: solid;
border-radius: 5;
padding: 3px;
min-width: 9ex;
min-height: 2.5ex;
}
AGridBox {
background-color: transparent;
border: 0px;
QPushButton:hover {
background-color: #080044;
}
/* Installation steps list
AWizardFace StepList {
background-color: rgba(235, 235, 235, 10%);
}
QPushButton:pressed {
padding-left: 5px;
padding-top: 5px;
/*
background-color: #080044;
*/
QProgressBar {
font-weight: bold;
color: #fee27f;
background: white;
border: 1px solid #b8b2ad;
}
QProgressBar::chunk {
background-color: #132C90;
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #6f5d51,
stop: 1 #423f48) url(:/design/progress-cleanlooks.png);
border: 1px solid #001056;
QRadioButton, QCheckBox {
border-style: none;
border-radius: 3px;
}
QRadioButton:focus, QCheckBox:focus, QLineEdit:focus, QComboBox:focus, QTreeView:focus, QTextBrowser:focus {
border-width: 1px;
border-color: black;
border-style: outset;
padding: 1px;
QRadioButton:hover, QCheckBox:hover {
background-color: #080044;
}
QPushButton:focus {
border-width: 1px;
border-color: black;
border-style: outset;
QLineEdit, QProgressBar, QComboBox, QTreeView, QTextBrowser {
border-width: 2px;
padding: 1px;
background-color: white;
border-style: solid;
border-color: #080044;
border-radius: 5px;
}
AWizardFace QRadioButton:focus, AWizardFace QLineEdit:focus, AWizardFace QComboBox:focus, AWizardFace QTreeView:focus, AWizardFace QTextBrowser:focus {
border-width: 1px;
border-color: black;
border-style: outset;
padding: 1px;
QLineEdit:focus, QComboBox:focus, QTreeView:focus, QTextBrowser:focus, QPushButton:focus {
border-width: 3px;
border-color: #0a0055;
padding: 0px;
}
AWizardFace QCheckBox:focus {
border-width: 1px;
border-color: black;
border-style: outset;
padding: 1px;
QListView, QTreeView {
show-decoration-selected: 1;
}
AWizardFace QPushButton:focus, AWizardFace QPushButton:hover {
border-width: 1px;
border-color: black;
border-style: outset;
padding: 1px;
background-color: white;
QListView::item:hover, QTreeView::item:hover {
background-color: #080044;
}
browser-qt/design/logo_48.png

19.8 KB | W: | H:

browser-qt/design/logo_48.png

2.5 KB | W: | H:

browser-qt/design/logo_48.png
browser-qt/design/logo_48.png
browser-qt/design/logo_48.png
browser-qt/design/logo_48.png
  • 2-up
  • Swipe
  • Onion skin
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 18.292969 3 L 3 18.292969 L 3.7070312 19 L 19 3.7070312 L 18.292969 3 z M 11 6 A 10 9.9999781 0 0 0 2.2871094 11.119141 C 2.4663699 11.420241 2.7209984 11.668644 3.0273438 11.839844 A 9 8.99998 0 0 1 11 7 A 4 4 0 0 0 7 11 A 4 4 0 0 0 7.3574219 12.642578 L 8.1308594 11.869141 A 3 3 0 0 1 8 11 A 3 3 0 0 1 11 8 A 3 3 0 0 1 11.869141 8.1308594 L 12.640625 7.359375 A 4 4 0 0 0 11.34375 7.0175781 A 9 8.99998 0 0 1 12.796875 7.203125 L 13.640625 6.359375 A 10 9.9999781 0 0 0 11 6 z M 16.404297 7.5957031 L 15.675781 8.3242188 A 9 8.99998 0 0 1 18.974609 11.837891 C 19.282742 11.665091 19.539718 11.415428 19.71875 11.111328 A 10 9.9999781 0 0 0 16.404297 7.5957031 z M 11 9 A 2 2 0 0 0 9 11 L 11 9 z M 14.642578 9.3574219 L 13.869141 10.130859 A 3 3 0 0 1 14 11 A 3 3 0 0 1 11 14 A 3 3 0 0 1 10.130859 13.869141 L 9.3574219 14.642578 A 4 4 0 0 0 11 15 A 4 4 0 0 0 15 11 A 4 4 0 0 0 14.642578 9.3574219 z M 13 11 L 11 13 A 2 2 0 0 0 13 11 z M 1 13 C 0.33333333 19 0.66666667 16 1 13 z "
class="ColorScheme-Text"
/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 11 6 A 10 9.999975 0 0 0 2.3144531 11.070312 C 2.4995621 11.361743 2.7600802 11.597238 3.0664062 11.759766 A 9 8.999978 0 0 1 11 7 A 4 4 0 0 0 7 11 A 4 4 0 0 0 11 15 A 4 4 0 0 0 15 11 A 4 4 0 0 0 11.34375 7.0175781 A 9 8.999978 0 0 1 18.931641 11.761719 C 19.241063 11.598077 19.503624 11.359298 19.689453 11.064453 A 10 9.999975 0 0 0 11 6 z M 11 8 A 3 3 0 0 1 14 11 A 3 3 0 0 1 11 14 A 3 3 0 0 1 8 11 A 3 3 0 0 1 11 8 z M 11 9 C 9.892 9 9 9.892 9 11 C 9 12.108 9.892 13 11 13 C 12.108 13 13 12.108 13 11 C 13 10.79519 12.960983 10.601795 12.904297 10.416016 C 12.746415 10.759733 12.404317 11 12 11 C 11.446 11 11 10.554 11 10 C 11 9.595683 11.240267 9.2535881 11.583984 9.0957031 C 11.398205 9.0390231 11.20481 9 11 9 z "
class="ColorScheme-Text"
/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 11 6 A 10 9.999975 0 0 0 2.3144531 11.070312 C 2.4995621 11.361743 2.7600802 11.597238 3.0664062 11.759766 A 9 8.999978 0 0 1 11 7 A 4 4 0 0 0 7 11 A 4 4 0 0 0 11 15 A 4 4 0 0 0 15 11 A 4 4 0 0 0 11.34375 7.0175781 A 9 8.999978 0 0 1 18.931641 11.761719 C 19.241063 11.598077 19.503624 11.359298 19.689453 11.064453 A 10 9.999975 0 0 0 11 6 z M 11 8 A 3 3 0 0 1 14 11 A 3 3 0 0 1 11 14 A 3 3 0 0 1 8 11 A 3 3 0 0 1 11 8 z M 11 9 C 9.892 9 9 9.892 9 11 C 9 12.108 9.892 13 11 13 C 12.108 13 13 12.108 13 11 C 13 10.79519 12.960983 10.601795 12.904297 10.416016 C 12.746415 10.759733 12.404317 11 12 11 C 11.446 11 11 10.554 11 10 C 11 9.595683 11.240267 9.2535881 11.583984 9.0957031 C 11.398205 9.0390231 11.20481 9 11 9 z "
class="ColorScheme-Text"
/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="fill:currentColor;fill-opacity:1;stroke:none"
d="m382.8643 530.79077l-10.43876 10.56644-4.14699-4.19772-.70712.71578 4.14699 4.1977-.002.002.70713.71577.002-.002.002.002.70711-.71577-.002-.002 10.43877-10.56645-.70712-.71576z" transform="translate(-364.57143-525.79075)"
class="ColorScheme-Text"
/>
</svg>
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>design/bg.png</file>
<file>design/design.qss</file>
<file>design/design.ini</file>
<file>design/logo_48.png</file>
<file>design/bg.png</file>
<!--
<file>design/logo_width.png</file>
<file>design/bg-steplist.png</file>
<file>design/forward.png</file>
<file>design/up.png</file>
<file>design/help.png</file>
<file>design/backward.png</file>
<file>design/progress-cleanlooks.png</file>
-->
<file>design/wzface-step-done.svg</file>
<file>design/wzface-step-current.svg</file>
<file>design/password-show-on.svg</file>
<file>design/password-show-off.svg</file>
</qresource>
</RCC>
[org.gnome.desktop.interface]
gtk-theme='adw-gtk3-dark'
color-scheme='prefer-dark'
[org.gnome.desktop.peripherals.touchpad]
tap-to-click=true
[org.gnome.desktop.input-sources]
sources=[('xkb', 'us'), ('xkb', 'ru')]
xkb-options=['grp:alt_shift_toggle']
[org.gnome.desktop.wm.keybindings]
switch-input-source=['<Shift>Alt_L']
switch-input-source-backward=['<Alt>Shift_L']
[org.gnome.desktop.default-applications.terminal]
exec-arg='-c'
exec='blackbox'
[org.gnome.desktop.interface]
monospace-font-name='Cascadia Code 13'
[org.gnome.desktop.background]
picture-uri='file:///usr/share/wallpapers/ximper/1.jpg'
picture-uri-dark='file:///usr/share/wallpapers/ximper/1.jpg'
[org.gnome.desktop.wm.preferences]
button-layout=':minimize,maximize,close'
[org.gnome.gedit.preferences.editor]
scheme='oblivion'
[com.github.stunkymonkey.nautilus-open-any-terminal]
terminal='blackbox'
[org.gnome.shell]
disable-user-extensions=false
enabled-extensions=['dash-to-dock@micxgx.gmail.com', 'appindicatorsupport@rgcjonas.gmail.com', 'gsconnect@andyholmes.github.io', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'no-overview@fthx', 'Hide_Activities@shay.shayel.org']
[org.gnome.shell.extensions.dash-to-dock]
dock-fixed=false
click-action='minimize'
dash-max-icon-size=24
animation-time=0.20000000000000001
apply-custom-theme=true
autohide=true
autohide-in-fullscreen=false
background-opacity=0.80000000000000004
custom-theme-shrink=true
height-fraction=0.90000000000000002
[org.gnome.shell.extensions.appindicator]
tray-pos='left'
images/boot.png

220 KB | W: | H:

images/boot.png

303 KB | W: | H:

images/boot.png
images/boot.png
images/boot.png
images/boot.png
  • 2-up
  • Swipe
  • Onion skin
images/grub.jpg

99.4 KB | W: | H:

images/grub.jpg

15.5 KB | W: | H:

images/grub.jpg
images/grub.jpg
images/grub.jpg
images/grub.jpg
  • 2-up
  • Swipe
  • Onion skin
#!/bin/bash
# Special for Ximper Linux
if [[ $# -ne 1 ]]; then
echo "Usage: ./imagetognomexml path_to_image_folder"
exit 1
fi
image_folder="$1"
if [[ ! -d "$image_folder" ]]; then
echo "Error: Image folder '$image_folder' does not exist."
exit 2
fi
# Check if the path contains "/usr/src/tmp/branding-etersoft-ximper-buildroot"
if [[ "$image_folder" == *"/usr/src/tmp/branding-etersoft-ximper-buildroot"* ]]; then
# Get the relative path without '/usr/src/tmp/branding-etersoft-ximper-buildroot'
relative_path=/$(realpath --relative-to="/usr/src/tmp/branding-etersoft-ximper-buildroot" "$image_folder")
else
relative_path="$image_folder"
fi
xml_file="$image_folder$(basename "$image_folder").xml"
echo '<?xml version="1.0" encoding="UTF-8"?>' > "$xml_file"
echo '<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">' >> "$xml_file"
echo '<wallpapers>' >> "$xml_file"
for image_file in "$image_folder"/*; do
if [[ -f "$image_file" ]]; then
image_name=$(basename "$image_file")
image_name_no_ext="${image_name%.*}"
xml_escaped_name=$(echo "$image_name_no_ext" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'\''/\&apos;/g')
xml_escaped_name_de=$(echo "$xml_escaped_name" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'\''/\&apos;/g')
xml_filename="$relative_path/$(basename "$image_file")"
echo ' <wallpaper deleted="false">' >> "$xml_file"
echo " <name>$xml_escaped_name</name>" >> "$xml_file"
echo " <name xml:lang=\"de\">$xml_escaped_name_de</name>" >> "$xml_file"
echo " <filename>$xml_filename</filename>" >> "$xml_file"
echo ' <options>zoom</options>' >> "$xml_file"
echo ' <shade_type>solid</shade_type>' >> "$xml_file"
echo ' <pcolor>#ffffff</pcolor>' >> "$xml_file"
echo ' <scolor>#000000</scolor>' >> "$xml_file"
echo ' </wallpaper>' >> "$xml_file"
fi
done
echo '</wallpapers>' >> "$xml_file"
echo "XML file '$xml_file' has been created in the $image_folder directory."
exit 0
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- Disto name in title -->
<title>@PRODUCT_NAME@</title>
<link href="index.css" rel="stylesheet">
<link href="images/product.png" rel="shortcut icon" type="image/png" />
</head>
<body>
<section id="content">
<!-- Language selection -->
<div id="languages">
<a href="index-ru.html">Русский</a>
</div>
<!-- Disto name -->
<div id="title">@PRODUCT_NAME@</div>
<div id="main">
<!-- Links columns -->
<div class="grid">
<div class="grid-title"><img src="images/Logo_light_gray_basealt.png" alt="Basealt Ltd"></div>
<div class="grid-title"><img src="images/Logo_light_gray_alt_server.png"
alt="ALT Server OS Distribution"></div>
<div class="grid-title"><img src="images/Logo_light_gray_usefull_links.png" alt="Useful Links"></div>
</div>
<div class="grid">
<div class="grid-cell side-pane">
<ul>
<li><a href="https://www.basealt.ru">Company Website</a></li>
<li><a href="https://www.basealt.ru/contacts/">Contacts</a></li>
<li><a href="https://www.basealt.ru/support/">Technical Support</a></li>
<li><a href="https://vk.com/altlinux">VK Community</a></li>
<li><a href="https://t.me/alt_linux">Telegram Channel</a></li>
<li><a href="https://dzen.ru/id/621e0fc88b26266f04745c3f">Dzen Video Blog</a></li>
</ul>
</div>
<div class="grid-cell central-pane">
<ul>
<li><a href="https://www.basealt.ru/alt-server/description">Product Page</a></li>
<li><a href="documentation/index.html">User Manual</a></li>
<li><a href="https://docs.altlinux.org/ru-RU/index.html#alt-server">Online
Documentation</a></li>
<li><a href="https://bugs.altlinux.org">Report a Bug</a></li>
<li><a href="https://www.basealt.ru/alt-server/description#c1169">Leave Feedback</a></li>
</ul>
</div>
<div class="grid-cell side-pane">
<ul>
<li><a href="https://forum.altlinux.org">User Forum</a></li>
<li><a href="https://packages.altlinux.org/ru/p10/">Software Repository</a></li>
<li><a href="https://altlinux.org/FAQ">FAQ</a></li>
</ul>
</div>
</div>
<div id="search">
<!-- Search pane -->
<form action="https://yandex.ru/search?text={text}" method="get">
<img src="images/magnifier.png" alt="Search on online resources">
<input id="search_string" type="search" name="text" size="35">
<input type="hidden" name="site" value="altlinux.org">
<input id="search_button" type="submit" value="Search in Internet">
</form>
</div>
<!-- Copyright information -->
<footer id="footer">
<div id="left_footer">&copy; 2016-@YEAR@ Basealt Ltd. All rights reserved.</div>
<div id="right_footer">
Tel/fax: +7 (495) 123-4799<br>
75 Butyrskaya<br>
Moscow<br>
Russian Federation<br>
127015
</div>
</footer>
</div>