mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-05 23:32:48 +00:00
feat: update ags
This commit is contained in:
11
home/desktops/hyprland/ags/js/bar/buttons/DateButton.js
Normal file
11
home/desktops/hyprland/ags/js/bar/buttons/DateButton.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import App from "resource:///com/github/Aylur/ags/app.js";
|
||||
import Clock from "../../misc/Clock.js";
|
||||
import PanelButton from "../PanelButton.js";
|
||||
|
||||
export default ({ format = "%H:%M - %A %e." } = {}) =>
|
||||
PanelButton({
|
||||
class_name: "dashboard panel-button",
|
||||
on_clicked: () => App.toggleWindow("dashboard"),
|
||||
window: "dashboard",
|
||||
content: Clock({ format }),
|
||||
});
|
||||
Reference in New Issue
Block a user