diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-31 23:53:19 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-31 23:54:33 +0530 |
commit | a098bf2b6c0f35d37656a31dab33f8346b2191e0 (patch) | |
tree | fd31ae3f53874644467034ffb65c2c3de4f91fc6 /home/wayland/pkgs | |
parent | f28b2c3631e34d4899641bde9423bbb4c7225e75 (diff) |
home/wayland/sway: set SUDO_ASKPASS
Diffstat (limited to 'home/wayland/pkgs')
-rw-r--r-- | home/wayland/pkgs/wayland-scripts/default.nix | 3 | ||||
-rwxr-xr-x | home/wayland/pkgs/wayland-scripts/src/bin/daskpass | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/home/wayland/pkgs/wayland-scripts/default.nix b/home/wayland/pkgs/wayland-scripts/default.nix index b43f4b7..c96ad22 100644 --- a/home/wayland/pkgs/wayland-scripts/default.nix +++ b/home/wayland/pkgs/wayland-scripts/default.nix @@ -10,6 +10,7 @@ imv, grim, slurp, + bemenu, }: stdenvNoCC.mkDerivation { @@ -37,6 +38,8 @@ stdenvNoCC.mkDerivation { postInstall = '' wrapProgram $out/bin/cwall \ --prefix PATH : ${lib.makeBinPath [ ffmpeg libnotify sway ]} + wrapProgram $out/bin/daskpass \ + --prefix PATH : ${lib.makeBinPath [ bemenu ]} wrapProgram $out/bin/ttyasrt \ --prefix PATH : ${lib.makeBinPath [ libnotify ]} wrapProgram $out/bin/freezshot \ diff --git a/home/wayland/pkgs/wayland-scripts/src/bin/daskpass b/home/wayland/pkgs/wayland-scripts/src/bin/daskpass new file mode 100755 index 0000000..90cf135 --- /dev/null +++ b/home/wayland/pkgs/wayland-scripts/src/bin/daskpass @@ -0,0 +1,3 @@ +#!/bin/sh + +printf "" | bemenu --password indicator --prompt " ${1:-"Authentication Required: "}" |