From 2e4c4298cf84f94d68387e8076fd430e9968ce6c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 27 Jun 2025 16:39:14 -0400 Subject: refactor --- modules/desktop/wofi/default.nix | 29 ---------------- modules/desktop/wofi/style.nix | 73 ---------------------------------------- 2 files changed, 102 deletions(-) delete mode 100644 modules/desktop/wofi/default.nix delete mode 100644 modules/desktop/wofi/style.nix (limited to 'modules/desktop/wofi') diff --git a/modules/desktop/wofi/default.nix b/modules/desktop/wofi/default.nix deleted file mode 100644 index aa04495..0000000 --- a/modules/desktop/wofi/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - config, - lib, - ... -}: let - inherit (lib) mkIf; - cfg = config.desktop; -in { - config = mkIf cfg.wofi { - default.appLauncher = lib.mkDefault "wofi --show drun --prompt 'Seach Programs'"; - - home-manager.users.${config.user} = { - programs.wofi = { - enable = true; - - settings = { - key_expand = "Tab"; - term = "kitty"; - matching = "multi-contains"; - insensitive = true; - gtk_dark = true; - hide_scroll = true; - }; - - style = import ./style.nix {theme = config.theme;}; - }; - }; - }; -} diff --git a/modules/desktop/wofi/style.nix b/modules/desktop/wofi/style.nix deleted file mode 100644 index 75a0a21..0000000 --- a/modules/desktop/wofi/style.nix +++ /dev/null @@ -1,73 +0,0 @@ -{theme}: let - text = "#${theme.colors.text}"; - base = "#${theme.colors.base}"; - surface = "#${theme.colors.surface}"; - primary = "#${theme.colors.primary}"; - fontSize = "${toString theme.font.size}px"; - outerGap = "${toString theme.outerGap}px"; - innerGap = "${toString theme.innerGap}px"; - outerRadius = "${toString theme.outerRadius}px"; - innerRadius = "${toString theme.innerRadius}px"; - borderWidth = "${toString theme.borderWidth}px"; -in '' - * { - font-family: ${theme.font.monospace}; - font-size: ${fontSize}; - } - - /* Window */ - window { - margin: 0px; - border: ${borderWidth} solid ${primary}; - border-radius: ${outerRadius}; - background-color: ${base}; - } - - /* Outer Box */ - #outer-box { - padding: ${outerGap}; - } - - /* Scroll */ - #scroll { - margin: 0px; - padding: ${innerGap}; - border: none; - } - - /* Input */ - #input { - margin: ${innerGap}; - padding: ${innerGap}; - border: none; - color: ${text}; - background-color: ${surface}; - border-radius: ${outerRadius}; - } - - #input:focus, - #input:active { - border: ${borderWidth} solid ${primary}; - box-shadow: none; - outline: none; - } - - /* Text */ - #text { - margin: ${innerGap}; - padding: ${innerGap}; - border: none; - color: ${text}; - } - - /* Selected Entry */ - #entry:selected { - background-color: ${primary}; - border-radius: ${outerRadius}; - } - - #entry:selected #text { - color: ${base}; - } - -'' -- cgit v1.2.3-freya