petalburg: move hyprland config to nix

This commit is contained in:
Aly Raffauf 2024-07-19 11:50:05 -04:00
parent 999d824edb
commit f9d1f81119

View file

@ -6,25 +6,25 @@
}: { }: {
home-manager.sharedModules = [ home-manager.sharedModules = [
{ {
wayland.windowManager.hyprland.extraConfig = '' wayland.windowManager.hyprland.settings = {
input { bind = [
tablet { ", xf86launch4, exec, ${lib.getExe self.inputs.pp-adjuster.packages.${pkgs.system}.default}"
output = eDP-1 ", xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause"
} ];
touchdevice {
output = eDP-1
}
}
# Extra bindings for petalburg. exec-once = [''${
bind = , xf86launch4, exec, ${lib.getExe self.inputs.pp-adjuster.packages.${pkgs.system}.default} lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default
bind = , xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause } "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 = { ar.home.desktop.hyprland = {
laptopMonitors = ["desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0"]; laptopMonitors = ["desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0"];
tabletMode = { tabletMode = {
enable = true; enable = true;
tabletSwitches = ["Lenovo Yoga Tablet Mode Control switch"]; tabletSwitches = ["Lenovo Yoga Tablet Mode Control switch"];