about summary refs log tree commit diff
path: root/pkgs/larbs-scripts/displayselect.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 22:25:33 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 22:25:33 +0200
commit9be00a1b0eaa19d3784c3abb823f3e2ebe80f716 (patch)
treee5c257478b7ac4ca7bcfd2be0c057631fd6f5e3a /pkgs/larbs-scripts/displayselect.nix
parentf1055110d259c36d7c3a968db3c5120341553a6c (diff)
downloadpnpkgs-9be00a1b0eaa19d3784c3abb823f3e2ebe80f716.tar.gz
pnpkgs-9be00a1b0eaa19d3784c3abb823f3e2ebe80f716.zip
Update larbs-scripts
Diffstat (limited to 'pkgs/larbs-scripts/displayselect.nix')
-rw-r--r--pkgs/larbs-scripts/displayselect.nix28
1 files changed, 8 insertions, 20 deletions
diff --git a/pkgs/larbs-scripts/displayselect.nix b/pkgs/larbs-scripts/displayselect.nix
index 9fc2536..54b6fe1 100644
--- a/pkgs/larbs-scripts/displayselect.nix
+++ b/pkgs/larbs-scripts/displayselect.nix
@@ -1,21 +1,12 @@
-{ stdenv, buildEnv, callPackage, lib, xrandr, libnotify, arandr }:
-
-displayselect:
+{ stdenv, buildEnv, callPackage, xrandr, libnotify, arandr }:
+with stdenv.lib;
 
 let
-
-  mapCase = options:
-  builtins.concatStringsSep "\n"
-  (builtins.map
-  (option: "\t\"${option}\") ${builtins.getAttr option options} ;;")
-  (builtins.attrNames options));
-
-  wrapper = { moreOptions ? {} }:
-  let
-    dmenu = callPackage ../../dmenu { };
-  in
+  voidrice = callPackage ../voidrice.nix { };
+  dmenu = callPackage ../dmenu { };
+in
   buildEnv {
-    name = "displayselect-env";
+    name = "displayselect";
 
     paths = [
       xrandr
@@ -26,8 +17,7 @@ let
 
     postBuild = ''
       mkdir -p $out/bin
-      cp ${displayselect}/bin/displayselect $out/bin
-      echo ${mapCase moreOptions} >> $out/bin/test
+      cp ${voidrice}/.local/bin/displayselect $out/bin
     '';
 
 
@@ -35,6 +25,4 @@ let
       description = "A fancy monitor configuration menu.";
       homepage = "https://github.com/LukeSmithXYZ/voidrice";
     };
-  };
-in
-  lib.makeOverridable wrapper
+  }