Compare commits
3 commits
2bfa0c189a
...
7ba6222105
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ba6222105 | ||
|
|
7935487295 | ||
|
|
d58144a853 |
4 changed files with 42 additions and 21 deletions
17
components/StyledImage.qml
Normal file
17
components/StyledImage.qml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
import qs.config
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
Image {
|
||||||
|
|
||||||
|
property alias radius: rectangle.radius
|
||||||
|
property alias skeletonColor: rectangle.color
|
||||||
|
|
||||||
|
ClippingRectangle {
|
||||||
|
id: rectangle
|
||||||
|
|
||||||
|
color: Styling.theme.base200
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,9 +1,33 @@
|
||||||
pragma Singleton
|
pragma Singleton
|
||||||
|
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
import Quickshell.Io
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
readonly property PowerMenu powermenu: PowerMenu {}
|
readonly property alias powermenu: adapter.powermenu
|
||||||
|
|
||||||
|
FileView {
|
||||||
|
path: `${Paths.config}/shell.json`
|
||||||
|
watchChanges: true
|
||||||
|
onFileChanged: reload()
|
||||||
|
|
||||||
|
// onAdapterUpdated: writeAdapter()
|
||||||
|
|
||||||
|
JsonAdapter {
|
||||||
|
id: adapter
|
||||||
|
|
||||||
|
property var powermenu: PowerMenu {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
component PowerMenu: JsonObject {
|
||||||
|
property list<PowerMenuItem> actions
|
||||||
|
}
|
||||||
|
|
||||||
|
component PowerMenuItem: JsonObject {
|
||||||
|
property string text
|
||||||
|
property string command
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ Singleton {
|
||||||
readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/lux`
|
readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/lux`
|
||||||
readonly property url config: `${StandardPaths.standardLocations(StandardPaths.GenericConfigLocation)[0]}/lux`
|
readonly property url config: `${StandardPaths.standardLocations(StandardPaths.GenericConfigLocation)[0]}/lux`
|
||||||
|
|
||||||
readonly property url imagecache: `${cache}/imagecache`
|
|
||||||
|
|
||||||
function stringify(path: url): string {
|
function stringify(path: url): string {
|
||||||
let str = path.toString();
|
let str = path.toString();
|
||||||
if (str.startsWith("root:/"))
|
if (str.startsWith("root:/"))
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
import Quickshell
|
|
||||||
|
|
||||||
PersistentProperties {
|
|
||||||
property list<var> actions: [
|
|
||||||
{
|
|
||||||
text: " Logout",
|
|
||||||
command: "hyprctl dispatch exit"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: " Reboot",
|
|
||||||
command: "systemctl reboot"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: " Shutdown",
|
|
||||||
command: "systemctl poweroff"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue