This commit is contained in:
wt committed 2025-03-11 12:55:13 +07:00
1 parent ceda1adee3
commit eaf3fed5c7
7 files changed
+73 -48

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import { Astal, App } from "astal/gtk3";
export default function PowerMenu() {
const { TOP, RIGHT } = Astal.WindowAnchor
const powermenulist = [
{action: "/home/tola/.config/ags/scripts/powermenu lock", label: ""},
{action: "/home/tola/.config/ags/scripts/powermenu suspend", label: ""},
{action: "/home/tola/.config/ags/scripts/powermenu logout", label: ""},
{action: "/home/tola/.config/ags/scripts/powermenu reboot", label: ""},
{action: "/home/tola/.config/ags/scripts/powermenu poweroff", label: ""}
]
return <window
anchor={TOP | RIGHT}
name="powermenu"
className="Powermenu"
application={App}
visible={false}
>
<box>
{powermenulist.map(data => (
<button onClicked={data.action}>{data.label}</button>
))}
</box>
</window>
}