Skip to content

Commit

Permalink
📚 Improved: new trouble shooting about blank window blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetf committed Mar 30, 2019
1 parent 3dddfe6 commit 7fbad3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Go to `System Settings` -> `Window Management` -> `KWin Scripts` -> `Get New Scr

And then search for `kwin-maximize-to-new-desktop`.

Note: __To get the configuration panel fully working, see [this](#no-configuration-button-available-in-the-kwin-scripts-entry)
and [this](#blank-window-class-blacklist-in-configuration)__

### Install directly

Download the latest release from KDE [store][store], and run
Expand All @@ -41,6 +44,9 @@ Download the latest release from KDE [store][store], and run
plasmapkg2 --install kwin-maxmize-to-new-desktop-0.2.0.tar.gz
```

Note: __To get the configuration panel fully working, see [this](#no-configuration-button-available-in-the-kwin-scripts-entry)
and [this](#window-class-blacklist-in-configuration-is-blank)__

## Tips

### Get window's class for the blacklist
Expand All @@ -60,6 +66,14 @@ mkdir -p ~/.local/share/kservices5
ln -s ~/.local/share/kwin/scripts/max2NewVirtualDesktop/metadata.desktop ~/.local/share/kservices5/max2NewVirtualDesktop.desktop
```

### Blank window class blacklist in configuration

You need to install an additional package called `kdesignerplugin` ([link](https://github.com/KDE/kdesignerplugin)),
which makes it possible to use KEditListWidget.

* For ArchLinux: `pacman -Syu kdesignerplugin`.
* For Ubuntu and alike: `apt install kdesignerplugin`.

### Configuration not picked up by the script after changing

Log out and log in again.
Expand Down
9 changes: 2 additions & 7 deletions contents/ui/config.ui
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KComboBox" name="kcfg_newDesktopPosition">
<widget class="QComboBox" name="kcfg_newDesktopPosition">
<item>
<property name="text">
<string>Right Most</string>
Expand Down Expand Up @@ -144,7 +144,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="KComboBox" name="kcfg_trigger">
<widget class="QComboBox" name="kcfg_trigger">
<item>
<property name="text">
<string>Fullscreen Only</string>
Expand Down Expand Up @@ -197,11 +197,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KEditListWidget</class>
<extends>QWidget</extends>
Expand Down

0 comments on commit 7fbad3e

Please # to comment.