Skip to content

Commit

Permalink
Merge pull request #7 from aksdb/master
Browse files Browse the repository at this point in the history
Port to KDE 6
  • Loading branch information
tsoernes authored Apr 24, 2024
2 parents 412d3fd + 1f5b4c8 commit 68d4d02
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 232 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.kwinscript
.direnv/
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
install:
kpackagetool6 --type=KWin/Script -i .

update:
kpackagetool6 --type=KWin/Script -u .

package:
zip -r quick-tile-2-v$$(cat metadata.json | jq -r .KPlugin.Version).kwinscript contents/* LICENSE README.md metadata.json
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,28 @@ _or_ [download the zip](https://github.com/tsoernes/kwin-quick-tile-2/releases)
2. `cd` into the `kwin-quick-tile-2` folder.

3. Execute the following command in the `kwin-quick-tile-2` folder:
```
sh install.sh
```
```
make install
```
If the extension was already installed before, use the following instead:
```
make update
```
4. Open `KWin Scripts` from the start menu and enable Quick Tile 2.
## How to use
Default keys are <Meta + Arrow>, for example <Meta + Up>, as in Windows 10, where the Meta key is also known as the Super key or Windows key.
If the keys are already bound, you need to set them in "Global Shortcuts" from the start menu. The shortcuts are prefixed "Quick Tile 2".
They are usually to be found in the KWin shortcut tab, but on some systems they end up in the System Settings tab.
## Manual installation and packaging
## Packaging
Should something go wrong with the above script, you can try to manually package and install it.
To package this kwin-script into a .kwinscript archive, execute:
```
zip -r quick-tile-2-v$(cat metadata.desktop | grep X-KDE-PluginInfo-Version= | awk -F'=' '{print $2}').kwinscript *
make package
```
To install the archive, execute:
```
plasmapkg2 --type kwinscript -i quick-tile-2-v*.kwinscript
```
Alternatively, open "KWin scripts" from the start menu and then "Import KWin script ..."
Afterwards, you might need to log in and out.
It can then be installed via "Import KWin script ..." in system settings.
Loading

0 comments on commit 68d4d02

Please sign in to comment.