From f5fe583f2d88123010b402c88939ee1e53995062 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 25 Jun 2023 18:29:27 -0700 Subject: [PATCH] Add wofi --- modules/user/default.nix | 4 ++-- modules/user/general.nix | 4 ++++ modules/user/modules/wofi/default.nix | 20 ++++++++++++++++++ modules/user/modules/wofi/style.css | 30 +++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 modules/user/modules/wofi/default.nix create mode 100644 modules/user/modules/wofi/style.css diff --git a/modules/user/default.nix b/modules/user/default.nix index 6461df8..8d83591 100644 --- a/modules/user/default.nix +++ b/modules/user/default.nix @@ -1,4 +1,4 @@ -{ system, inputs, config, lib, pkgs, ... }: let +{ system, inputs, config, lib, pkgs, impurity, ... }: let username = "admin"; homeDirectory = "/home/${username}"; in { @@ -59,7 +59,7 @@ in { home-manager = { extraSpecialArgs = { - inherit system inputs; + inherit system inputs impurity; }; # use system nixpkgs instead of home-manager nixpkgs diff --git a/modules/user/general.nix b/modules/user/general.nix index ef8a544..dce2834 100644 --- a/modules/user/general.nix +++ b/modules/user/general.nix @@ -2,6 +2,10 @@ home-manager.users.${config.main-user} = homeInputs: let homeConfig = homeInputs.config; in { + imports = [ + ./modules/wofi + ]; + home.packages = with pkgs; [ ark kwrite diff --git a/modules/user/modules/wofi/default.nix b/modules/user/modules/wofi/default.nix new file mode 100644 index 0000000..f72f62b --- /dev/null +++ b/modules/user/modules/wofi/default.nix @@ -0,0 +1,20 @@ +{ pkgs, impurity, ... }: { + programs.wofi = { + enable = true; + + settings = { + mode = "drun"; + style = "${impurity.link ./style.css}"; + term = "alacritty"; + prompt = ""; + + insensitive = true; + allowImages = true; + hideScroll = true; + noActions = true; + + width = 500; + height = 450; + }; + }; +} diff --git a/modules/user/modules/wofi/style.css b/modules/user/modules/wofi/style.css new file mode 100644 index 0000000..eda418f --- /dev/null +++ b/modules/user/modules/wofi/style.css @@ -0,0 +1,30 @@ +#window { + background-color: rgba(0x20,0x25,0x30,0.55); + border-radius: 10px; + border: 2px solid rgba(0x40,0x40,0x50,0.70); +} + +#outer-box { + padding: 5px; +} + +#input { + border: none; + border-radius: 5px; + background-color: rgba(0,0,0,0.3); + padding: 2px; + margin-bottom: 7px; +} + +#entry { + padding: 5px; + border-radius: 5px; +} + +#entry:selected { + background-color: rgba(255,255,255,0.1); +} + +#img { + padding-right: 10px; +}