Added cliphist and changed starship config

This commit is contained in:
marc
2025-06-01 22:57:57 +02:00
parent 41d47f6152
commit d388d2192a
5 changed files with 202 additions and 5 deletions

View File

@@ -0,0 +1,36 @@
{ config, lib, pkgs, inputs, ... }:
with lib;
let
cfg = config.samfelag.modules.desktop.tools.cliphist;
hyprCfg = config.samfelag.modules.desktop.wm.hyprland;
rofiCfg = config.samfelag.modules.desktop.tools.rofi;
in
{
options.samfelag.modules.desktop.tools.cliphist = {
enable = mkEnableOption "Clipboard history";
};
config = mkIf cfg.enable {
# - Clipboard manager ------------------------
hm.services.cliphist = {
enable = true;
extraOptions = [
"-max-dedupe-search"
"10"
"-max-items"
"500"
];
};
# - Hyprland keybindings ---------------------
hm.wayland.windowManager.hyprland.settings = lib.mkIf (hyprCfg.enable && rofiCfg.enable) {
bind = [
# Clipboard manager
"${hyprCfg.mod}, v, exec, $HOME/.config/rofi/menus/cliphist/cliphist.sh"
];
};
};
}