Compare commits
No commits in common. "7ba62221053b7ea9ee56d5ca80abcb3ae795b736" and "2bfa0c189a148d916d116deab97b6845a9359fbf" have entirely different histories.
7ba6222105
...
2bfa0c189a
4 changed files with 21 additions and 42 deletions
|
|
@ -1,17 +0,0 @@
|
|||
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,33 +1,9 @@
|
|||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
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
|
||||
}
|
||||
readonly property PowerMenu powermenu: PowerMenu {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ Singleton {
|
|||
readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/lux`
|
||||
readonly property url config: `${StandardPaths.standardLocations(StandardPaths.GenericConfigLocation)[0]}/lux`
|
||||
|
||||
readonly property url imagecache: `${cache}/imagecache`
|
||||
|
||||
function stringify(path: url): string {
|
||||
let str = path.toString();
|
||||
if (str.startsWith("root:/"))
|
||||
|
|
|
|||
18
config/PowerMenu.qml
Normal file
18
config/PowerMenu.qml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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