47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib, 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 = 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"
|
|
];
|
|
|
|
bind =
|
|
let
|
|
farmAura = lib.meta.getExe (
|
|
pkgs.writeShellApplication {
|
|
name = "farm-aura";
|
|
runtimeInputs = with pkgs; [ genact ];
|
|
text = builtins.readFile ./scripts/farm-aura.sh;
|
|
}
|
|
);
|
|
in
|
|
[
|
|
", XF86Launch3, exec, uwsm app -- $term ${farmAura}"
|
|
];
|
|
};
|
|
}
|
|
];
|
|
}
|