Set defaults

- 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
master
Artem Proskurnev 3 years ago
parent 22757f7700
commit a95d4b4e3f
  1. 87
      mos-std-desktop.spec
  2. 91
      mos-std-desktop/Home.desktop
  3. 11
      mos-std-desktop/OpenBoardUser.config
  4. 28
      mos-std-desktop/brandicons.filetrigger
  5. 40
      mos-std-desktop/chromium.json
  6. 41
      mos-std-desktop/inkscape.xml
  7. 6
      mos-std-desktop/libreoffice.xcu
  8. 5
      mos-std-desktop/mos.list
  9. 60
      mos-std-desktop/powermanagementprofilesrc
  10. 33
      mos-std-desktop/previewplugins.filetrigger
  11. 93
      mos-std-desktop/trash.desktop
  12. BIN
      mos-std-desktop/Документ.ott
  13. BIN
      mos-std-desktop/Презентация.otp
  14. BIN
      mos-std-desktop/Таблица.ots

@ -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 <tema@altlinux.org> 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

@ -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

@ -0,0 +1,11 @@
[App]
EnableAutomaticSoftwareUpdates=false
ToolBarOrientationVertical=true
ToolBarPositionedAtTop=false
UseSystemOnScreenKeyboard=false
[Board]
KeyboardPaletteKeyBtnSize=41x41
LeftLibPaletteBoardModeIsCollapsed=false
PenPressureSensitive=false
RightLibPaletteBoardModeIsCollapsed=false

@ -0,0 +1,28 @@
#!/bin/sh
#
# RPM filetrigger for branding icons.
#
# Copyright (C) 2021 Artem Proskurnev <tema@proskurnevs.ru>
#
# 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

@ -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
}
}
}

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<inkscape
version="1"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd">
<group
id="theme"
defaultPreferDarkTheme="1"
defaultGtkTheme="Breeze"
defaultIconTheme="breeze-dark"
symbolicIcons="0"
preferDarkTheme="1"
darkTheme="1"
symbolicDefaultBaseColors="1"
symbolicDefaultHighColors="1"
menuIcons_canvas="0"
menuIcons_layers="0"
menuIcons_objects="0"
iconTheme="multicolor"
gtkTheme="Minwaita-Inkscape" />
<group
id="options">
<group
id="boot"
canvas="dark">
</group>
</group>
<group
id="template">
<sodipodi:namedview
id="base"
pagecolor="#505050"
pageopacity="0"
pagecheckerboard="0"
bordercolor="#eeeeee"
borderopacity="1"
objecttolerance="10.0"
gridtolerance="10.0"
guidetolerance="10.0"
pageshadow="0" />
</group>
</inkscape>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<item oor:path="/org.openoffice.Office.Impress/Misc/Start"><prop oor:name="EnablePresenterScreen" oor:op="fuse"><value>false</value></prop></item>
<item oor:path="/org.openoffice.Office.Writer/Layout/Window"><prop oor:name="VerticalRuler" oor:op="fuse"><value>true</value></prop></item>
</oor:items>

@ -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

@ -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

@ -0,0 +1,33 @@
#!/bin/sh
#
# RPM filetrigger for kde5 preview plugins.
#
# Copyright (C) 2021 Artem Proskurnev <tema@proskurnevs.ru>
#
# 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 "<group" | egrep -o "^[0-9]+")
gend=$(cat $f | grep -n "</group>" | 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

@ -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;
Loading…
Cancel
Save