]> Skullheadx's Git Forge - dmenu.git/commitdiff
use fira code master
authorSkullheadx <admonty1@protonmail.com>
Sun, 14 Jun 2026 01:59:04 +0000 (21:59 -0400)
committerSkullheadx <admonty1@protonmail.com>
Sun, 14 Jun 2026 01:59:04 +0000 (21:59 -0400)
config.def.h
config.h
flake.nix

index 2a032421ad299565f17e618d7b3ac4eae1cc234d..422c7603baf7575c790a69eed3e0416d2a94585c 100644 (file)
@@ -1,23 +1,22 @@
 /* See LICENSE file for copyright and license details. */
 /* Default settings; can be overriden by command line. */
 
 /* See LICENSE file for copyright and license details. */
 /* Default settings; can be overriden by command line. */
 
-static int topbar = 1;                      /* -b  option; if 0, dmenu appears at bottom     */
-static int fuzzy  = 1;                      /* -F  option; if 0, dmenu doesn't use fuzzy matching */
+static int topbar = 1; /* -b  option; if 0, dmenu appears at bottom     */
+static int fuzzy = 1;  /* -F  option; if 0, dmenu doesn't use fuzzy matching */
 /* -fn option overrides fonts[0]; default X11 font or font set */
 /* -fn option overrides fonts[0]; default X11 font or font set */
-static const char *fonts[] = {
-       "monospace:size=16"
-};
-static const char *prompt      = NULL;      /* -p  option; prompt to the left of input field */
+static const char *fonts[] = {"fira-code:size=16"};
+static const char *prompt =
+    NULL; /* -p  option; prompt to the left of input field */
 static const char *colors[SchemeLast][2] = {
 static const char *colors[SchemeLast][2] = {
-       /*     fg         bg       */
-       [SchemeNorm] = { "#bbbbbb", "#222222" },
-       [SchemeSel] = { "#eeeeee", "#005577" },
-       [SchemeSelHighlight] = { "#ffc978", "#005577" },
-       [SchemeNormHighlight] = { "#ffc978", "#222222" },
-       [SchemeOut] = { "#000000", "#00ffff" },
+    /*     fg         bg       */
+    [SchemeNorm] = {"#bbbbbb", "#222222"},
+    [SchemeSel] = {"#eeeeee", "#005577"},
+    [SchemeSelHighlight] = {"#ffc978", "#005577"},
+    [SchemeNormHighlight] = {"#ffc978", "#222222"},
+    [SchemeOut] = {"#000000", "#00ffff"},
 };
 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
 };
 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
-static unsigned int lines      = 0;
+static unsigned int lines = 0;
 
 /*
  * Characters not considered part of a word while deleting words
 
 /*
  * Characters not considered part of a word while deleting words
index 2a032421ad299565f17e618d7b3ac4eae1cc234d..422c7603baf7575c790a69eed3e0416d2a94585c 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,23 +1,22 @@
 /* See LICENSE file for copyright and license details. */
 /* Default settings; can be overriden by command line. */
 
 /* See LICENSE file for copyright and license details. */
 /* Default settings; can be overriden by command line. */
 
-static int topbar = 1;                      /* -b  option; if 0, dmenu appears at bottom     */
-static int fuzzy  = 1;                      /* -F  option; if 0, dmenu doesn't use fuzzy matching */
+static int topbar = 1; /* -b  option; if 0, dmenu appears at bottom     */
+static int fuzzy = 1;  /* -F  option; if 0, dmenu doesn't use fuzzy matching */
 /* -fn option overrides fonts[0]; default X11 font or font set */
 /* -fn option overrides fonts[0]; default X11 font or font set */
-static const char *fonts[] = {
-       "monospace:size=16"
-};
-static const char *prompt      = NULL;      /* -p  option; prompt to the left of input field */
+static const char *fonts[] = {"fira-code:size=16"};
+static const char *prompt =
+    NULL; /* -p  option; prompt to the left of input field */
 static const char *colors[SchemeLast][2] = {
 static const char *colors[SchemeLast][2] = {
-       /*     fg         bg       */
-       [SchemeNorm] = { "#bbbbbb", "#222222" },
-       [SchemeSel] = { "#eeeeee", "#005577" },
-       [SchemeSelHighlight] = { "#ffc978", "#005577" },
-       [SchemeNormHighlight] = { "#ffc978", "#222222" },
-       [SchemeOut] = { "#000000", "#00ffff" },
+    /*     fg         bg       */
+    [SchemeNorm] = {"#bbbbbb", "#222222"},
+    [SchemeSel] = {"#eeeeee", "#005577"},
+    [SchemeSelHighlight] = {"#ffc978", "#005577"},
+    [SchemeNormHighlight] = {"#ffc978", "#222222"},
+    [SchemeOut] = {"#000000", "#00ffff"},
 };
 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
 };
 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
-static unsigned int lines      = 0;
+static unsigned int lines = 0;
 
 /*
  * Characters not considered part of a word while deleting words
 
 /*
  * Characters not considered part of a word while deleting words
index 99a631b99189b880709fc79472df5e6717da221d..6ceea12758797daedcde5b8fd64c38f532cfd296 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -5,31 +5,30 @@
     nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
   };
 
     nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
   };
 
-  outputs =
-    { self, nixpkgs }:
-    let
-      system = "x86_64-linux";
-      pkgs = import nixpkgs { inherit system; };
+  outputs = {
+    self,
+    nixpkgs,
+  }: let
+    system = "x86_64-linux";
+    pkgs = import nixpkgs {inherit system;};
+  in {
+    packages.${system}.default = pkgs.stdenv.mkDerivation {
+      pname = "dmenu";
+      version = "5.4";
+      src = ./.;
 
 
-    in
-    {
-      packages.${system}.default = pkgs.stdenv.mkDerivation {
-        pname = "dmenu";
-        version = "5.4";
-        src = ./.;
-
-        nativeBuildInputs = [ pkgs.pkg-config ];
-        buildInputs = with pkgs; [
-          libX11
-          fontconfig
-          libxinerama
-          libxft
-        ];
-        makeFlags = [
-          "PREFIX=$(out)"
-          "CC:=$(CC)"
-        ];
-
-      };
+      nativeBuildInputs = [pkgs.pkg-config];
+      buildInputs = with pkgs; [
+        libX11
+        fontconfig
+        libxinerama
+        libxft
+        fira-code
+      ];
+      makeFlags = [
+        "PREFIX=$(out)"
+        "CC:=$(CC)"
+      ];
     };
     };
+  };
 }
 }