This commit is contained in:
Nico
2024-10-31 10:33:46 +01:00
commit ad6d893cb0
237 changed files with 19793 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
const time = Variable('', {
poll: [1000, function() {
return Date().toString()
}],
})
const Bar = (/** @type {number} */ monitor) => Widget.Window({
monitor,
name: `bar${monitor}`,
anchor: ['top', 'left', 'right'],
exclusivity: 'exclusive',
child: Widget.CenterBox({
start_widget: Widget.Label({
hpack: 'center',
label: 'Welcome to AGS!',
}),
end_widget: Widget.Label({
hpack: 'center',
label: time.bind(),
}),
}),
})
App.config({
windows: [Bar(0)],
})

View File

@@ -0,0 +1,21 @@
{ inputs, pkgs, lib, config, ... }:
{
imports = [ inputs.ags.homeManagerModules.default ];
programs.ags = {
enable = true;
extraPackages = with pkgs; [
gtksourceview
webkitgtk
accountsservice
];
};
home.file =
lib.mkMerge [
{
".config/ags/config.js".source = ./config.js;
}
];
}

View File

@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"lib": [
"ES2022"
],
"allowJs": true,
"checkJs": true,
"strict": true,
"noImplicitAny": false,
"baseUrl": ".",
"typeRoots": [
"./types"
],
"skipLibCheck": true
}
}

View File

@@ -0,0 +1 @@
/home/nico/.local/share/com.github.Aylur.ags/types