Zach: I know everything about your life

This commit is contained in:
2025-12-03 23:22:59 +01:00
parent e9fab71e9d
commit cf55c79855
6 changed files with 35 additions and 79 deletions
+27 -30
View File
@@ -4,12 +4,14 @@ import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import Quickshell.Hyprland
import qs.Modules
PanelWindow {
id: mainWindow
color: "transparent"
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.exclusionMode: ExclusionMode.Ignore
surfaceFormat.opaque: false
property bool onTop: true
@@ -32,7 +34,7 @@ PanelWindow {
GetGifs {
id: getGifs
gifFolder: ConfigLoader.gifFolder
running: ConfigLoader.ready
running: true
}
GifsLoader {
@@ -63,30 +65,6 @@ PanelWindow {
}
}
IpcHandler {
target: "command"
function toggleLayer(): void {
if ( !mainWindow.onTop ) {
mainWindow.WlrLayershell.layer = WlrLayer.Top
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
mainWindow.onTop = false
}
}
function toggleOverlay(): void {
if (!mainWindow.onTop) {
mainWindow.WlrLayershell.layer = WlrLayer.Overlay
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
mainWindow.onTop = false
}
}
}
function petRegion( itemObject ) {
let newregion = regionComponent.createObject( pets, { "item": itemObject })
pets.regions.push( newregion )
@@ -104,16 +82,35 @@ PanelWindow {
regions: maskVariants.instances
}
property var petMove: Region { id: pets }
property var petMove: Region { id: pets
width: Screen.width
height: Screen.height
intersection: Intersection.Xor
regions: maskVariants.instances
}
property var noMove: Region {}
property bool setMask: false
IpcHandler {
target: "Mask"
GlobalShortcut {
appid: "I-DeskPet"
name: "toggle-Layer"
onPressed: {
if (!mainWindow.onTop) {
mainWindow.WlrLayershell.layer = WlrLayer.Overlay
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
mainWindow.onTop = false
}
}
}
function edmask(): void {
GlobalShortcut {
appid: "I-DeskPet"
name: "toggle-Region"
onPressed: {
if ( !mainWindow.setMask ) {
mainWindow.mask = mainWindow.petMove
mainWindow.setMask = true