From 8a55c6506d193a061c9d8bfe5e35931da7ac5e2e Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 6 Mar 2024 15:44:25 -0500 Subject: [PATCH] refactor(ags): move from sassc to dart-sass --- modules/ags/README.md | 2 +- modules/ags/config/js/utils.js | 2 +- modules/ags/default.nix | 2 +- modules/greetd/ags.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ags/README.md b/modules/ags/README.md index 64d756ec..0825f50e 100644 --- a/modules/ags/README.md +++ b/modules/ags/README.md @@ -30,7 +30,7 @@ as your `config.js` after copying the contents of `./config` to The main dependencies to try it are as follows: - **bun** to transpile TS to JS -- **sassc** to compile SCSS to CSS +- **dart-sass** to compile SCSS to CSS - **[coloryou](https://git.nelim.org/matt1432/nixos-configs/src/branch/master/common/pkgs/coloryou)** for media player colors - **playerctl** for media player functionality diff --git a/modules/ags/config/js/utils.js b/modules/ags/config/js/utils.js index b4a76080..83582379 100644 --- a/modules/ags/config/js/utils.js +++ b/modules/ags/config/js/utils.js @@ -7,7 +7,7 @@ const watchAndCompileSass = (host) => { const scss = `${App.configDir}/scss/${host}.scss`; const css = `/tmp/ags-${host}/style.css`; - execAsync(`sassc ${scss} ${css}`).then(() => { + execAsync(`sass ${scss} ${css}`).then(() => { App.resetCss(); App.applyCss(css); }).catch(print); diff --git a/modules/ags/default.nix b/modules/ags/default.nix index 2da27520..2604012c 100644 --- a/modules/ags/default.nix +++ b/modules/ags/default.nix @@ -63,7 +63,7 @@ in { [config.customPkgs.coloryou] ++ (with pkgs; [ # ags - sassc + dart-sass bun playerctl diff --git a/modules/greetd/ags.nix b/modules/greetd/ags.nix index 18545826..a12a1814 100644 --- a/modules/greetd/ags.nix +++ b/modules/greetd/ags.nix @@ -26,7 +26,7 @@ in { packages = [ hyprland pkgs.bun - pkgs.sassc + pkgs.dart-sass pkgs.swww pkgs.gtk3 pkgs.glib