mirror of
https://github.com/danth/stylix
synced 2025-02-16 13:28:35 +00:00
Add a rofi module (#37)
Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
This commit is contained in:
parent
9a5216869a
commit
47412549b0
1 changed files with 25 additions and 0 deletions
25
modules/rofi/hm.nix
Normal file
25
modules/rofi/hm.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
with config.stylix.fonts;
|
||||
|
||||
let
|
||||
themeFile = config.lib.stylix.colors {
|
||||
templateRepo = pkgs.fetchFromGitHub {
|
||||
owner = "tinted-theming";
|
||||
repo = "base16-rofi";
|
||||
rev = "3f64a9f8d8cb7db796557b516682b255172c4ab4";
|
||||
sha256 = "sha256-RZpjCQ8KGO3cv9A/lNNoTE+WJ9sNk5sz0zJq02zzxA8=";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options.stylix.targets.rofi.enable =
|
||||
config.lib.stylix.mkEnableTarget "Rofi" true;
|
||||
|
||||
config = lib.mkIf config.stylix.targets.rofi.enable {
|
||||
programs.rofi = {
|
||||
font = monospace.name;
|
||||
theme = themeFile;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue