diff --git a/modules/wlogout/Wlogout.qml b/modules/wlogout/Wlogout.qml index 2f6844b..21c4f08 100644 --- a/modules/wlogout/Wlogout.qml +++ b/modules/wlogout/Wlogout.qml @@ -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" diff --git a/modules/wlogout/scripts/hibernate.sh b/modules/wlogout/scripts/hibernate.sh new file mode 100755 index 0000000..8f164d2 --- /dev/null +++ b/modules/wlogout/scripts/hibernate.sh @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl hibernate \ No newline at end of file diff --git a/modules/wlogout/scripts/lock.sh b/modules/wlogout/scripts/lock.sh new file mode 100755 index 0000000..c9d5db9 --- /dev/null +++ b/modules/wlogout/scripts/lock.sh @@ -0,0 +1,2 @@ +#!/bin/bash +hyprlock \ No newline at end of file diff --git a/modules/wlogout/scripts/logout.sh b/modules/wlogout/scripts/logout.sh new file mode 100755 index 0000000..415b766 --- /dev/null +++ b/modules/wlogout/scripts/logout.sh @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl loginctl terminate-user $USER \ No newline at end of file diff --git a/modules/wlogout/scripts/reboot.sh b/modules/wlogout/scripts/reboot.sh new file mode 100755 index 0000000..1b7078c --- /dev/null +++ b/modules/wlogout/scripts/reboot.sh @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl reboot \ No newline at end of file diff --git a/modules/wlogout/scripts/shutdown.sh b/modules/wlogout/scripts/shutdown.sh new file mode 100755 index 0000000..422a4c6 --- /dev/null +++ b/modules/wlogout/scripts/shutdown.sh @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl poweroff \ No newline at end of file diff --git a/modules/wlogout/scripts/suspend.sh b/modules/wlogout/scripts/suspend.sh new file mode 100755 index 0000000..c2cb29c --- /dev/null +++ b/modules/wlogout/scripts/suspend.sh @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl suspend \ No newline at end of file