forked from danth/stylix
-
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.
Merge pull request #1 from danth/master
:3
- Loading branch information
Showing
23 changed files
with
271 additions
and
125 deletions.
There are no files selected for viewing
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
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,17 +1,14 @@ | ||
{ pkgs, config, lib, ... }: | ||
|
||
let | ||
themeFile = config.lib.stylix.colors { | ||
template = ./base16-stylix.mustache; | ||
extension = ".tmTheme"; | ||
}; | ||
in | ||
{ | ||
options.stylix.targets.bat.enable = | ||
config.lib.stylix.mkEnableTarget "Bat" config.programs.bat.enable; | ||
|
||
config = lib.mkIf config.stylix.targets.bat.enable { | ||
programs.bat.themes."base16-stylix" = builtins.readFile themeFile; | ||
programs.bat.themes."base16-stylix".src = config.lib.stylix.colors { | ||
template = ./base16-stylix.mustache; | ||
extension = ".tmTheme"; | ||
}; | ||
home.sessionVariables.BAT_THEME = "base16-stylix"; | ||
}; | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ config, lib, ... }: | ||
|
||
with config.lib.stylix.colors; | ||
|
||
let | ||
rgb = color: "rgb(${color})"; | ||
rgba = color: alpha: "rgba(${color}${alpha})"; | ||
|
||
settings = { | ||
decoration."col.shadow" = rgba base00 "99"; | ||
general = { | ||
"col.active_border" = rgb base0A; | ||
"col.inactive_border" = rgb base03; | ||
"col.group_border" = rgb base0D; | ||
"col.group_border_active" = rgb base06; | ||
"col.group_border_locked_active" = rgb base06; | ||
}; | ||
misc.background_color = rgb base00; | ||
}; | ||
|
||
in { | ||
options.stylix.targets.hyprland.enable = | ||
config.lib.stylix.mkEnableTarget "Hyprland" true; | ||
|
||
config.wayland.windowManager.hyprland.settings = | ||
lib.mkIf config.stylix.targets.hyprland.enable settings; | ||
} |
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
Oops, something went wrong.