Update keybinds
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
30
hosts/himalia/hardware/keybinds.nix
Normal file
30
hosts/himalia/hardware/keybinds.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user