mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-19 04:21:55 +00:00
- Add complete colorshell v2.0.3 configuration to home/ags-config/ - Disable runner plugin and NightLight tile (incompatible with NixOS) - Customize SCSS with full opacity (no transparency) - Add dark pale blue color scheme in home/pywal-colors/ - Configure Papirus-Dark icon theme via home-manager - Make ~/.config/ags/ immutable and managed by Nix store - Auto-deploy pywal colors to ~/.cache/wal/colors.json All AGS configuration is now reproducible and version controlled.
17 lines
631 B
TypeScript
17 lines
631 B
TypeScript
import { Gtk } from "ags/gtk4";
|
|
import { Windows } from "../../../windows";
|
|
import { createBinding } from "ags";
|
|
import { time } from "../../../modules/utils";
|
|
import { generalConfig } from "../../../config";
|
|
|
|
|
|
export const Clock = () =>
|
|
<Gtk.Button class={createBinding(Windows.getDefault(), "openWindows").as((wins) =>
|
|
`clock ${wins.includes("center-window") ? "open" : ""}`)}
|
|
onClicked={() => Windows.getDefault().toggle("center-window")}
|
|
label={time((dt) => dt.format(
|
|
generalConfig.getProperty("clock.date_format", "string"))
|
|
?? "An error occurred"
|
|
)}
|
|
/>;
|