-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c2e2b8
commit 0632929
Showing
13 changed files
with
2,442 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
nx-plasma-look-and-feel (2.3.2) nitrux; urgency=medium | ||
|
||
* Add KZones KWin script. | ||
|
||
-- Uri Herrera <[email protected]> Mon, 15 Jul 2024 16:15:00 -0500 | ||
|
||
nx-plasma-look-and-feel (2.3.1) nitrux; urgency=medium | ||
|
||
* Add icon for vpn connection and ethernet and vpn connections. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
install(DIRECTORY polonium DESTINATION ${CMAKE_INSTALL_PREFIX}/share/kwin/scripts) | ||
install(DIRECTORY macsimize DESTINATION ${CMAKE_INSTALL_PREFIX}/share/kwin/scripts) | ||
install(DIRECTORY KZones DESTINATION ${CMAKE_INSTALL_PREFIX}/share/kwin/scripts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import QtQuick 2.15 | ||
import QtGraphicalEffects 1.0 | ||
|
||
DropShadow { | ||
property Item target : null | ||
anchors.fill: target | ||
visible: target.visible | ||
opacity: target.opacity | ||
scale: target.scale | ||
cached: true | ||
horizontalOffset: 0 | ||
verticalOffset: 0 | ||
radius: 32 | ||
samples: (radius*2)+1 | ||
color: color_indicator_shadow | ||
smooth: true | ||
source: target | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 | ||
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > | ||
<kcfgfile name=""/> | ||
<group name=""> | ||
|
||
<!-- General --> | ||
<entry name="enableZoneSelector" type="Bool"> | ||
<default>true</default> | ||
</entry> | ||
|
||
<entry name="zoneSelectorTriggerDistance" type="Int"> | ||
<default>1</default> | ||
</entry> | ||
|
||
<entry name="enableZoneOverlay" type="Bool"> | ||
<default>true</default> | ||
</entry> | ||
|
||
<entry name="zoneOverlayShowWhen" type="Int"> | ||
<default>0</default> | ||
</entry> | ||
|
||
<entry name="zoneOverlayHighlightTarget" type="Int"> | ||
<default>0</default> | ||
</entry> | ||
|
||
<entry name="rememberWindowGeometries" type="Bool"> | ||
<default>true</default> | ||
</entry> | ||
|
||
<!-- Layouts --> | ||
|
||
<entry name="layoutsJson" type="String"> | ||
<default> | ||
[ | ||
{ | ||
"name": "Priority Grid", | ||
"padding": 0, | ||
"zones": [ | ||
{ | ||
"x": 0, | ||
"y": 0, | ||
"height": 100, | ||
"width": 25 | ||
}, | ||
{ | ||
"x": 25, | ||
"y": 0, | ||
"height": 100, | ||
"width": 50 | ||
}, | ||
{ | ||
"x": 75, | ||
"y": 0, | ||
"height": 100, | ||
"width": 25 | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Quadrant Grid", | ||
"zones": [ | ||
{ | ||
"x": 0, | ||
"y": 0, | ||
"height": 50, | ||
"width": 50 | ||
}, | ||
{ | ||
"x": 0, | ||
"y": 50, | ||
"height": 50, | ||
"width": 50 | ||
}, | ||
{ | ||
"x": 50, | ||
"y": 50, | ||
"height": 50, | ||
"width": 50 | ||
}, | ||
{ | ||
"x": 50, | ||
"y": 0, | ||
"height": 50, | ||
"width": 50 | ||
} | ||
] | ||
} | ||
] | ||
</default> | ||
</entry> | ||
|
||
<!-- Filters --> | ||
|
||
<entry name="filterMode" type="Int"> | ||
<default>0</default> | ||
</entry> | ||
|
||
<entry name="filterList" type="String"> | ||
<default></default> | ||
</entry> | ||
|
||
<!-- Advanced --> | ||
|
||
<entry name="pollingRate" type="Int"> | ||
<default>100</default> | ||
</entry> | ||
|
||
<entry name="enableDebugMode" type="Bool"> | ||
<default>false</default> | ||
</entry> | ||
|
||
</group> | ||
</kcfg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import QtGraphicalEffects 1.0 | ||
import QtQuick 2.15 | ||
import org.kde.kirigami 2.15 as Kirigami | ||
|
||
Rectangle { | ||
id: indicator | ||
property int activeZone: 0 | ||
property bool hovering: false | ||
property var zones: [] | ||
width: parent.width | ||
height: parent.height | ||
color: "transparent" | ||
opacity: 1 | ||
|
||
Repeater { | ||
id: indicators | ||
model: zones | ||
|
||
Item { | ||
id: zone | ||
x: ((modelData.x / 100) * (indicator.width)) | ||
y: ((modelData.y / 100) * (indicator.height)) | ||
width: ((modelData.width / 100) * (indicator.width)) | ||
height: ((modelData.height / 100) * (indicator.height)) | ||
|
||
Rectangle { | ||
property int padding: 2 | ||
anchors.fill: parent | ||
anchors.margins: padding | ||
Kirigami.Theme.colorSet: Kirigami.Theme.View | ||
Kirigami.Theme.inherit: false | ||
color: (activeZone == index) ? Kirigami.Theme.hoverColor : Kirigami.ColorUtils.tintWithAlpha( Kirigami.Theme.backgroundColor, Qt.rgba(1,1,1), 0.1) | ||
border.color: Kirigami.ColorUtils.tintWithAlpha(color, Kirigami.Theme.textColor, 0.2) | ||
border.width: 1 | ||
radius: 5 | ||
|
||
Behavior on color { | ||
ColorAnimation { | ||
duration: 150 | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import QtQuick 2.15 | ||
import QtGraphicalEffects 1.0 | ||
|
||
DropShadow { | ||
property Item target : null | ||
anchors.fill: target | ||
visible: target.visible | ||
opacity: target.opacity | ||
scale: target.scale | ||
cached: true | ||
horizontalOffset: 0 | ||
verticalOffset: 0 | ||
radius: 32 | ||
samples: (radius*2)+1 | ||
color: '#69000000' | ||
smooth: true | ||
source: target | ||
} |
Oops, something went wrong.