From 6e965e855e752e01adb78f7e2492351aa7ce88c7 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 18 Jun 2024 09:34:09 +0530 Subject: home/wayland/bemenu: init --- home/cez/modules/wayland.nix | 2 ++ home/wayland/modules/sway/bemenu.nix | 31 +++++++++++++++++++++++++++++++ home/wayland/modules/sway/home.nix | 1 + 3 files changed, 34 insertions(+) create mode 100644 home/wayland/modules/sway/bemenu.nix (limited to 'home') diff --git a/home/cez/modules/wayland.nix b/home/cez/modules/wayland.nix index 4c9e0ac..431746c 100644 --- a/home/cez/modules/wayland.nix +++ b/home/cez/modules/wayland.nix @@ -5,4 +5,6 @@ in { # vendor hardcoded screenshot key wayland.windowManager.sway.settings.bindsym."mod4+shift+s" = "exec ${freezshot}"; + + programs.bemenu.settings.line-height = 30; } diff --git a/home/wayland/modules/sway/bemenu.nix b/home/wayland/modules/sway/bemenu.nix new file mode 100644 index 0000000..ced6b2f --- /dev/null +++ b/home/wayland/modules/sway/bemenu.nix @@ -0,0 +1,31 @@ +{ config, lib, ... }: let + background = "#000000"; + foreground = "#FFFFFF"; + swayYellow = "#d79921"; + + font = config.global.font.sans.name + + lib.optionalString (config.global.font.sans.size != null) + " " + builtins.toString config.global.font.sans.size; +in { + programs.bemenu = { + enable = true; + + settings = { + fn = font; + hp = 6; + + tf = swayYellow; + hf = swayYellow; + + nf = foreground; + af = foreground; + + nb = background; + cf = background; + tb = background; + fb = background; + hb = background; + ab = background; + }; + }; +} diff --git a/home/wayland/modules/sway/home.nix b/home/wayland/modules/sway/home.nix index 4878bf0..241c1d4 100644 --- a/home/wayland/modules/sway/home.nix +++ b/home/wayland/modules/sway/home.nix @@ -27,6 +27,7 @@ in { imports = [ ./mako.nix ./theme.nix + ./bemenu.nix ./swayidle.nix ./swaylock.nix ./i3status.nix -- cgit v1.2.3