From e040c530e8dd6c0c2f83a8f1dbf5c50910726e95 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 6 Apr 2023 01:27:26 +0530 Subject: [PATCH] power menu binding --- home/wm/hyprland/default.nix | 4 +++- packages/scripts/default.nix | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index 98ce159..d39f4e9 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -8,7 +8,8 @@ let swaylock = "${pkgs.swaylock}/bin/swaylock"; tmux = "${pkgs.tmux}/bin/tmux"; wpctl = "${pkgs.wireplumber}/bin/wpctl"; -in { +in +{ wayland.windowManager.hyprland = { enable = true; systemdIntegration = true; @@ -42,6 +43,7 @@ in { bind = SUPER,d, exec, ${rofi} -show drun bind = SUPER,l, exec, ${swaylock} -f -i /tmp/lockpaper.jpg bind = SUPER_SHIFT,W, exec, ~/.config/scripts/chpaper.sh + bind = SUPER_SHIFT,escape, exec, ${pkgs.scripts}/bin/power-menu bind = SUPER,1, workspace, 1 bind = SUPER,2, workspace, 2 diff --git a/packages/scripts/default.nix b/packages/scripts/default.nix index d43c396..98e91f6 100644 --- a/packages/scripts/default.nix +++ b/packages/scripts/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenvNoCC, makeWrapperm, libnotify }: +{ lib, stdenvNoCC, makeWrapper, libnotify }: stdenvNoCC.mkDerivation { pname = "scripts"; version = "1.0";