From 6a85f6b61b709645930116dda0f3183d6a2ab472 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 10 Jun 2024 19:19:30 +0200 Subject: [PATCH] Add wofi launcher --- home/programs/graphical/default.nix | 1 + home/programs/graphical/launchers/default.nix | 9 ++++ .../graphical/launchers/wofi/default.nix | 17 +++++++ .../graphical/launchers/wofi/style.css | 51 +++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 home/programs/graphical/launchers/default.nix create mode 100644 home/programs/graphical/launchers/wofi/default.nix create mode 100644 home/programs/graphical/launchers/wofi/style.css diff --git a/home/programs/graphical/default.nix b/home/programs/graphical/default.nix index 47e6869..e5fd07c 100644 --- a/home/programs/graphical/default.nix +++ b/home/programs/graphical/default.nix @@ -1,5 +1,6 @@ _: { imports = [ ./wms + ./launchers ]; } diff --git a/home/programs/graphical/launchers/default.nix b/home/programs/graphical/launchers/default.nix new file mode 100644 index 0000000..2c99ed9 --- /dev/null +++ b/home/programs/graphical/launchers/default.nix @@ -0,0 +1,9 @@ +{ + imports = [ + #./anyrun + #./rofi + #./tofi + #./walker + ./wofi + ]; +} diff --git a/home/programs/graphical/launchers/wofi/default.nix b/home/programs/graphical/launchers/wofi/default.nix new file mode 100644 index 0000000..1838261 --- /dev/null +++ b/home/programs/graphical/launchers/wofi/default.nix @@ -0,0 +1,17 @@ +_: { + programs.wofi = { + enable = true; + settings = { + width = "40%"; + height = "30%"; + show = "drun"; + prompt = "Search"; + allow_images = true; + allow_markup = true; + insensitive = true; + }; + style = '' + ${builtins.readFile ./style.css} + ''; + }; +} diff --git a/home/programs/graphical/launchers/wofi/style.css b/home/programs/graphical/launchers/wofi/style.css new file mode 100644 index 0000000..0ef36a6 --- /dev/null +++ b/home/programs/graphical/launchers/wofi/style.css @@ -0,0 +1,51 @@ +window { + font-family: "DejaVu Sans", "Font Awesome 5 Free"; + margin: 0px; + border: 1px solid rgba(0, 0, 0, 0.9); + background-color: rgba(29, 31, 33, 0.95); + border-radius: 10px; +} + +#input { + margin: 5px; + border: none; + color: #f8f8f2; + background-color: rgba(55, 59, 65, 0.95); +} + +#inner-box { + margin: 5px; + border: none; + background-color: transparent; +} + +#outer-box { + margin: 5px; + border: none; + background-color: transparent; +} + +#scroll { + margin: 0px; + border: none; +} + +#text { + margin: 5px; + border: none; + color: #c5c8c6; +} + +#entry { + border: none; +} + +#entry:focus { + border: none; +} + +#entry:selected { + background-color: rgba(55, 59, 65, 0.95); + border-radius: 5px; + border: none; +}