From 744dda86b9027431bf50e6e80caaf5d478359a6f Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 19 May 2021 10:29:26 +0200 Subject: [desktop-kde-plasma] kde-plasma with bwlp mods --- desktop-kde-plasma/files/etc/xdg/baloofilerc | 2 + desktop-kde-plasma/files/etc/xdg/kded5rc | 53 +++++++++++++++++++++ desktop-kde-plasma/files/etc/xdg/ksmserverrc | 7 +++ .../x86_64-linux-gnu/libexec/kscreenlocker_greet | 5 ++ .../bwLehrpool/contents/images/1920x1080.png | Bin 0 -> 244216 bytes .../share/wallpapers/bwLehrpool/metadata.desktop | 7 +++ desktop-kde-plasma/tasks/main.yml | 40 ++++++++++++++++ 7 files changed, 114 insertions(+) create mode 100644 desktop-kde-plasma/files/etc/xdg/baloofilerc create mode 100644 desktop-kde-plasma/files/etc/xdg/kded5rc create mode 100644 desktop-kde-plasma/files/etc/xdg/ksmserverrc create mode 100755 desktop-kde-plasma/files/usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet create mode 100644 desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/contents/images/1920x1080.png create mode 100644 desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/metadata.desktop create mode 100644 desktop-kde-plasma/tasks/main.yml (limited to 'desktop-kde-plasma') diff --git a/desktop-kde-plasma/files/etc/xdg/baloofilerc b/desktop-kde-plasma/files/etc/xdg/baloofilerc new file mode 100644 index 0000000..1735f7a --- /dev/null +++ b/desktop-kde-plasma/files/etc/xdg/baloofilerc @@ -0,0 +1,2 @@ +[Basic Settings] +Indexing-Enabled=false diff --git a/desktop-kde-plasma/files/etc/xdg/kded5rc b/desktop-kde-plasma/files/etc/xdg/kded5rc new file mode 100644 index 0000000..fbf4be2 --- /dev/null +++ b/desktop-kde-plasma/files/etc/xdg/kded5rc @@ -0,0 +1,53 @@ +[Module-appmenu] +autoload=true + +[Module-baloosearchmodule] +autoload=false + +[Module-bluedevil] +autoload=false + +[Module-colorcorrectlocationupdater] +autoload=false + +[Module-device_automounter] +autoload=true + +[Module-freespacenotifier] +autoload=false + +[Module-keyboard] +autoload=true + +[Module-khotkeys] +autoload=true + +[Module-kscreen] +autoload=false + +[Module-ksysguard] +autoload=true + +[Module-ktimezoned] +autoload=true + +[Module-kwrited] +autoload=true + +[Module-networkstatus] +autoload=true + +[Module-proxyscout] +autoload=false + +[Module-remotenotifier] +autoload=false + +[Module-solidautoeject] +autoload=true + +[Module-statusnotifierwatcher] +autoload=true + +[Module-touchpad] +autoload=true diff --git a/desktop-kde-plasma/files/etc/xdg/ksmserverrc b/desktop-kde-plasma/files/etc/xdg/ksmserverrc new file mode 100644 index 0000000..f213401 --- /dev/null +++ b/desktop-kde-plasma/files/etc/xdg/ksmserverrc @@ -0,0 +1,7 @@ +[General] +confirmLogout=false +excludeApps= +loginMode=restorePreviousLogout +offerShutdown=false +screenCount=1 +shutdownType=0 diff --git a/desktop-kde-plasma/files/usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet b/desktop-kde-plasma/files/usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet new file mode 100755 index 0000000..04f388d --- /dev/null +++ b/desktop-kde-plasma/files/usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet @@ -0,0 +1,5 @@ +#!/bin/sh + +xscreensaver-command -lock & +sleep 1 +loginctl unlock-session "$XDG_SESSION_ID" diff --git a/desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/contents/images/1920x1080.png b/desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/contents/images/1920x1080.png new file mode 100644 index 0000000..bcad928 Binary files /dev/null and b/desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/contents/images/1920x1080.png differ diff --git a/desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/metadata.desktop b/desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/metadata.desktop new file mode 100644 index 0000000..5160b7a --- /dev/null +++ b/desktop-kde-plasma/files/usr/share/wallpapers/bwLehrpool/metadata.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=bwLehrpool + +X-KDE-PluginInfo-Name=bwLehrpool +X-KDE-PluginInfo-Author=bwLehrpool +X-KDE-PluginInfo-Email=bwlehrpool@hs-offenburg.de +X-KDE-PluginInfo-License=GPLv2 diff --git a/desktop-kde-plasma/tasks/main.yml b/desktop-kde-plasma/tasks/main.yml new file mode 100644 index 0000000..8ebaa21 --- /dev/null +++ b/desktop-kde-plasma/tasks/main.yml @@ -0,0 +1,40 @@ +--- +- name: Install KDE plasma desktop environment + apt: + name: kde-plasma-desktop + state: present + +- name: Remove problematic files (dbus notification and screensaver) + file: + path: "{{ item }}" + state: absent + with_items: + - /usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet + - /usr/share/dbus-1/services/org.kde.plasma.Notifications.service + +- name: Copy static files + copy: + src: files/ + dest: / + become: yes + +- name: Set default theme to bwLehrpool + ini_file: + path: /usr/share/plasma/desktoptheme/default/metadata.desktop + section: Wallpaper + option: defaultWallpaperTheme + value: bwLehrpool + no_extra_spaces: yes + +- name: Change FillMode for wallpapers + community.general.xml: + path: /usr/share/plasma/wallpapers/org.kde.image/contents/config/main.xml + xpath: '/x:kcfg/x:group[@name="General"]/x:entry[@name="FillMode"]/x:default' + namespaces: + x: http://www.kde.org/standards/kcfg/1.0 + value: "2" + +- name: Remove update notifier package + apt: + name: plasma-discover + state: absent -- cgit v1.2.3-55-g7522