made the wlogout buttons into scripts

This commit is contained in:
Hannes
2026-06-01 00:44:20 +02:00
parent 47aa559a19
commit 3775dece25
7 changed files with 18 additions and 6 deletions
+6 -6
View File
@@ -4,7 +4,7 @@ import Quickshell
ShellRoot { ShellRoot {
WLogout { WLogout {
LogoutButton { LogoutButton {
command: "loginctl lock-session" command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/lock.sh"
keybind: Qt.Key_L keybind: Qt.Key_L
text: "Lock" text: "Lock"
icon: "lock" icon: "lock"
@@ -12,7 +12,7 @@ ShellRoot {
} }
LogoutButton { LogoutButton {
command: "loginctl terminate-user $USER" command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/logout.sh"
keybind: Qt.Key_E keybind: Qt.Key_E
text: "Logout" text: "Logout"
icon: "logout" icon: "logout"
@@ -20,7 +20,7 @@ ShellRoot {
} }
LogoutButton { LogoutButton {
command: "systemctl suspend" command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/suspend.sh"
keybind: Qt.Key_U keybind: Qt.Key_U
text: "Suspend" text: "Suspend"
icon: "suspend" icon: "suspend"
@@ -28,7 +28,7 @@ ShellRoot {
} }
LogoutButton { LogoutButton {
command: "systemctl hibernate" command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/hibernate.sh"
keybind: Qt.Key_H keybind: Qt.Key_H
text: "Hibernate" text: "Hibernate"
icon: "hibernate" icon: "hibernate"
@@ -36,7 +36,7 @@ ShellRoot {
} }
LogoutButton { LogoutButton {
command: "systemctl poweroff" command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/shutdown.sh"
keybind: Qt.Key_K keybind: Qt.Key_K
text: "Shutdown" text: "Shutdown"
icon: "shutdown" icon: "shutdown"
@@ -44,7 +44,7 @@ ShellRoot {
} }
LogoutButton { LogoutButton {
command: "systemctl reboot" command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/reboot.sh"
keybind: Qt.Key_R keybind: Qt.Key_R
text: "Reboot" text: "Reboot"
icon: "reboot" icon: "reboot"
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
systemctl hibernate
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
hyprlock
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
systemctl loginctl terminate-user $USER
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
systemctl reboot
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
systemctl poweroff
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
systemctl suspend