Fix and improve Plasma desktop customization. (Closes: #954093)

This commit is contained in:
Aurélien COUDERC
2023-02-14 00:18:24 +01:00
parent 37ac345bdc
commit 20a76b7acd
15 changed files with 149 additions and 36 deletions

View File

@@ -53,9 +53,22 @@ install-local:
mkdir -p $(DESTDIR)/usr/share/plymouth/themes
ln -s ../../desktop-base/active-theme/plymouth $(DESTDIR)/usr/share/plymouth/themes/debian-theme
# Set Plasma 5/KDE default wallpaper
install -d $(DESTDIR)/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates
$(INSTALL_DATA) defaults/plasma5/desktop-base.js $(DESTDIR)/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/
# Set Plasma 5 customizations
install -d $(DESTDIR)/etc/xdg/autostart
$(INSTALL_DATA) defaults/kde/etc/xdg/kcm-about-distrorc $(DESTDIR)/etc/xdg
$(INSTALL_DATA) defaults/kde/etc/xdg/kickoffrc $(DESTDIR)/etc/xdg
$(INSTALL_DATA) $(wildcard defaults/kde/etc/xdg/autostart/*) $(DESTDIR)/etc/xdg/autostart/
install -d $(DESTDIR)/etc/xdg/plasma-workspace/env
$(INSTALL_DATA) $(wildcard defaults/kde/etc/xdg/plasma-workspace/env/*) $(DESTDIR)/etc/xdg/plasma-workspace/env/
install -d $(DESTDIR)/usr/share/desktop-base/kf5-settings
$(INSTALL_DATA) $(wildcard defaults/kde/kf5-settings/*) $(DESTDIR)/usr/share/desktop-base/kf5-settings/
install -d $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop/contents
$(INSTALL_DATA) defaults/kde/plasma/look-and-feel/org.debian.desktop/metadata.json $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop
$(INSTALL_DATA) defaults/kde/plasma/look-and-feel/org.debian.desktop/contents/defaults $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop/contents
install -d $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop/contents/layouts
$(INSTALL_DATA) $(wildcard defaults/kde/plasma/look-and-feel/org.debian.desktop/contents/layouts/*) $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop/contents/layouts/
install -d $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop/contents/previews
$(INSTALL_DATA) $(wildcard defaults/kde/plasma/look-and-feel/org.debian.desktop/contents/previews/*) $(DESTDIR)/usr/share/plasma/look-and-feel/org.debian.desktop/contents/previews/
# Xfce 4.6
mkdir -p $(DESTDIR)/usr/share/desktop-base/profiles/xdg-config/xfce4/xfconf/xfce-perchannel-xml

1
debian/changelog vendored
View File

@@ -1,6 +1,7 @@
desktop-base (12.0.3) UNRELEASED; urgency=medium
* Update plymouth theme to implement Juliettes proposal.
* Fix and improve Plasma desktop customization. (Closes: #954093)
-- Aurélien COUDERC <coucouf@debian.org> Fri, 10 Feb 2023 23:38:10 +0100

View File

@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=User folders update
TryExec=xdg-user-dirs-update
Exec=xdg-user-dirs-update
StartupNotify=false
NoDisplay=true
X-KDE-autostart-phase=1

View File

@@ -0,0 +1,3 @@
[General]
LogoPath=emblem-debian
Version=12

View File

@@ -0,0 +1,2 @@
[Branding]
Homepage=https://www.debian.org/

View File

@@ -0,0 +1,7 @@
## from http://standards.freedesktop.org/menu-spec/latest/
# XDG_CONFIG_DIRS
if [ -z "${XDG_CONFIG_DIRS}" ] ; then
XDG_CONFIG_DIRS=/etc/xdg:/usr/share/desktop-base/kf5-settings
export XDG_CONFIG_DIRS
fi

View File

@@ -0,0 +1,2 @@
[General]
only basic indexing=true

View File

@@ -0,0 +1,8 @@
[General]
XftAntialias=true
XftHintStyle=hintslight
XftSubPixel=rgb
BrowserApplication=firefox-esr.desktop
[KDE]
LookAndFeelPackage=org.debian.desktop

View File

@@ -0,0 +1,2 @@
[Greeter]
WallpaperPlugin=org.kde.image

View File

@@ -0,0 +1,29 @@
[kdeglobals][KDE]
widgetStyle=Breeze
[kdeglobals][General]
ColorScheme=BreezeLight
[kdeglobals][Icons]
Theme=breeze
[plasmarc][Theme]
name=breeze-dark
[Wallpaper]
Image=DebianTheme
[kcminputrc][Mouse]
cursorTheme=breeze_cursors
[kwinrc][WindowSwitcher]
LayoutName=org.kde.breeze.desktop
[kwinrc][DesktopSwitcher]
LayoutName=org.kde.breeze.desktop
[kwinrc][org.kde.kdecoration2]
library=org.kde.breeze
[KSplash]
Theme=org.kde.Breeze

View File

@@ -0,0 +1,6 @@
loadTemplate("org.kde.plasma.desktop.defaultPanel")
var desktopsArray = desktopsForActivity(currentActivity());
for( var j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = 'org.kde.image';
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

View File

@@ -0,0 +1,64 @@
{
"KPlugin": {
"Authors": [
{
"Email": "debian-qt-kde@lists.debian.org",
"Name": "Debian Qt/KDE Maintainers"
},
{
"Email": "plasma-devel@kde.org",
"Name": "KDE Visual Design Group",
"Name[ar]": "مجموعة التصميم المرئي لكدي",
"Name[az]": "KDE Vizual Dizayn Qrupu",
"Name[be]": "Суполка візуальнага дызайну KDE",
"Name[bg]": "KDE Visual Design Group",
"Name[ca@valencia]": "Grup de disseny visual de KDE",
"Name[ca]": "Grup de disseny visual de KDE",
"Name[cs]": "Skupina vizuálního návrhu KDE",
"Name[da]": "KDE Visual Design Group",
"Name[de]": "KDE Visual Design Group",
"Name[en_GB]": "KDE Visual Design Group",
"Name[es]": "El grupo de diseño visual de KDE",
"Name[eu]": "KDE Diseinu bisualeko taldea",
"Name[fi]": "KDE:n visuaalinen suunnitteluryhmä",
"Name[fr]": "Groupe de conception visuelle de KDE",
"Name[hu]": "KDE Visual Design Group",
"Name[ia]": "KDE Visual Design Group (Gruppo de Designo Visual de KDE)",
"Name[id]": "Grup Desain Visual KDE",
"Name[is]": "Myndrænn hönnunarhópur KDE",
"Name[it]": "KDE Visual Design Group",
"Name[ja]": "KDE Visual Design Group",
"Name[ka]": "KDE-ის ვიზუალური დიზაინის ჯგუფი",
"Name[ko]": "KDE 시각 디자인 그룹",
"Name[lt]": "KDE vaizdinio dizaino grupė",
"Name[nl]": "KDE Visuele ontwerpgroep",
"Name[nn]": "KDE Visual Design Group",
"Name[pl]": "Grupa oprawy graficznej KDE",
"Name[pt]": "Grupo de Desenho Visual do KDE",
"Name[pt_BR]": "Grupo de Design Visual do KDE",
"Name[ro]": "KDE Visual Design Group",
"Name[ru]": "Группа KDE Visual Design",
"Name[sk]": "KDE Visual Design Group",
"Name[sl]": "Skupina vizualnega designa KDE",
"Name[sv]": "KDE:s visuella designgrupp",
"Name[ta]": "கே.டீ.யீ. வரைகலை வடிவமைப்புக் குழு",
"Name[tr]": "KDE Görsel Tasarım Grubu",
"Name[uk]": "Група з візуального дизайну KDE",
"Name[vi]": "Đội Thiết kế Trực quan KDE",
"Name[x-test]": "xxKDE Visual Design Groupxx",
"Name[zh_CN]": "KDE 视觉设计团队"
}
],
"Category": "",
"Description": "Breeze Twilight adapted to Debian",
"Id": "org.debian.desktop",
"License": "GPLv2+",
"Name": "Debian Breeze",
"ServiceTypes": [
"Plasma/LookAndFeel"
],
"Version": "2.0",
"Website": "https://www.kde.org"
},
"X-Plasma-MainScript": "defaults"
}

View File

@@ -1,33 +0,0 @@
// Copyright 2016 Aurélien COUDERC <zecoucou@free.fr>
//
// 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 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// This script is provided by desktop-base
// It is run by Plasma 5 on upgrade.
// Plasma checks that the script is only run once for each version.
d = desktops()
for (i in d) {
// Only set up the wallpaper if the plugin is the default.
// Otherwise it means the user chose another plugin and we dont want to override that.
if (d[i].wallpaperPlugin == 'org.kde.image') {
d[i].currentConfigGroup = Array('Wallpaper', 'org.kde.image', 'General')
if (!d[i].readConfig('Image')) {
// Only set up the wallpaper if the wallpaper image is empty (=default).
// Otherwise it means the user selected a picture and we dont want to override that.
d[i].writeConfig('Image', 'DebianTheme');
}
}
}