made the wlogout buttons into scripts
This commit is contained in:
@@ -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"
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
systemctl hibernate
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
hyprlock
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
systemctl loginctl terminate-user $USER
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
systemctl reboot
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
systemctl poweroff
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
systemctl suspend
|
||||
Reference in New Issue
Block a user