From f9d1f811194a94c4b7e198e615f9d2f678d7b822 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 19 Jul 2024 11:50:05 -0400 Subject: [PATCH] petalburg: move hyprland config to nix --- hosts/petalburg/home.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/hosts/petalburg/home.nix b/hosts/petalburg/home.nix index 075901be..9b305736 100644 --- a/hosts/petalburg/home.nix +++ b/hosts/petalburg/home.nix @@ -6,25 +6,25 @@ }: { home-manager.sharedModules = [ { - wayland.windowManager.hyprland.extraConfig = '' - input { - tablet { - output = eDP-1 - } - touchdevice { - output = eDP-1 - } - } + wayland.windowManager.hyprland.settings = { + bind = [ + ", xf86launch4, exec, ${lib.getExe self.inputs.pp-adjuster.packages.${pkgs.system}.default}" + ", xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause" + ]; - # Extra bindings for petalburg. - bind = , xf86launch4, exec, ${lib.getExe self.inputs.pp-adjuster.packages.${pkgs.system}.default} - bind = , xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause + exec-once = [''${ + lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default + } "desc:Samsung Display Corp. 0x4152'']; - exec-once = ${lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default} "desc:Samsung Display Corp. 0x4152" - ''; + input = { + tablet.output = "eDP-1"; + touchdevice.output = "eDP-1"; + }; + }; ar.home.desktop.hyprland = { laptopMonitors = ["desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0"]; + tabletMode = { enable = true; tabletSwitches = ["Lenovo Yoga Tablet Mode Control switch"];