diff --git a/packages/scripts/default.nix b/packages/scripts/default.nix index 98e91f6..d198e82 100644 --- a/packages/scripts/default.nix +++ b/packages/scripts/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenvNoCC, makeWrapper, libnotify }: +{ lib, stdenvNoCC, makeWrapper, libnotify, rofi-wayland }: stdenvNoCC.mkDerivation { pname = "scripts"; version = "1.0"; @@ -11,6 +11,6 @@ stdenvNoCC.mkDerivation { mkdir -p $out/bin cp power-menu.sh $out/bin/power-menu chmod +x $out/bin/power-menu - wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [ libnotify ]} + wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [ libnotify rofi-wayland ]} ''; } diff --git a/packages/scripts/power-menu.sh b/packages/scripts/power-menu.sh index 113f1eb..5112442 100644 --- a/packages/scripts/power-menu.sh +++ b/packages/scripts/power-menu.sh @@ -23,5 +23,5 @@ chpower() { OPTIONS="Shutdown\nReboot\nHibernate" -chpower "$(printf "%b" "$OPTIONS" | sort | ${dmenu} -p "Power Menu")" +chpower "$(printf "%b" "$OPTIONS" | sort | rofi -dmenu -p "Power Menu")"