36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
home-manager.sharedModules = [
|
|
{
|
|
wayland.windowManager.hyprland.settings =
|
|
let
|
|
brightnessctl = lib.meta.getExe pkgs.brightnessctl;
|
|
asusctl = "${pkgs.asusctl}/bin/asusctl";
|
|
in
|
|
{
|
|
bindle = [
|
|
", XF86MonBrightnessUp, exec, ${brightnessctl} -d intel_backlight -q s 5%+"
|
|
", XF86MonBrightnessDown, exec, ${brightnessctl} -d intel_backlight -q s 5%-"
|
|
", XF86KbdBrightnessUp, exec, ${asusctl} -n"
|
|
", XF86KbdBrightnessDown, exec, ${asusctl} -p"
|
|
];
|
|
|
|
bindl =
|
|
let
|
|
touchpadHelper = lib.meta.getExe (
|
|
pkgs.writeShellApplication {
|
|
name = "touchpad-helper";
|
|
runtimeInputs = with pkgs; [ hyprland ];
|
|
text = builtins.readFile ./scripts/touchpad-helper.sh;
|
|
}
|
|
);
|
|
in
|
|
[
|
|
", XF86Launch4, exec, ${asusctl} profile -n"
|
|
", XF86TouchpadToggle, exec, ${touchpadHelper} asuf1209:00-2808:0219-touchpad"
|
|
];
|
|
};
|
|
}
|
|
];
|
|
}
|