nixos-configs/config/ags/js/powermenu.js

38 lines
742 B
JavaScript
Raw Normal View History

2023-08-27 10:31:41 -04:00
export const Powermenu = ags.Widget.Window({
name: 'powermenu',
popup: true,
layer: 'overlay',
child: ags.Widget.CenterBox({
className: 'powermenu',
vertical: false,
startWidget: ags.Widget.Button({
className: 'shutdown',
onPrimaryClickRelease: 'echo shutdown',
child: ags.Widget.Label({
label: '襤',
}),
}),
centerWidget: ags.Widget.Button({
className: 'reboot',
onPrimaryClickRelease: 'echo reboot',
child: ags.Widget.Label({
label: '勒',
}),
}),
endWidget: ags.Widget.Button({
className: 'logout',
onPrimaryClickRelease: 'echo logout',
child: ags.Widget.Label({
label: '',
}),
}),
}),
});