Skip to content

Commit

Permalink
port metadata to JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
nclarius committed Nov 27, 2022
1 parent a1f04b1 commit df317bf
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 57 deletions.
19 changes: 0 additions & 19 deletions CHANGELOG.bbcode

This file was deleted.

15 changes: 0 additions & 15 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.bbcode
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Automatically raises all other visible windows of the same application together when activating one of them, effectively creating application groups to task-switch between.

[b]Please make sure to install the most recent version (v1.4) and to not use Discover for installation.[/b] For more information on installation, setup and usage as well as any requests, please visit [url=https://github.com/nclarius/kwin-application-switcher]the GitHub page[/url].
[b]Please make sure to install the most recent version (v1.5) and to not use Discover for installation.[/b] For more information on installation, setup and usage as well as any requests, please visit [url=https://github.com/nclarius/kwin-application-switcher]the GitHub page[/url].

This extension gives rise to an application-centric task switching workflow as known from environments such as GNOME or MacOS, where an application’s windows are treated as a group, and task switching can take place at two levels: one mode for switching applications and one mode for switching between windows of an application.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Seen in the screencast: Switching from Konsole back to Dolphin also brings the o

### Installation via graphical interface

**Please make sure to select the most recent version (v1.4)** in the installation process.
**Please make sure to select the most recent version (v1.5)** in the installation process.

A [bug](https://bugs.kde.org/show_bug.cgi?id=453521) in Discover causes a wrong version to be installed, so using the installation module in System Settings instead is recommended.

Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
name=$(grep -oP '(?<=X-KDE-PluginInfo-Name=).*' ./metadata.desktop)
name=$(grep -oP '"Id":\s*"[^"]*' ./metadata.json | grep -oP '[^"]*$')
kpackagetool5 --type=KWin/Script --install . || kpackagetool5 --type=KWin/Script --upgrade .
kwriteconfig5 --file kwinrc --group Plugins --key "$name"Enabled true
qdbus org.kde.KWin /KWin reconfigure
20 changes: 0 additions & 20 deletions metadata.desktop

This file was deleted.

23 changes: 23 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"KPlugin": {
"Authors": [
{
"Email": "[email protected]",
"Name": "Natalie Clarius"
}
],
"Description": "Collectively raises all windows of the same application when switching tasks",
"Icon": "preferences-system-windows",
"Id": "applicationswitcher",
"License": "GPLv3.0",
"Name": "Application Switcher",
"ServiceTypes": [
"KWin/Script",
"KCModule"
],
"Version": "1.5",
"Website": ""
},
"X-Plasma-API": "javascript",
"X-Plasma-MainScript": "code/main.js"
}

0 comments on commit df317bf

Please sign in to comment.