diff --git a/mos-std-desktop.spec b/mos-std-desktop.spec new file mode 100644 index 0000000..a203823 --- /dev/null +++ b/mos-std-desktop.spec @@ -0,0 +1,87 @@ +Name: mos-std-desktop +Version: 1.0 +Release: alt1 + +Summary: M OS default desktop settings +Summary(ru_RU.UTF-8): Начальные настройки пользователя операционной системы М + +License: GPLv3 +Group: System/Configuration/Other +Url: http://osmesh.ru +BuildArch: noarch +Requires: xmlstarlet +Source: %name-%version.tar + +%description +Standart files on Desktop and M OS icons, ovewrite basealt logo +Default settings for applications + +%description -l ru_RU.UTF-8 +Файлы по умолчанию для Рабочего стола Эмки, настройка приложений и настройка иконок. +Файловый триггер используется, чтобы не создавалось ошибочного впечателния, что М - продукт компании Базальт. +Все изображения логотипа затираются и используются изображения логотипа М. + +%prep +%setup + +%install +%define skeldir "/etc/skel" +%define skelconfigdir "/etc/skel/.config" +%define skellocalsharedir "/etc/skel/.local/share" +%define skeldesktopdir "/etc/skel/Рабочий стол" +%define ftdir "/usr/lib/rpm" +%define aptdir "/etc/apt/sources.list.d" + +mkdir -p %buildroot%skelconfigdir +mkdir -p %buildroot%skelconfigdir/inkscape +mkdir -p %buildroot%skelconfigdir/chromium/Default +mkdir -p %buildroot%skelconfigdir/libreoffice/4/user +mkdir -p %buildroot%skellocalsharedir/OpenBoard +mkdir -p %buildroot%skeldesktopdir +mkdir -p %buildroot%ftdir +mkdir -p %buildroot%aptdir + +install -pm644 powermanagementprofilesrc %buildroot%skelconfigdir +install -pm644 inkscape.xml %buildroot%skelconfigdir/inkscape/preferences.xml +install -pm644 chromium.json %buildroot%skelconfigdir/chromium/Default/Preferences +install -pm644 libreoffice.xcu %buildroot%skelconfigdir/libreoffice/4/user/registrymodifications.xcu +install -pm644 OpenBoardUser.config %buildroot%skellocalsharedir/OpenBoard +install -pm644 Home.desktop %buildroot%skeldesktopdir +install -pm644 trash.desktop %buildroot%skeldesktopdir +install -pm644 Документ.ott %buildroot%skeldesktopdir +install -pm644 Таблица.ots %buildroot%skeldesktopdir +install -pm644 Презентация.otp %buildroot%skeldesktopdir +install -pm755 brandicons.filetrigger %buildroot%ftdir +install -pm755 previewplugins.filetrigger %buildroot%ftdir +install -pm644 mos.list %buildroot%aptdir + +%files +"/etc/skel/.config/powermanagementprofilesrc" +"/etc/skel/.config/inkscape/preferences.xml" +"/etc/skel/.config/chromium/Default/Preferences" +"/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu" +"/etc/skel/.local/share/OpenBoard/OpenBoardUser.config" +"/etc/skel/Рабочий стол/Home.desktop" +"/etc/skel/Рабочий стол/trash.desktop" +"/etc/skel/Рабочий стол/Документ.ott" +"/etc/skel/Рабочий стол/Презентация.otp" +"/etc/skel/Рабочий стол/Таблица.ots" +"/usr/lib/rpm/brandicons.filetrigger" +"/usr/lib/rpm/previewplugins.filetrigger" +"/etc/apt/sources.list.d/mos.list" + +%changelog +* Thu Apr 21 2022 Artem Proskurnev 1.0-alt1 +- Power management +- OpenBoard settings +- LibreOffice VerticalRuler +- Kometa repo +- kdeglobals -> kometa-xdg +- Disable presenter console LO Impress +- Docs -> kometa-docdir +- KDE5 preview plugins +- Chromium - default +- Change Inkscape deafult theme. In a standard theme, icons are not visible on a dark background. Chromium <- yandex.ru +- Only desktop icons + filetrigger kometa -> basealt, altlinux +- Dolphin, single click, ru/us == РУС/АНГ, Num Lock + diff --git a/mos-std-desktop/Home.desktop b/mos-std-desktop/Home.desktop new file mode 100644 index 0000000..e714b8d --- /dev/null +++ b/mos-std-desktop/Home.desktop @@ -0,0 +1,91 @@ +[Desktop Entry] +Name=Home +Name[ar]=المنزل +Name[ca]=Inici +Name[ca@valencia]=Inici +Name[cs]=Můj adresář +Name[da]=Hjem +Name[de]=Persönlicher Ordner +Name[el]=Προσωπικός φάκελος +Name[en_GB]=Home +Name[es]=Inicio +Name[et]=Kodu +Name[eu]=Etxea +Name[fi]=Koti +Name[fr]=Dossier personnel +Name[gl]=Persoal +Name[he]=בית +Name[hu]=Saját mappa +Name[id]=Beranda +Name[is]=Heimamappa +Name[it]=Home +Name[ja]=ホーム +Name[ko]=홈 +Name[lt]=Pradžia +Name[nl]=Home +Name[nn]=Heim +Name[pa]=ਘਰ +Name[pl]=Katalog domowy +Name[pt]=Pasta Pessoal +Name[pt_BR]=Pasta Pessoal +Name[ru]=Домашняя папка +Name[se]=Ruoktu +Name[sk]=Domov +Name[sl]=Dom +Name[sr]=Домаће +Name[sr@ijekavian]=Домаће +Name[sr@ijekavianlatin]=Domaće +Name[sr@latin]=Domaće +Name[sv]=Hem +Name[tr]=Başlangıç +Name[uk]=Домівка +Name[x-test]=xxHomexx +Name[zh_CN]=主文件夹 +Name[zh_TW]=家目錄 +GenericName=Personal Files +GenericName[ar]=الملفّات الشّخصيّة +GenericName[ca]=Fitxers personals +GenericName[ca@valencia]=Fitxers personals +GenericName[cs]=Osobní soubory +GenericName[da]=Personlige filer +GenericName[de]=Persönliche Dateien +GenericName[el]=Προσωπικά αρχεία +GenericName[en_GB]=Personal Files +GenericName[es]=Archivos personales +GenericName[et]=Isiklikud failid +GenericName[eu]=Fitxategi pertsonalak +GenericName[fi]=Omat tiedostot +GenericName[fr]=Fichiers personnels +GenericName[gl]=Ficheiros persoais +GenericName[he]=קבצים אישיים +GenericName[hu]=Személyes fájlok +GenericName[id]=File Personal +GenericName[is]=Einkaskrár +GenericName[it]=File personali +GenericName[ja]=個人のファイル +GenericName[ko]=개인적인 파일 +GenericName[lt]=Asmeniniai failai +GenericName[nl]=Persoonlijke bestanden +GenericName[nn]=Personlege filer +GenericName[pa]=ਨਿੱਜੀ ਫਾਇਲਾਂ +GenericName[pl]=Pliki osobiste +GenericName[pt]=Ficheiros Pessoais +GenericName[pt_BR]=Arquivos pessoais +GenericName[ru]=Личные файлы +GenericName[se]=Iežat fiillat +GenericName[sk]=Osobné súbory +GenericName[sl]=Osebne datoteke +GenericName[sr]=Лични фајлови +GenericName[sr@ijekavian]=Лични фајлови +GenericName[sr@ijekavianlatin]=Lični fajlovi +GenericName[sr@latin]=Lični fajlovi +GenericName[sv]=Personliga filer +GenericName[tr]=Kişisel Dosyalar +GenericName[uk]=Особисті файли +GenericName[x-test]=xxPersonal Filesxx +GenericName[zh_CN]=个人文件 +GenericName[zh_TW]=個人檔案 +URL[$e]=$HOME +Icon=user-home +Type=Link + diff --git a/mos-std-desktop/OpenBoardUser.config b/mos-std-desktop/OpenBoardUser.config new file mode 100644 index 0000000..ebc60f2 --- /dev/null +++ b/mos-std-desktop/OpenBoardUser.config @@ -0,0 +1,11 @@ +[App] +EnableAutomaticSoftwareUpdates=false +ToolBarOrientationVertical=true +ToolBarPositionedAtTop=false +UseSystemOnScreenKeyboard=false + +[Board] +KeyboardPaletteKeyBtnSize=41x41 +LeftLibPaletteBoardModeIsCollapsed=false +PenPressureSensitive=false +RightLibPaletteBoardModeIsCollapsed=false diff --git a/mos-std-desktop/brandicons.filetrigger b/mos-std-desktop/brandicons.filetrigger new file mode 100644 index 0000000..959fff2 --- /dev/null +++ b/mos-std-desktop/brandicons.filetrigger @@ -0,0 +1,28 @@ +#!/bin/sh +# +# RPM filetrigger for branding icons. +# +# Copyright (C) 2021 Artem Proskurnev +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +for i in $(egrep "(basealt.png|basealt.svg|altlinux.png|altlinux.svg)") +do + f=$(basename $i) + d=$(dirname $i) + suff=$(echo $f | egrep -o "(png|svg)") + f=$(echo $f | egrep -o "(altlinux|basealt)") + kpng=$d/kometa.png + ksvg=$d/kometa.svg + if [ -e $kpng ] + then + /bin/cp -f $kpng $d/$f.png + fi + if [ -e $ksvg ] + then + /bin/cp -f $ksvg $d/$f.svg + fi +done \ No newline at end of file diff --git a/mos-std-desktop/chromium.json b/mos-std-desktop/chromium.json new file mode 100644 index 0000000..f72fde7 --- /dev/null +++ b/mos-std-desktop/chromium.json @@ -0,0 +1,40 @@ +{ + "session": { + "restore_on_startup": 4, + "startup_urls": [ + "https://yandex.ru/" + ] + }, + "default_search_provider_data": { + "template_url_data": { + "alternate_urls": [], + "contextual_search_url": "", + "created_by_policy": false, + "created_from_play_api": false, + "date_created": "0", + "doodle_url": "", + "id": "3", + "image_url": "https://yandex.ru/images/search/?rpt=imageview", + "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1", + "input_encodings": [ + "UTF-8" + ], + "is_active": 0, + "keyword": "yandex.ru", + "last_modified": "0", + "last_visited": "0", + "logo_url": "https://storage.ape.yandex.net/get/browser/Doodles/yandex/drawable-xxhdpi/yandex.png", + "new_tab_url": "https://www.yandex.ru/chrome/newtab", + "originating_url": "", + "preconnect_to_search_url": false, + "prepopulate_id": 15, + "safe_for_autoreplace": true, + "search_url_post_params": "", + "short_name": "Яндекс", + "suggestions_url": "https://suggest.yandex.ru/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}", + "suggestions_url_post_params": "", + "url": "https://yandex.ru/{yandex:searchPath}?text={searchTerms}&{yandex:referralID}", + "usage_count": 0 + } + } +} diff --git a/mos-std-desktop/inkscape.xml b/mos-std-desktop/inkscape.xml new file mode 100644 index 0000000..33854e1 --- /dev/null +++ b/mos-std-desktop/inkscape.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + diff --git a/mos-std-desktop/libreoffice.xcu b/mos-std-desktop/libreoffice.xcu new file mode 100644 index 0000000..3d27f1b --- /dev/null +++ b/mos-std-desktop/libreoffice.xcu @@ -0,0 +1,6 @@ + + + false + true + + diff --git a/mos-std-desktop/mos.list b/mos-std-desktop/mos.list new file mode 100644 index 0000000..9ee9c6e --- /dev/null +++ b/mos-std-desktop/mos.list @@ -0,0 +1,5 @@ +# Kometa + +rpm http://osmesh.ru/repo/p10 x86_64 hasher +rpm http://osmesh.ru/repo/p10 noarch hasher +rpm http://osmesh.ru/repo/p10 x86_64-i586 hasher diff --git a/mos-std-desktop/powermanagementprofilesrc b/mos-std-desktop/powermanagementprofilesrc new file mode 100644 index 0000000..567a543 --- /dev/null +++ b/mos-std-desktop/powermanagementprofilesrc @@ -0,0 +1,60 @@ +[AC] +icon=battery-charging + +[AC][BrightnessControl] +value=100 + +[AC][DPMSControl] +idleTime=3000 + +[AC][DimDisplay] +idleTime=2700000 + +[AC][HandleButtonEvents] +lidAction=1 +powerButtonAction=16 +triggerLidActionWhenExternalMonitorPresent=false + +[Battery] +icon=battery-060 + +[Battery][BrightnessControl] +value=100 + +[Battery][DPMSControl] +idleTime=1500 + +[Battery][DimDisplay] +idleTime=1320000 + +[Battery][HandleButtonEvents] +lidAction=1 +powerButtonAction=16 +triggerLidActionWhenExternalMonitorPresent=false + +[Battery][SuspendSession] +idleTime=1800000 +suspendThenHibernate=false +suspendType=1 + +[LowBattery] +icon=battery-low + +[LowBattery][BrightnessControl] +value=30 + +[LowBattery][DPMSControl] +idleTime=120 + +[LowBattery][DimDisplay] +idleTime=60000 + +[LowBattery][HandleButtonEvents] +lidAction=2 +powerButtonAction=16 +triggerLidActionWhenExternalMonitorPresent=true + +[LowBattery][SuspendSession] +idleTime=300000 +suspendThenHibernate=false +suspendType=1 diff --git a/mos-std-desktop/previewplugins.filetrigger b/mos-std-desktop/previewplugins.filetrigger new file mode 100644 index 0000000..f35f87b --- /dev/null +++ b/mos-std-desktop/previewplugins.filetrigger @@ -0,0 +1,33 @@ +#!/bin/sh +# +# RPM filetrigger for kde5 preview plugins. +# +# Copyright (C) 2021 Artem Proskurnev +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +mf='/usr/share/kf5/plasma/plasmoids/org.kde.desktopcontainment/contents/config/main.xml' +if egrep -qs $mf; +then + if [ -f $mf ]; + then + cat $mf > /tmp/main.xml + f="/tmp/main.xml" + g="/tmp/group.xml" + t="/tmp/tempmain.xml" + gstart=$(cat $f | grep -n "" | egrep -o "^[0-9]+") + awk "NR>=$gstart && NR<=$gend" $f > $g + awk "NR<$gstart" $f > $t + xmlstarlet edit -u "/group/entry[@name='previewPlugins']/default" \ + -v "audiothumbnail,ffmpegthumbs,imagethumbnail,exrthumbnail,jpegthumbnail,\ + windowsimagethumbnail,svgthumbnail,windowsexethumbnail,comicbookthumbnail,\ + directorythumbnail,fontthumbnail,blenderthumbnail,rawthumbnail,ebookthumbnail" \ + $g | awk "NR>1" >> $t + awk "NR>$gend" $f >> $t + mv -f $t $mf + fi +fi diff --git a/mos-std-desktop/trash.desktop b/mos-std-desktop/trash.desktop new file mode 100644 index 0000000..39b8724 --- /dev/null +++ b/mos-std-desktop/trash.desktop @@ -0,0 +1,93 @@ +[Desktop Entry] +Name=Trash +Name[ar]=المهملات +Name[ca]=Paperera +Name[ca@valencia]=Paperera +Name[cs]=Koš +Name[da]=Affald +Name[de]=Papierkorb +Name[el]=Απορρίμματα +Name[en_GB]=Wastebin +Name[es]=Papelera +Name[et]=Prügikast +Name[eu]=Zakarrontzia +Name[fi]=Roskakori +Name[fr]=Corbeille +Name[gl]=Lixo +Name[he]=אשפה +Name[hu]=Kuka +Name[id]=Trash +Name[is]=Rusl +Name[it]=Cestino +Name[ja]=ごみ箱 +Name[ko]=휴지통 +Name[lt]=Šiukšlinė +Name[nl]=Prullenbak +Name[nn]=Papirkorg +Name[pa]=ਰੱਦੀ +Name[pl]=Kosz +Name[pt]=Lixo +Name[pt_BR]=Lixeira +Name[ru]=Корзина +Name[se]=Ruskalihtti +Name[sk]=Smeti +Name[sl]=Smeti +Name[sr]=Смеће +Name[sr@ijekavian]=Смеће +Name[sr@ijekavianlatin]=Smeće +Name[sr@latin]=Smeće +Name[sv]=Papperskorg +Name[tr]=Çöp +Name[uk]=Смітник +Name[x-test]=xxTrashxx +Name[zh_CN]=回收站 +Name[zh_TW]=垃圾桶 +Comment=Contains removed files +Comment[ar]=تحتوي الملفّات المُزالة +Comment[ca]=Conté els fitxers eliminats +Comment[ca@valencia]=Conté els fitxers eliminats +Comment[cs]=Obsahuje odstraněné soubory +Comment[da]=Indeholder slettede filer +Comment[de]=Enthält gelöschte Dateien +Comment[el]=Περιέχει αρχεία που αφαιρέθηκαν +Comment[en_GB]=Contains removed files +Comment[es]=Contiene archivos eliminados +Comment[et]=Sisaldab eemaldatud faile +Comment[eu]=Kendutako fitxategiak ditu +Comment[fi]=Sisältää poistetut tiedostot +Comment[fr]=Contient les fichiers supprimés +Comment[gl]=Contén ficheiros retirados. +Comment[he]=מכיל קבצים שנמחקו +Comment[hu]=Eltávolított fájlok gyűjtőhelye +Comment[id]=Berisi file-file yang dibuang +Comment[is]=Inniheldur skrár sem hefur verið eytt +Comment[it]=Contiene i file rimossi +Comment[ja]=削除されたファイルを保管します +Comment[ko]=삭제된 파일 및 폴더가 있습니다 +Comment[lt]=Čia yra ištrinti failai +Comment[nl]=Bevat de verwijderde bestanden +Comment[nn]=Inneheld sletta filer +Comment[pa]=ਹਟਾਈਆਂ ਫਾਇਲਾਂ ਰੱਖਦਾ ਹੈ +Comment[pl]=Zawiera usunięte pliki +Comment[pt]=Contém os ficheiros removidos +Comment[pt_BR]=Contém os arquivos removidos +Comment[ru]=Содержит файлы, которые вы удалили +Comment[se]=Dáppe leat eret váldon fiillat +Comment[sk]=Obsahuje odstránené súbory +Comment[sl]=Vsebujejo odstranjene datoteke +Comment[sr]=Садржи уклоњене фајлове +Comment[sr@ijekavian]=Садржи уклоњене фајлове +Comment[sr@ijekavianlatin]=Sadrži uklonjene fajlove +Comment[sr@latin]=Sadrži uklonjene fajlove +Comment[sv]=Innehåller borttagna filer +Comment[tr]=Silinen dosyaları içerir +Comment[uk]=Містить вилучені файли +Comment[x-test]=xxContains removed filesxx +Comment[zh_CN]=储存已删除的文件 +Comment[zh_TW]=包含已移除的檔案 +Icon=user-trash-full +EmptyIcon=user-trash +Type=Link +URL=trash:/ +OnlyShowIn=KDE; + diff --git a/mos-std-desktop/Документ.ott b/mos-std-desktop/Документ.ott new file mode 100644 index 0000000..7e93c5f Binary files /dev/null and b/mos-std-desktop/Документ.ott differ diff --git a/mos-std-desktop/Презентация.otp b/mos-std-desktop/Презентация.otp new file mode 100644 index 0000000..d44a76c Binary files /dev/null and b/mos-std-desktop/Презентация.otp differ diff --git a/mos-std-desktop/Таблица.ots b/mos-std-desktop/Таблица.ots new file mode 100644 index 0000000..9f537d4 Binary files /dev/null and b/mos-std-desktop/Таблица.ots differ