generated from brckd/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
node_modules/ | ||
types | ||
|
||
dist/ | ||
config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# AgsDots | ||
|
||
## Contributing | ||
## Getting Started | ||
|
||
1. Install AGS and Bun. | ||
### Installing AGS and Bun | ||
|
||
```bash | ||
home-manager switch --flake . | ||
``` | ||
|
||
2. Install type definitions. | ||
### Installing type definitions | ||
|
||
```bash | ||
bun install | ||
``` | ||
|
||
### Building | ||
|
||
```bash | ||
bun run build | ||
``` | ||
|
||
## Acknowledgements | ||
|
||
This project was created using `bun init` in bun v1.0.33. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Bar from "./widget/Bar"; | ||
|
||
App.addIcons(`${App.configDir}/assets`); | ||
App.config({ | ||
windows: [Bar(0)], | ||
style: `${App.configDir}/style/main.css`, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
nixos-symbolic, | ||
... | ||
}: | ||
with lib; let | ||
cfg = config.programs.ags; | ||
colors = config.lib.stylix.colors; | ||
colorNames = map (n: "base${fixedWidthNumber 2 n}") (range 0 16); | ||
in { | ||
config = mkIf cfg.enable { | ||
programs.ags = { | ||
configDir = ./.; | ||
}; | ||
xdg.configFile."ags".recursive = true; | ||
configDir = pkgs.stdenv.mkDerivation { | ||
name = "ags-dots"; | ||
src = ./.; | ||
|
||
nativeBuildInputs = with pkgs; [bun]; | ||
buildPhase = '' | ||
# Copy assets | ||
cp ${nixos-symbolic} ./assets/nixos-symbolic.svg | ||
xdg.configFile."ags/src/style/colors.css".text = | ||
concatMapStringsSep "\n" | ||
(color: "@define-color ${color} ${colors.withHashtag.${color}};") | ||
colorNames; | ||
# Build bun files | ||
bun install | ||
bun run build | ||
''; | ||
|
||
xdg.configFile."ags/src/assets/nixos-symbolic.svg".source = nixos-symbolic; | ||
installPhase = '' | ||
mkdir -p $out | ||
cp -r assets style config.js $out | ||
''; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.