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 {
WLogout {
LogoutButton {
command: "loginctl lock-session"
command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/lock.sh"
keybind: Qt.Key_L
text: "Lock"
icon: "lock"
@@ -12,7 +12,7 @@ ShellRoot {
}
LogoutButton {
command: "loginctl terminate-user $USER"
command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/logout.sh"
keybind: Qt.Key_E
text: "Logout"
icon: "logout"
@@ -20,7 +20,7 @@ ShellRoot {
}
LogoutButton {
command: "systemctl suspend"
command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/suspend.sh"
keybind: Qt.Key_U
text: "Suspend"
icon: "suspend"
@@ -28,7 +28,7 @@ ShellRoot {
}
LogoutButton {
command: "systemctl hibernate"
command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/hibernate.sh"
keybind: Qt.Key_H
text: "Hibernate"
icon: "hibernate"
@@ -36,7 +36,7 @@ ShellRoot {
}
LogoutButton {
command: "systemctl poweroff"
command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/shutdown.sh"
keybind: Qt.Key_K
text: "Shutdown"
icon: "shutdown"
@@ -44,7 +44,7 @@ ShellRoot {
}
LogoutButton {
command: "systemctl reboot"
command: Quickshell.env("HOME") + "/.config/quickshell/modules/wlogout/scripts/reboot.sh"
keybind: Qt.Key_R
text: "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