🔀 Merge pull request #234 from Schneegans/feature/kwin-json-config

This commit is contained in:
Simon Schneegans
2022-11-05 06:17:51 +01:00
committed by GitHub
5 changed files with 39 additions and 29 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ SPDX-License-Identifier: CC-BY-4.0
#### Other Enhancements
* Burn-My-Windows now follows the [REUSE Specification](https://reuse.software/spec).
* The KWin port of Burn-My-Windows now uses `metadata.json` files instead of the deprecated `metadata.desktop` format.
## [Burn My Windows 21](https://github.com/schneegans/Burn-My-Windows/releases/tag/v21)
+7 -7
View File
@@ -82,12 +82,12 @@ generate() {
perl -pi -e "s/%SHADER_NAME%/$1/g;" "$BUILD_DIR/$DIR_NAME/contents/code/main.js"
perl -pi -e "s/\f/\//g;" "$BUILD_DIR/$DIR_NAME/contents/code/main.js"
# Now create the metadata.desktop file. Again, we replace some placeholders.
cp metadata.desktop.in "$BUILD_DIR/$DIR_NAME/metadata.desktop"
perl -pi -e "s/%ICON%/$1/g;" "$BUILD_DIR/$DIR_NAME/metadata.desktop"
perl -pi -e "s/%NAME%/$2/g;" "$BUILD_DIR/$DIR_NAME/metadata.desktop"
perl -pi -e "s/%DESCRIPTION%/$3/g;" "$BUILD_DIR/$DIR_NAME/metadata.desktop"
perl -pi -e "s/%DIR_NAME%/$DIR_NAME/g;" "$BUILD_DIR/$DIR_NAME/metadata.desktop"
# Now create the metadata.json file. Again, we replace some placeholders.
cp metadata.json.in "$BUILD_DIR/$DIR_NAME/metadata.json"
perl -pi -e "s/%ICON%/$1/g;" "$BUILD_DIR/$DIR_NAME/metadata.json"
perl -pi -e "s/%NAME%/$2/g;" "$BUILD_DIR/$DIR_NAME/metadata.json"
perl -pi -e "s/%DESCRIPTION%/$3/g;" "$BUILD_DIR/$DIR_NAME/metadata.json"
perl -pi -e "s/%DIR_NAME%/$DIR_NAME/g;" "$BUILD_DIR/$DIR_NAME/metadata.json"
# Now create the two required shader files. We prepend the common.glsl to each shader.
# We also define KWIN and KWIN_LEGACY. The code in common.glsl takes some different
@@ -143,4 +143,4 @@ generate "wisps" "Wisps [Burn-My-Windows]" "Let your windows be carr
# Finally, create an archive for the effects.
# shellcheck disable=SC2046
tar -cjf "burn_my_windows_kwin4.tar.gz" -C "$BUILD_DIR" $(ls "$BUILD_DIR")
tar -cjf "burn_my_windows_kwin4.tar.gz" -C "$BUILD_DIR" $(ls "$BUILD_DIR")
-21
View File
@@ -1,21 +0,0 @@
[Desktop Entry]
Name=%NAME%
Icon=preferences-system-windows-effect-%ICON%
Comment=%DESCRIPTION%
Type=Service
X-KDE-ServiceTypes=KWin/Effect,KCModule
X-KDE-PluginInfo-Author=Vlad Zahorodnii, Martin Flöser, Simon Schneegans
X-KDE-PluginInfo-Email=vlad.zahorodnii@kde.org, mgraesslin@kde.org, code@simonschneegans.de
X-KDE-PluginInfo-Name=%DIR_NAME%
X-KDE-PluginInfo-Version=1
X-KDE-PluginInfo-Category=Window Open/Close Animation
X-KDE-PluginInfo-License=GPLv3
X-KDE-PluginInfo-EnabledByDefault=false
X-KDE-Ordering=60
X-Plasma-API=javascript
X-Plasma-MainScript=code/main.js
X-KDE-PluginKeyword=%DIR_NAME%
X-KDE-Library=kcm_kwin4_genericscripted
X-KWin-Config-TranslationDomain=kwin_effects
X-KWin-Exclusive-Category=toplevel-open-close-animation
+28
View File
@@ -0,0 +1,28 @@
{
"KPlugin": {
"Name": "%NAME%",
"Description": "%DESCRIPTION%",
"Icon": "preferences-system-windows-effect-%ICON%",
"Category": "Window Open/Close Animation",
"Authors": [
{ "Name": "Simon Schneegans", "Email": "code@simonschneegans.de" },
{ "Name": "Martin Flöser", "Email": "vlad.zahorodnii@kde.org" },
{ "Name": "Aaron Seigo", "Email": "mgraesslin@kde.org" }
],
"Id": "%DIR_NAME%",
"License": "GPLv3",
"Version": "1.0",
"EnabledByDefault": "false",
"Website": "https://github.com/Schneegans/Burn-My-Windows/",
"BugReportUrl": "https://github.com/Schneegans/Burn-My-Windows/issues",
"ServiceTypes": [
"KWin/Effect"
]
},
"X-KDE-Ordering": "60",
"X-KDE-PluginKeyword": "%DIR_NAME%",
"X-KWin-Config-TranslationDomain": "kwin_effects",
"X-KWin-Exclusive-Category": "toplevel-open-close-animation",
"X-Plasma-API": "javascript",
"X-Plasma-MainScript": "code/main.js"
}
+3
View File
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2022 Simon Schneegans <code@simonschneegans.de>
SPDX-License-Identifier: CC0-1.0