Skip to content

Commit

Permalink
Merge pull request #8 from gerritdevriese/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
gerritdevriese authored Oct 1, 2022
2 parents 67597b7 + 7e53b62 commit 24c21b4
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 107 deletions.
Binary file modified KZones.kwinscript
Binary file not shown.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,20 @@ You can block certain windows from snapping by adding their class name to the ex
#### Polling rate
The polling rate is the amount of time between each zone check when dragging a window. The default is 100ms, a faster polling rate is more accurate but will use more CPU. You can change this to your liking.

#### Inverted mode
When enabled, moving windows will not trigger the osd. Instead you'll have to use the "Toggle OSD" shortcut to show the osd.

## Shortcuts
List of all available shortcuts:
| Shortcut | Default Binding |
|--------------------------------------|---------------------------|
| Move active window to zone | `Ctrl+Alt+[0-9]` |
| Move active window to previous zone | `Ctrl+Alt+Left` |
| Move active window to next zone | `Ctrl+Alt+Right` |
| Cycle between layouts | `Ctrl+Alt+D` |
| Toggle OSD | `Ctrl+Alt+C` |
| Shortcut | Default Binding |
|-----------------------------------------------|---------------------------|
| Move active window to zone | `Ctrl+Alt+[0-9]` |
| Move active window to previous zone | `Ctrl+Alt+Left` |
| Move active window to next zone | `Ctrl+Alt+Right` |
| Switch to previous window in current zone | `Ctrl+Alt+Down` |
| Switch to next window in current zone | `Ctrl+Alt+Up` |
| Cycle between layouts | `Ctrl+Alt+D` |
| Toggle OSD | `Ctrl+Alt+C` |

*To change the default bindings, go to System Settings / Shortcuts and search for KZones*

Expand Down
7 changes: 7 additions & 0 deletions contents/config/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@
<default>false</default>
</entry>

<entry name="alternateIndicatorStyle" type="Bool">
<default>false</default>
</entry>

<entry name="invertedMode" type="Bool">
<default>false</default>
</entry>

</group>
</kcfg>
100 changes: 73 additions & 27 deletions contents/ui/config.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>700</width>
<height>574</height>
<height>616</height>
</rect>
</property>
<property name="minimumSize">
Expand Down Expand Up @@ -90,6 +90,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_invertedMode">
<property name="text">
<string>Inverted mode</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="font">
Expand Down Expand Up @@ -562,6 +569,25 @@
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_26">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>Style</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_alternateIndicatorStyle">
<property name="text">
<string>Alternate indicator style</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
Expand Down Expand Up @@ -718,32 +744,52 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label_13">
<property name="font">
<font>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
<underline>false</underline>
<strikeout>false</strikeout>
</font>
</property>
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>Please reload the script after making changes to apply them</string>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="margin">
<number>8</number>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_25">
<property name="toolTip">
<string>https://github.com/gerritdevriese/kzones</string>
</property>
<property name="text">
<string>&lt;a href=&quot;https://github.com/gerritdevriese/kzones&quot;&gt;Github page&lt;/a&gt;</string>
</property>
<property name="margin">
<number>8</number>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_13">
<property name="font">
<font>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
<underline>false</underline>
<strikeout>false</strikeout>
</font>
</property>
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>Please reload the script after making changes to apply them</string>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="margin">
<number>8</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
Expand Down
Loading

0 comments on commit 24c21b4

Please sign in to comment.