feat(hyprcapture): include XDG user dir configuration to hyprcapture module
This commit is contained in:
parent
00ee96f2df
commit
0f405d3ca9
4 changed files with 50 additions and 0 deletions
|
|
@ -3,11 +3,15 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./obsidian
|
./obsidian
|
||||||
|
./zathura
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.productivity = {
|
options.homeModules.desktop.productivity = {
|
||||||
obsidian = {
|
obsidian = {
|
||||||
enable = lib.mkEnableOption "enable obsidian home module";
|
enable = lib.mkEnableOption "enable obsidian home module";
|
||||||
};
|
};
|
||||||
|
zathura = {
|
||||||
|
enable = lib.mkEnableOption "enable zathura home module";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
39
home/modules/desktop/productivity/zathura/default.nix
Normal file
39
home/modules/desktop/productivity/zathura/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.desktop.productivity.zathura;
|
||||||
|
inherit (config.colorscheme) colors;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.zathura = {
|
||||||
|
enable = true;
|
||||||
|
options = {
|
||||||
|
font = "${config.fontProfiles.regular.famliy} 14";
|
||||||
|
recolor = true;
|
||||||
|
selection-clipboard = "clipboard";
|
||||||
|
default-bg = "#${colors.base00}";
|
||||||
|
default-fg = "#${colors.base01}";
|
||||||
|
statusbar-bg = "#${colors.base02}";
|
||||||
|
statusbar-fg = "#${colors.base04}";
|
||||||
|
inputbar-bg = "#${colors.base00}";
|
||||||
|
inputbar-fg = "#${colors.base07}";
|
||||||
|
notification-bg = "#${colors.base00}";
|
||||||
|
notification-fg = "#${colors.base07}";
|
||||||
|
notification-error-bg = "#${colors.base00}";
|
||||||
|
notification-error-fg = "#${colors.base08}";
|
||||||
|
notification-warning-bg = "#${colors.base00}";
|
||||||
|
notification-warning-fg = "#${colors.base08}";
|
||||||
|
highlight-color = "#${colors.base0A}";
|
||||||
|
highlight-active-color = "#${colors.base0D}";
|
||||||
|
completion-bg = "#${colors.base01}";
|
||||||
|
completion-fg = "#${colors.base05}";
|
||||||
|
completions-highlight-bg = "#${colors.base0D}";
|
||||||
|
completions-highlight-fg = "#${colors.base07}";
|
||||||
|
recolor-lightcolor = "#${colors.base00}";
|
||||||
|
recolor-darkcolor = "#${colors.base06}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -14,6 +14,12 @@ in
|
||||||
ooks-scripts.packages.${pkgs.system}.hyprrecord
|
ooks-scripts.packages.${pkgs.system}.hyprrecord
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Add XDG user directories that the scripts use
|
||||||
|
xdg.userDirs.extraConfig = {
|
||||||
|
XDG_RECORDINGS_DIR = "${config.xdg.userDirs.videos}/Recordings";
|
||||||
|
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [
|
wayland.windowManager.hyprland.settings.bind = [
|
||||||
# Screenshot binds
|
# Screenshot binds
|
||||||
", Print, exec, grimblast --notify --cursor copysave area"
|
", Print, exec, grimblast --notify --cursor copysave area"
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ in
|
||||||
homeModules.desktop = {
|
homeModules.desktop = {
|
||||||
productivity = {
|
productivity = {
|
||||||
obsidian.enable = true;
|
obsidian.enable = true;
|
||||||
|
zathura.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue