[AGS] Setup
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| import { App } from "astal/gtk4" | ||||
| import style from "./style.scss" | ||||
| import Bar from "./widget/Bar" | ||||
| import Bar from "./ui/Bar" | ||||
|  | ||||
| App.start({ | ||||
|     css: style, | ||||
|   | ||||
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/DateTime.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/DateTime.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/HyprlandActiveWindow.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/HyprlandActiveWindow.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/HyprlandWorkspace.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/HyprlandWorkspace.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/QuickActions.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/QuickActions.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/SystemResources.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/SystemResources.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/SystemTray.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/SystemTray.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/bar/ui/widgets/resources.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/bar/ui/widgets/resources.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -1,6 +1,6 @@ | ||||
| import { App } from "astal/gtk4" | ||||
| import style from "./style.scss" | ||||
| import Bar from "./widget/Bar" | ||||
| import Bar from "./ui/Launcher" | ||||
|  | ||||
| App.start({ | ||||
|     css: style, | ||||
|   | ||||
							
								
								
									
										0
									
								
								config/ags/quickactions/ui/QuickActions.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/quickactions/ui/QuickActions.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/quickactions/ui/widgets/ContextMenu.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/quickactions/ui/widgets/ContextMenu.tsx
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/ags/quickactions/ui/widgets/toggle.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/ags/quickactions/ui/widgets/toggle.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -1,36 +0,0 @@ | ||||
| import { App, Astal, Gtk, Gdk } from "astal/gtk4" | ||||
| import { Variable } from "astal" | ||||
|  | ||||
| const time = Variable("").poll(1000, "date") | ||||
|  | ||||
| export default function Bar(gdkmonitor: Gdk.Monitor) { | ||||
|     const { TOP, LEFT, RIGHT } = Astal.WindowAnchor | ||||
|  | ||||
|     return <window | ||||
|         visible | ||||
|         cssClasses={["Bar"]} | ||||
|         gdkmonitor={gdkmonitor} | ||||
|         exclusivity={Astal.Exclusivity.EXCLUSIVE} | ||||
|         anchor={TOP | LEFT | RIGHT} | ||||
|         application={App}> | ||||
|         <centerbox cssName="centerbox"> | ||||
|             <button | ||||
|                 onClicked="echo hello" | ||||
|                 hexpand | ||||
|                 halign={Gtk.Align.CENTER} | ||||
|             > | ||||
|                 Welcome to AGS! | ||||
|             </button> | ||||
|             <box /> | ||||
|             <menubutton | ||||
|                 hexpand | ||||
|                 halign={Gtk.Align.CENTER} | ||||
|             > | ||||
|                 <label label={time()} /> | ||||
|                 <popover> | ||||
|                     <Gtk.Calendar /> | ||||
|                 </popover> | ||||
|             </menubutton> | ||||
|         </centerbox> | ||||
|     </window> | ||||
| } | ||||
		Reference in New Issue
	
	Block a user