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.
fmt: add treefmt to use multiple formatters
- Loading branch information
Showing
11 changed files
with
94 additions
and
122 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
```bash | ||
home-manager switch --flake . | ||
`````` | ||
``` | ||
|
||
2. Install type definitions. | ||
|
||
|
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 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,28 +1,28 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
pkgs, | ||
... | ||
}: | ||
with lib; let | ||
cfg = config.programs.ags; | ||
colors = config.lib.stylix.colors; | ||
colorNames = (map (n: "base${fixedWidthNumber 2 n}") (range 0 16)); | ||
colorNames = map (n: "base${fixedWidthNumber 2 n}") (range 0 16); | ||
in { | ||
config = mkIf cfg.enable { | ||
programs.ags = { | ||
configDir = ./.; | ||
}; | ||
xdg.configFile."ags".recursive = true; | ||
xdg.configFile."ags".recursive = true; | ||
|
||
xdg.configFile."ags/src/style/colors.css".text = | ||
concatMapStringsSep "\n" | ||
(color: "@define-color ${color} ${colors.withHashtag.${color}};") | ||
colorNames; | ||
colorNames; | ||
|
||
xdg.configFile."ags/src/assets/nixos-symbolic.svg".source = pkgs.fetchurl { | ||
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/35ebbbf01c3119005ed180726c388a01d4d1100c/logo/white.svg"; | ||
hash = "sha256-Ed2l6i2wi/YTcWCq23bspH/t3RYp6AodykpXF1Zgccw="; | ||
}; | ||
xdg.configFile."ags/src/assets/nixos-symbolic.svg".source = pkgs.fetchurl { | ||
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/35ebbbf01c3119005ed180726c388a01d4d1100c/logo/white.svg"; | ||
hash = "sha256-Ed2l6i2wi/YTcWCq23bspH/t3RYp6AodykpXF1Zgccw="; | ||
}; | ||
}; | ||
} |
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 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 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,22 +1,26 @@ | ||
export default (monitor = 0) => Widget.Window({ | ||
monitor, | ||
name: `bar-${monitor}`, | ||
anchor: ["top", "left", "right"], | ||
exclusivity: "exclusive", | ||
child: Widget.CenterBox({ | ||
startWidget: Widget.Box({ | ||
hexpand: true, | ||
hpack: "start", | ||
child: Widget.Icon("nixos-symbolic"), | ||
}), | ||
centerWidget: Widget.Box({ | ||
hpack: "center", | ||
child: Widget.Label().poll(1000, self => self.label = Utils.exec("date")), | ||
}), | ||
endWidget: Widget.Box({ | ||
hexpand: true, | ||
hpack: "end", | ||
child: Widget.Icon("nixos-symbolic"), | ||
}), | ||
}), | ||
}); | ||
export default (monitor = 0) => | ||
Widget.Window({ | ||
monitor, | ||
name: `bar-${monitor}`, | ||
anchor: ["top", "left", "right"], | ||
exclusivity: "exclusive", | ||
child: Widget.CenterBox({ | ||
startWidget: Widget.Box({ | ||
hexpand: true, | ||
hpack: "start", | ||
child: Widget.Icon("nixos-symbolic"), | ||
}), | ||
centerWidget: Widget.Box({ | ||
hpack: "center", | ||
child: Widget.Label().poll( | ||
1000, | ||
(self) => (self.label = Utils.exec("date")), | ||
), | ||
}), | ||
endWidget: Widget.Box({ | ||
hexpand: true, | ||
hpack: "end", | ||
child: Widget.Icon("nixos-symbolic"), | ||
}), | ||
}), | ||
}); |
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