From 12ffd6521dc437587e21d9fb370b3d8363402a93 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 16 Oct 2022 16:15:00 -0700 Subject: [PATCH] Make power menu functional --- README.md | 1 + rofi/default.nix | 1 + rofi/power.nix | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ab5fd1..2a2715b 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ - Fix/map media keys (already declared within [`i3.nix`](i3.nix) but are non-functional - Fix kitty bell disable not working - Fix Nordic GTK theme icons not working in nautilus +- Add `wmctrl` as an explicit dependency of `rofi-power` instead of `rofi/default.nix` - i3lock - Fix i3lock running restarting on i3 restart - Add `i3lock-colors` as an explicit dependency of `lock` instead of `i3.nix` diff --git a/rofi/default.nix b/rofi/default.nix index c434af4..665b551 100644 --- a/rofi/default.nix +++ b/rofi/default.nix @@ -3,6 +3,7 @@ { home.packages = with pkgs; [ (pkgs.callPackage ./power.nix { }) + wmctrl # TODO: add as dependency of rofi-power ]; programs.rofi = { enable = true; diff --git a/rofi/power.nix b/rofi/power.nix index fff5928..2f4ff50 100644 --- a/rofi/power.nix +++ b/rofi/power.nix @@ -1,9 +1,9 @@ -{ substituteAll }: +{ pkgs, substituteAll }: substituteAll { name = "rofi-power"; src = ./power.sh; - inherit = wmctrl; + dir = "bin"; isExecutable = true; }