petalburg: add power-profiles-adjuster and move specific hyprland binds to home.nix

This commit is contained in:
Aly Raffauf 2024-07-07 00:50:30 -04:00
parent 4d817c1f72
commit b27ec564a0
3 changed files with 7 additions and 7 deletions

View file

@ -479,11 +479,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720303103, "lastModified": 1720327354,
"narHash": "sha256-gKShXeXvBkmVBk7gSmOe4dpQTfnPqUxq0NpJflOS89o=", "narHash": "sha256-WmerqMDayCNB4soarCE93YAG3Lj+RL7VrIdP89shuUw=",
"owner": "alyraffauf", "owner": "alyraffauf",
"repo": "nixhw", "repo": "nixhw",
"rev": "3c03f237fbd6d43c536bc0303986023cd06e9405", "rev": "4bd5475d7b5e3dba78e0683b91a884c5e78af030",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -417,10 +417,6 @@
bindl = , xf86audioprev, exec, ${media.prev} bindl = , xf86audioprev, exec, ${media.prev}
bindl = , xf86audionext, exec, ${media.next} bindl = , xf86audionext, exec, ${media.next}
# Extra bindings for petalburg.
bind = , xf86launch4, exec, pp-adjuster
bind = , xf86launch2, exec, ${media.play}
# Screenshot with hyprshot. # Screenshot with hyprshot.
bind = , PRINT, exec, ${screenshot.screen} bind = , PRINT, exec, ${screenshot.screen}
bind = ${modifier}, PRINT, exec, ${screenshot.region} bind = ${modifier}, PRINT, exec, ${screenshot.region}

View file

@ -9,6 +9,10 @@
sharedModules = [ sharedModules = [
{ {
wayland.windowManager.hyprland.extraConfig = '' wayland.windowManager.hyprland.extraConfig = ''
# Extra bindings for petalburg.
bind = , xf86launch4, exec, ${lib.getExe inputs.nixhw.packages.${pkgs.system}.power-profile-adjuster}
bind = , xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause
exec-once = ${lib.getExe inputs.iio-hyprland.packages.${pkgs.system}.default} "desc:Samsung Display Corp. 0x4152" exec-once = ${lib.getExe inputs.iio-hyprland.packages.${pkgs.system}.default} "desc:Samsung Display Corp. 0x4152"
''; '';