quickshell: a bunch of changes

This commit is contained in:
Bloxx12 2025-07-19 00:36:05 +02:00
commit b82a3580ec
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
11 changed files with 137 additions and 100 deletions

View file

@ -1,6 +1,7 @@
import QtQuick
import Quickshell
import Quickshell.Wayland
import Qt.labs.folderlistmodel 2.9
PanelWindow {
id: root
@ -9,6 +10,24 @@ PanelWindow {
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.namespace: "shell:background"
// property string basePath: "file:///home/cr/Documents/Backgrounds/"
// property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath")
// property var finalPath: absPath
// property bool _: log()
// function log() {
// console.log(absPath);
// console.log(folderModel.count);
// return true;
// }
FolderListModel {
id: folderModel
// folder: root.basePath
nameFilters: ["*.png"]
showDirs: false
showFiles: true
}
anchors {
top: true
bottom: true
@ -16,13 +35,21 @@ PanelWindow {
right: true
}
Item {
id: background
anchors.fill: parent
Image {
id: image
asynchronous: true
source: "/home/cr/repos/projects/nichts/modules/style/wholefoods.png"
// Item {
// id: background
// anchors.fill: parent
// Image {
// id: image
// source: Qt.resolvedUrl(root.finalPath)
// }
// }
Timer {
id: timer
// 10 minutes
interval: 1000 * 60 * 10
running: false
onTriggered: {
root.popupOpacity = 0;
}
}
}

View file

@ -9,7 +9,7 @@ Rectangle {
width: text.width + 5
height: text.height + 5
implicitWidth: width
border.color: Config.catppuccin.rosewater
border.color: Colors.rosewater
border.width: 0
radius: 5
color: "transparent"
@ -24,7 +24,7 @@ Rectangle {
font.family: "JetBrainsMono NF Mono"
font.pointSize: 15
color: Config.catppuccin.text
color: Colors.text
}
SystemClock {

View file

@ -36,7 +36,7 @@ Rectangle {
// height: workspaces.length * root.wsItemHeight
implicitWidth: list.implicitWidth
color: "transparent"
border.color: Config.catppuccin.rosewater
border.color: Colors.rosewater
border.width: 0
radius: 7
@ -93,9 +93,9 @@ Rectangle {
height: wsItem.height - 5
width: parent.width * wsItem.animActive
radius: height / 2
border.color: Config.catppuccin.mantle
border.color: Colors.mantle
border.width: 0
color: Config.catppuccin.blue
color: Colors.blue
}
}
}

View file

@ -5,10 +5,10 @@ import Quickshell.Wayland
import QtQuick
import QtQuick.Effects
import "../bar"
import qs.modules.bar
import "../../config"
import "../"
import qs.config
import qs.modules
Variants {
model: Quickshell.screens