1
0
Fork 0

all: update type names for quickshell revision

This commit is contained in:
outfoxxed 2024-03-11 06:01:19 -07:00
parent 9437c6a840
commit 9838d79724
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 13 additions and 13 deletions

View file

@ -31,7 +31,7 @@ ShellRoot {
// Use the wlroots specific layer property to ensure it displays over // Use the wlroots specific layer property to ensure it displays over
// fullscreen windows. // fullscreen windows.
WlrLayershell.layer: Layer.Overlay WlrLayershell.layer: WlrLayer.Overlay
ColumnLayout { ColumnLayout {
id: content id: content

View file

@ -9,7 +9,7 @@ ShellRoot {
onUnlocked: lock.locked = false onUnlocked: lock.locked = false
} }
SessionLock { WlSessionLock {
id: lock id: lock
locked: true locked: true
@ -17,7 +17,7 @@ ShellRoot {
if (!locked) Qt.quit(); if (!locked) Qt.quit();
} }
SessionLockSurface { WlSessionLockSurface {
// You probably want to replace this with an image. // You probably want to replace this with an image.
color: "#303030" color: "#303030"

View file

@ -9,15 +9,15 @@ Variants {
property color backgroundColor: "#e60c0c0c" property color backgroundColor: "#e60c0c0c"
property color buttonColor: "#1e1e1e" property color buttonColor: "#1e1e1e"
property color buttonHoverColor: "#3700b3" property color buttonHoverColor: "#3700b3"
default property list<WlButton> buttons default property list<LogoutButton> buttons
variants: Quickshell.screens.map(screen => ({ screen })) variants: Quickshell.screens.map(screen => ({ screen }))
PanelWindow { PanelWindow {
id: w id: w
exclusionMode: ExclusionMode.Ignore exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: Layer.Overlay WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: KeyboardFocus.Exclusive WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
color: "transparent" color: "transparent"
@ -62,7 +62,7 @@ Variants {
Repeater { Repeater {
model: buttons model: buttons
delegate: Rectangle { delegate: Rectangle {
required property WlButton modelData; required property LogoutButton modelData;
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true

View file

@ -3,42 +3,42 @@ import Quickshell
ShellRoot { ShellRoot {
WLogout { WLogout {
WlButton { LogoutButton {
command: "loginctl lock-screen" command: "loginctl lock-screen"
keybind: Qt.Key_K keybind: Qt.Key_K
text: "Lock" text: "Lock"
icon: "lock" icon: "lock"
} }
WlButton { LogoutButton {
command: "loginctl terminate-user $USER" command: "loginctl terminate-user $USER"
keybind: Qt.Key_E keybind: Qt.Key_E
text: "Logout" text: "Logout"
icon: "logout" icon: "logout"
} }
WlButton { LogoutButton {
command: "systemctl suspend" command: "systemctl suspend"
keybind: Qt.Key_U keybind: Qt.Key_U
text: "Suspend" text: "Suspend"
icon: "suspend" icon: "suspend"
} }
WlButton { LogoutButton {
command: "systemctl hibernate" command: "systemctl hibernate"
keybind: Qt.Key_H keybind: Qt.Key_H
text: "Hibernate" text: "Hibernate"
icon: "hibernate" icon: "hibernate"
} }
WlButton { LogoutButton {
command: "systemctl poweroff" command: "systemctl poweroff"
keybind: Qt.Key_K keybind: Qt.Key_K
text: "Shutdown" text: "Shutdown"
icon: "shutdown" icon: "shutdown"
} }
WlButton { LogoutButton {
command: "systemctl reboot" command: "systemctl reboot"
keybind: Qt.Key_R keybind: Qt.Key_R
text: "Reboot" text: "Reboot"