Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 1 | { config, lib, ... }: |
| 2 | { |
| 3 | options.chimera = { |
Skyler Grey | cf116d5 | 2024-02-15 19:51:31 +0000 | [diff] [blame] | 4 | theme.wallpaper = lib.mkOption { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 5 | type = lib.types.path; |
| 6 | description = "Wallpaper of your choosing"; |
| 7 | }; |
| 8 | hyprland.hyprpaper.splash = { |
| 9 | enable = lib.mkEnableOption "Enable the hyprland splash text"; |
| 10 | offset = lib.mkOption { |
| 11 | type = lib.types.float; |
| 12 | description = "Set the splash offset"; |
| 13 | default = 2.0; |
| 14 | }; |
| 15 | }; |
| 16 | }; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 17 | |
Skyler Grey | fa5455c | 2024-03-01 21:16:22 +0000 | [diff] [blame] | 18 | config.xdg.configFile = lib.mkIf config.chimera.hyprland.enable { |
| 19 | "hypr/hyprpaper.conf".source = ( |
| 20 | builtins.toFile "hyprpaper.conf" '' |
| 21 | preload = ${config.chimera.theme.wallpaper} |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 22 | |
Skyler Grey | fa5455c | 2024-03-01 21:16:22 +0000 | [diff] [blame] | 23 | wallpaper=,${config.chimera.theme.wallpaper} |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 24 | |
PineaFan | 2f02bca | 2024-04-20 21:21:44 +0100 | [diff] [blame] | 25 | splash = ${if config.chimera.hyprland.hyprpaper.splash.enable then "true" else "false"} |
Skyler Grey | fa5455c | 2024-03-01 21:16:22 +0000 | [diff] [blame] | 26 | splash_offset = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.offset} |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 27 | |
Skyler Grey | fa5455c | 2024-03-01 21:16:22 +0000 | [diff] [blame] | 28 | ipc = off |
| 29 | '' |
| 30 | ); |
| 31 | }; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 32 | } |