treewide: prune more old xorg configs, and rename wayland modules
This commit is contained in:
parent
46c30b9d5d
commit
2e74aa5f00
15 changed files with 10 additions and 318 deletions
23
modules/user/rofi.nix
Normal file
23
modules/user/rofi.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
theme = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "rofi-theme";
|
||||
version = "1.0.0";
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
cp ${../../res/theme.rasi} $out
|
||||
substituteInPlace $out \
|
||||
--replace-fail "CAT_BACKGROUND" "${config.catppuccin.hexcolors.crust}" \
|
||||
--replace-fail "CAT_TEXT" "${config.catppuccin.hexcolors.text}" \
|
||||
--replace-fail "CAT_ACCENT" "${config.catppuccin.hexcolors.${config.catppuccin.accent}}" \
|
||||
--replace-fail "CAT_PLACEHOLDER" "${config.catppuccin.hexcolors.overlay1}"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
theme = "theme";
|
||||
};
|
||||
xdg.configFile."rofi/theme.rasi".source = theme;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue