From 1fb15949468bf504a6e4726ef8766912eb899301 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 21 Dec 2024 13:32:59 -0500 Subject: [PATCH] hyprland: add power.sh bind Signed-off-by: Myned --- options/custom/desktops/hyprland/binds.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options/custom/desktops/hyprland/binds.nix b/options/custom/desktops/hyprland/binds.nix index 7c44646..4c7ae60 100644 --- a/options/custom/desktops/hyprland/binds.nix +++ b/options/custom/desktops/hyprland/binds.nix @@ -30,6 +30,7 @@ with lib; let onlyoffice-desktopeditors = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors --system-title-bar --xdg-desktop-portal"; pkill = "${pkgs.procps}/bin/pkill"; playerctl = "${pkgs.playerctl}/bin/playerctl"; + power = config.home-manager.users.${config.custom.username}.home.file.".local/bin/power".source; remote = config.home-manager.users.${config.custom.username}.home.file.".local/bin/remote".source; rofi-rbw = "${pkgs.rofi-rbw}/bin/rofi-rbw"; rm = "${pkgs.coreutils}/bin/rm"; @@ -146,7 +147,7 @@ in { (key "Bracketright" "Super" "splitratio" "+0.1") (key "Bracketright" "Super+Shift" "layoutmsg" "rollprev") (key "Comma" "Super" "layoutmsg" "swapprev") - (key "Down" "Super" "exec" "${swayosd-client} --brightness lower") + (key "Delete" "Super+Shift" "exec" power) (key "Down" "Super+Shift" "movewindoworgroup" "d") (key "Equal" "Super" "exec" "${swayosd-client} --output-volume raise") (key "Equal" "Super+Shift" "exec" "${zoom} +0.1")