Skip to content

Commit

Permalink
update pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
UriHerrera committed Oct 24, 2024
1 parent 6c2e2b8 commit 0632929
Show file tree
Hide file tree
Showing 13 changed files with 2,442 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
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.
Expand Down
1 change: 1 addition & 0 deletions kwin/CMakeLists.txt
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)
18 changes: 18 additions & 0 deletions kwin/KZones/contents/config/Shadow.qml
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
}
117 changes: 117 additions & 0 deletions kwin/KZones/contents/config/main.xml
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>
[
{
&quot;name&quot;: &quot;Priority Grid&quot;,
&quot;padding&quot;: 0,
&quot;zones&quot;: [
{
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;height&quot;: 100,
&quot;width&quot;: 25
},
{
&quot;x&quot;: 25,
&quot;y&quot;: 0,
&quot;height&quot;: 100,
&quot;width&quot;: 50
},
{
&quot;x&quot;: 75,
&quot;y&quot;: 0,
&quot;height&quot;: 100,
&quot;width&quot;: 25
}
]
},
{
&quot;name&quot;: &quot;Quadrant Grid&quot;,
&quot;zones&quot;: [
{
&quot;x&quot;: 0,
&quot;y&quot;: 0,
&quot;height&quot;: 50,
&quot;width&quot;: 50
},
{
&quot;x&quot;: 0,
&quot;y&quot;: 50,
&quot;height&quot;: 50,
&quot;width&quot;: 50
},
{
&quot;x&quot;: 50,
&quot;y&quot;: 50,
&quot;height&quot;: 50,
&quot;width&quot;: 50
},
{
&quot;x&quot;: 50,
&quot;y&quot;: 0,
&quot;height&quot;: 50,
&quot;width&quot;: 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>
48 changes: 48 additions & 0 deletions kwin/KZones/contents/ui/components/Indicator.qml
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
}
}
}

}

}

}
18 changes: 18 additions & 0 deletions kwin/KZones/contents/ui/components/Shadow.qml
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
}
Loading

0 comments on commit 0632929

Please sign in to comment.