Compare commits

...

3 commits

Author SHA1 Message Date
Benjamin Palko
7ba6222105 powermenu config in shell json 2025-09-23 15:06:23 -04:00
Benjamin Palko
7935487295 reee 2025-09-23 14:13:24 -04:00
Benjamin Palko
d58144a853 styledimage 2025-09-23 13:19:38 -04:00
4 changed files with 42 additions and 21 deletions

View 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
}
}

View file

@ -1,9 +1,33 @@
pragma Singleton
import Quickshell
import Quickshell.Io
Singleton {
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
}
}

View file

@ -14,8 +14,6 @@ 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:/"))

View file

@ -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"
}
]
}