finished update
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import Quickshell.Io
|
|||||||
Process {
|
Process {
|
||||||
id: getGifsProcess
|
id: getGifsProcess
|
||||||
property list<string> gifsList: []
|
property list<string> gifsList: []
|
||||||
command: ["sh", "-c", "./Scripts/files.sh"]
|
command: ["sh", "-c", "$HOME/.config/quickshell/QtDesktopPet/Scripts/files.sh"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
var gifs = this.text.trim().split("\n")
|
var gifs = this.text.trim().split("\n")
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
import Quickshell.Io
|
|
||||||
|
|
||||||
Process {
|
|
||||||
id: getGifsProcess
|
|
||||||
property list<string> gifsList: []
|
|
||||||
command: ["sh", "-c", "/home/inorishio/.config/quickshell/QtDesktopPet/Scripts/gifs.sh"]
|
|
||||||
stdout: StdioCollector {
|
|
||||||
onStreamFinished: {
|
|
||||||
var gifs = this.text.trim().split("\n")
|
|
||||||
getGifsProcess.gifsList = gifs
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Wayland
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: root
|
|
||||||
width: imageEvernight.width
|
|
||||||
height: imageEvernight.height
|
|
||||||
|
|
||||||
required property var path
|
|
||||||
|
|
||||||
AnimatedImage {
|
|
||||||
id: imageEvernight
|
|
||||||
source: root.path
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
}
|
|
||||||
|
|
||||||
IpcHandler {
|
|
||||||
target: "command"
|
|
||||||
|
|
||||||
// Keybind swap layer
|
|
||||||
function toggleLayer(): void {
|
|
||||||
if ( !mainWindow.onTop ) {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Top
|
|
||||||
mainWindow.onTop = true
|
|
||||||
} else {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
|
||||||
mainWindow.onTop = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Keybind swap overlay
|
|
||||||
function toggleOverlay(): void {
|
|
||||||
if (!mainWindow.onTop) {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Overlay
|
|
||||||
mainWindow.onTop = true
|
|
||||||
} else {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
|
||||||
mainWindow.onTop = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
width: AnimatedImage.width
|
|
||||||
height: AnimatedImage.height
|
|
||||||
|
|
||||||
AnimatedImage {
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Wayland
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
width: 320
|
|
||||||
height: 293
|
|
||||||
|
|
||||||
AnimatedImage {
|
|
||||||
source: "../Gifs/Evernight.gif"
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
}
|
|
||||||
|
|
||||||
IpcHandler {
|
|
||||||
target: "command"
|
|
||||||
|
|
||||||
// Keybind swap layer
|
|
||||||
function toggleLayer(): void {
|
|
||||||
if ( !mainWindow.onTop ) {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Top
|
|
||||||
mainWindow.onTop = true
|
|
||||||
} else {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
|
||||||
mainWindow.onTop = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Keybind swap overlay
|
|
||||||
function toggleOverlay(): void {
|
|
||||||
if (!mainWindow.onTop) {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Overlay
|
|
||||||
mainWindow.onTop = true
|
|
||||||
} else {
|
|
||||||
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
|
||||||
mainWindow.onTop = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
import Quickshell.Io
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import qs.Modules
|
import qs.Modules
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ PanelWindow {
|
|||||||
id: getGifs
|
id: getGifs
|
||||||
running: true
|
running: true
|
||||||
}
|
}
|
||||||
|
|
||||||
GifsLoader {
|
GifsLoader {
|
||||||
id: gifloader
|
id: gifloader
|
||||||
gifsList: getGifs.gifsList
|
gifsList: getGifs.gifsList
|
||||||
@@ -39,6 +40,32 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "command"
|
||||||
|
|
||||||
|
// Keybind swap layer
|
||||||
|
function toggleLayer(): void {
|
||||||
|
if ( !mainWindow.onTop ) {
|
||||||
|
mainWindow.WlrLayershell.layer = WlrLayer.Top
|
||||||
|
mainWindow.onTop = true
|
||||||
|
} else {
|
||||||
|
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
||||||
|
mainWindow.onTop = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keybind swap overlay
|
||||||
|
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 ) {
|
function petRegion( itemObject ) {
|
||||||
let newregion = regionComponent.createObject( pets, { "item": itemObject })
|
let newregion = regionComponent.createObject( pets, { "item": itemObject })
|
||||||
pets.regions.push( newregion )
|
pets.regions.push( newregion )
|
||||||
@@ -49,7 +76,25 @@ PanelWindow {
|
|||||||
Region { }
|
Region { }
|
||||||
}
|
}
|
||||||
|
|
||||||
mask: Region {
|
mask: Region {}
|
||||||
id: pets
|
|
||||||
|
property var petMove: Region { id: pets }
|
||||||
|
|
||||||
|
property var noMove: Region {}
|
||||||
|
|
||||||
|
property bool setMask: false
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "Mask"
|
||||||
|
|
||||||
|
function edmask(): void {
|
||||||
|
if ( !mainWindow.setMask ) {
|
||||||
|
mainWindow.mask = petMove
|
||||||
|
mainWindow.setMask = true
|
||||||
|
} else {
|
||||||
|
mainWindow.mask = noMove
|
||||||
|
mainWindow.setMask = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user