From 244710e3a5f92ea178b9dc7fda403db683ff300d Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sat, 31 Aug 2024 14:09:07 +0200 Subject: [PATCH] runners: move fuzzel, remove rest --- modules/default.nix | 1 - .../fuzzel/{module.nix => default.nix} | 0 modules/programs/launchers/module.nix | 2 +- modules/runners/anyrun/anyrun.nix | 56 ----- modules/runners/anyrun/default.nix | 1 - modules/runners/anyrun/style.css | 69 ------ modules/runners/default.nix | 7 - modules/runners/fuzzel/module.nix | 20 -- modules/runners/rofi/default.nix | 32 --- modules/runners/rofi/default2.nix | 208 ------------------ 10 files changed, 1 insertion(+), 395 deletions(-) rename modules/programs/launchers/fuzzel/{module.nix => default.nix} (100%) delete mode 100644 modules/runners/anyrun/anyrun.nix delete mode 100644 modules/runners/anyrun/default.nix delete mode 100644 modules/runners/anyrun/style.css delete mode 100644 modules/runners/default.nix delete mode 100644 modules/runners/fuzzel/module.nix delete mode 100644 modules/runners/rofi/default.nix delete mode 100644 modules/runners/rofi/default2.nix diff --git a/modules/default.nix b/modules/default.nix index 7a52e37..bba432e 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -4,7 +4,6 @@ _: { ./other ./services ./wms - ./runners ./style ./options ./system diff --git a/modules/programs/launchers/fuzzel/module.nix b/modules/programs/launchers/fuzzel/default.nix similarity index 100% rename from modules/programs/launchers/fuzzel/module.nix rename to modules/programs/launchers/fuzzel/default.nix diff --git a/modules/programs/launchers/module.nix b/modules/programs/launchers/module.nix index 7b1d644..61fb298 100644 --- a/modules/programs/launchers/module.nix +++ b/modules/programs/launchers/module.nix @@ -1,3 +1,3 @@ _: { - imports = [./fuzzel/module.nix]; + imports = [./fuzzel]; } diff --git a/modules/runners/anyrun/anyrun.nix b/modules/runners/anyrun/anyrun.nix deleted file mode 100644 index de6dc46..0000000 --- a/modules/runners/anyrun/anyrun.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - config, - lib, - inputs, - inputs', - ... -}: let - inherit (config.modules.other.system) username; - cfg = config.modules.usrEnv.programs.launchers.anyrun; - inherit (lib) mkIf; -in { - config = mkIf cfg.enable { - home-manager.users.${username} = { - imports = [inputs.anyrun.homeManagerModules.default]; - - programs.anyrun = { - enable = true; - config = { - plugins = with inputs'.anyrun.packages; [ - applications - dictionary - shell - websearch - ]; - hideIcons = false; - ignoreExclusiveZones = false; - layer = "overlay"; - hidePluginInfo = true; - closeOnClick = true; - showResultsImmediately = true; - maxEntries = 10; - width.fraction = 0.3; - y.absolute = 15; - }; - extraCss = builtins.readFile ./style.css; - - extraConfigFiles = { - "applications.ron".text = '' - Config( - max_entries: 10, - terminal: Some("foot"), - desktop_actions: false - ) - ''; - - "websearch.ron".text = '' - Config( - prefix: "?", - engines: [DuckDuckGo] - ) - ''; - }; - }; - }; - }; -} diff --git a/modules/runners/anyrun/default.nix b/modules/runners/anyrun/default.nix deleted file mode 100644 index 34be47b..0000000 --- a/modules/runners/anyrun/default.nix +++ /dev/null @@ -1 +0,0 @@ -_: {imports = [./anyrun.nix];} diff --git a/modules/runners/anyrun/style.css b/modules/runners/anyrun/style.css deleted file mode 100644 index 5f6dae8..0000000 --- a/modules/runners/anyrun/style.css +++ /dev/null @@ -1,69 +0,0 @@ -* { - all: unset; - font-size: 1.3rem; - font-family: "ComicShannsMono Nerd Font" -} - -#window, -#match, -#entry, -#plugin, -#main { - background: transparent; -} - -#match.activatable { - border-radius: 16px; - padding: 0.3rem 0.9rem; - margin-top: 0.01rem; -} -#match.activatable:first-child { - margin-top: 0.7rem; -} -#match.activatable:last-child { - margin-bottom: 0.6rem; -} - -#plugin:hover #match.activatable { - border-radius: 10px; - padding: 0.3rem; - margin-top: 0.01rem; - margin-bottom: 0; -} - -#match:selected, -#match:hover, -#plugin:hover { - background: rgba(255, 255, 255, 0.1); -} - -#entry { - background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 16px; - margin: 0.5rem; - padding: 0.3rem 1rem; -} - -list > #plugin { - border-radius: 16px; - margin: 0 0.3rem; -} -list > #plugin:first-child { - margin-top: 0.3rem; -} -list > #plugin:last-child { - margin-bottom: 0.3rem; -} -list > #plugin:hover { - padding: 0.6rem; -} - -box#main { - background: rgba(0, 0, 0, 0.5); - box-shadow: - inset 0 0 0 1px rgba(255, 255, 255, 0.1), - 0 0 0 1px rgba(0, 0, 0, 0.5); - border-radius: 24px; - padding: 0.3rem; -} diff --git a/modules/runners/default.nix b/modules/runners/default.nix deleted file mode 100644 index 2b38379..0000000 --- a/modules/runners/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -_: { - imports = [ - ./rofi - ./anyrun - # ./fuzzel/module.nix - ]; -} diff --git a/modules/runners/fuzzel/module.nix b/modules/runners/fuzzel/module.nix deleted file mode 100644 index 839271e..0000000 --- a/modules/runners/fuzzel/module.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: let - inherit (lib) mkIf; - inherit (config.modules.other.system) username; - cfg = config.modules.usrEnv.programs.launchers.fuzzel; -in { - config = { - home-manager.users.${username}.programs.fuzzel = mkIf cfg.enable { - # enable schizo dnklware! - enable = true; - package = pkgs.fuzzel; - settings = { - }; - }; - }; -} diff --git a/modules/runners/rofi/default.nix b/modules/runners/rofi/default.nix deleted file mode 100644 index 120b8a5..0000000 --- a/modules/runners/rofi/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: let - inherit (config.modules.other.system) username; - cfg = config.modules.usrEnv.programs.launchers.rofi; - inherit (lib) mkIf; -in { - config = mkIf cfg.enable { - home-manager.users.${username} = { - programs.rofi = { - enable = true; - package = pkgs.rofi-wayland; - location = "center"; - extraConfig = { - modi = "drun,filebrowser"; - drun-display-format = " {name} "; - sidebar-mode = true; - matching = "prefix"; - scoll-method = 0; - disable_history = false; - show-icons = true; - display-drun = " Run"; - display-run = " Run"; - display-filebrowser = " Files"; - }; - }; - }; - }; -} diff --git a/modules/runners/rofi/default2.nix b/modules/runners/rofi/default2.nix deleted file mode 100644 index f2c9746..0000000 --- a/modules/runners/rofi/default2.nix +++ /dev/null @@ -1,208 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: let - inherit (lib) mkIf optionals; - inherit (config.modules.other.system) username; - cfg = config.modules.programs.rofi; - - rofiPackage = with pkgs; rofi-wayland; -in { - config = mkIf env.programs.launchers.rofi.enable { - programs.rofi = { - enable = true; - package = rofiPackage.override { - plugins = [ - pkgs.rofi-rbw - ]; - }; - font = "Iosevka Nerd Font 14"; - extraConfig = { - modi = "drun,filebrowser,calc,emoji"; - drun-display-format = " {name} "; - sidebar-mode = true; - matching = "prefix"; - scroll-method = 0; - disable-history = false; - show-icons = true; - - display-drun = " Run"; - display-run = " Run"; - display-filebrowser = " Files"; - display-calc = "󰃬 Calculator"; - display-emoji = "💀 Emoji"; - }; - - theme = let - inherit (osConfig.modules.style.colorScheme) colors; - inherit (config.lib.formats.rasi) mkLiteral; - in { - "*" = { - background = mkLiteral "#${colors.base02}"; - background-alt = mkLiteral "#${colors.base02}"; - foreground = mkLiteral "#${colors.base05}"; - selected = mkLiteral "#${colors.base00}"; - active = mkLiteral "#${colors.base0D}"; - urgent = mkLiteral "#${colors.base00}"; - }; - "window" = { - transparency = "real"; - location = mkLiteral "center"; - anchor = mkLiteral "center"; - fullscreen = mkLiteral "false"; - width = mkLiteral "600px"; - x-offset = mkLiteral "0px"; - y-offset = mkLiteral "0px"; - enabled = mkLiteral "true"; - border-radius = mkLiteral "20px"; - border = mkLiteral "4px"; - border-color = mkLiteral "#${colors.base02}"; - cursor = "default"; - background-color = mkLiteral "@background"; - }; - "mainbox" = { - enabled = true; - spacing = mkLiteral "0px"; - background-color = mkLiteral "transparent"; - orientation = mkLiteral "vertical"; - children = mkLiteral "[inputbar,listbox]"; - }; - "listbox" = { - spacing = mkLiteral "10px"; - padding = mkLiteral "10px 10px 10px 15px"; - background-color = mkLiteral "transparent"; - orientation = mkLiteral "vertical"; - children = mkLiteral "[message,listview]"; - }; - "inputbar" = { - enabled = true; - spacing = mkLiteral "10px"; - padding = mkLiteral "30px 20px 30px 20px"; - background-color = mkLiteral "@selected"; - text-color = mkLiteral "@foreground"; - orientation = mkLiteral "horizontal"; - children = mkLiteral "[prompt,entry]"; - }; - "entry" = { - enabled = true; - expand = true; - width = mkLiteral "300px"; - padding = mkLiteral "12px 15px"; - border-radius = mkLiteral "15px"; - background-color = mkLiteral "@background-alt"; - text-color = mkLiteral "inherit"; - cursor = mkLiteral "text"; - placeholder = "Search"; - placeholder-color = mkLiteral "inherit"; - }; - "prompt" = { - width = mkLiteral "64px"; - font = "Iosevka Nerd Font 13"; - padding = mkLiteral "10px 20px 10px 20px"; - border-radius = mkLiteral "15px"; - background-color = mkLiteral "@background-alt"; - text-color = mkLiteral "inherit"; - cursor = mkLiteral "pointer"; - }; - "mode-switcher" = { - enabled = true; - spacing = mkLiteral "10px"; - background-color = mkLiteral "transparent"; - text-color = mkLiteral "@foreground"; - }; - "button" = { - width = mkLiteral "48px"; - font = "Iosevka Nerd Font 14"; - padding = mkLiteral "8px 5px 8px 8px"; - border-radius = mkLiteral "15px"; - background-color = mkLiteral "@background-alt"; - text-color = mkLiteral "inherit"; - cursor = mkLiteral "pointer"; - }; - "button selected" = { - background-color = mkLiteral "@selected"; - text-color = mkLiteral "@foreground"; - }; - "listview" = { - enabled = true; - columns = 2; - lines = 7; - cycle = true; - dynamic = true; - srollbar = false; - layout = mkLiteral "vertical"; - reverse = false; - fixed-height = true; - fixed-columns = false; - spacing = mkLiteral "5px"; - background-color = mkLiteral "transparent"; - text-color = mkLiteral "@foreground"; - cursor = mkLiteral "default"; - }; - "element" = { - enabled = true; - spacing = mkLiteral "15px"; - padding = mkLiteral "7px"; - border-radius = mkLiteral "100%"; - background-color = mkLiteral "transparent"; - text-color = mkLiteral "@foreground"; - cursor = mkLiteral "pointer"; - }; - "element normal.normal" = { - background-color = mkLiteral "inherit"; - text-color = mkLiteral "inherit"; - }; - "element normal.urgent" = { - background-color = mkLiteral "@urgent"; - text-color = mkLiteral "@foreground"; - }; - "element normal.active" = { - background-color = mkLiteral "@background"; - text-color = mkLiteral "@active"; - }; - "element selected.normal" = { - background-color = mkLiteral "@selected"; - text-color = mkLiteral "@foreground"; - }; - "element selected.urgent" = { - background-color = mkLiteral "@urgent"; - text-color = mkLiteral "@foreground"; - }; - "element selected.active" = { - background-color = mkLiteral "@urgent"; - text-color = mkLiteral "@active"; - }; - "element-icon" = { - background-color = mkLiteral "transparent"; - text-color = mkLiteral "inherit"; - size = mkLiteral "32px"; - cursor = mkLiteral "inherit"; - }; - "element-text" = { - background-color = mkLiteral "transparent"; - text-color = mkLiteral "inherit"; - cursor = mkLiteral "inherit"; - vertical-align = mkLiteral "0.5"; - horizontal-align = mkLiteral "0.0"; - }; - "message" = {background-color = mkLiteral "transparent";}; - "textbox" = { - padding = mkLiteral "12px"; - border-radius = mkLiteral "100%"; - background-color = mkLiteral "@background-alt"; - text-color = mkLiteral "@foreground"; - vertical-align = mkLiteral "0.5"; - horizontal-align = mkLiteral "0.0"; - }; - "error-message" = { - padding = mkLiteral "12px"; - border-radius = mkLiteral "20px"; - background-color = mkLiteral "@background"; - text-color = mkLiteral "@foreground"; - }; - }; - }; - }; -}