31 lines
832 B
Nix
31 lines
832 B
Nix
{ pkgs, ... }:
|
|
{
|
|
home-manager.sharedModules = [
|
|
{
|
|
wayland.windowManager.hyprland.settings =
|
|
let
|
|
asusctl = "${pkgs.asusctl}/bin/asusctl";
|
|
in
|
|
{
|
|
bindle = [
|
|
", XF86KbdBrightnessUp, exec, ${asusctl} -n"
|
|
", XF86KbdBrightnessDown, exec, ${asusctl} -p"
|
|
];
|
|
|
|
bindl =
|
|
let
|
|
touchpadHelper = pkgs.writeShellApplication {
|
|
name = "touchpad-helper";
|
|
runtimeInputs = with pkgs; [ hyprland ];
|
|
text = builtins.readFile ./touchpad-helper.sh;
|
|
};
|
|
in
|
|
[
|
|
", XF86Launch4, exec, ${asusctl} profile -n"
|
|
", XF86TouchpadToggle, exec, ${touchpadHelper} asuf1209:00-2808:0219-touchpad"
|
|
];
|
|
};
|
|
}
|
|
];
|
|
}
|