mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 13:49:17 -05:00
Aly Raffauf
3899be29c3
* home: moved hyprland monitors to config.ar.home.desktop.hyprland.monitors and config.ar.home.desktop.desktop.hyprland.laptopMonitors * nix fmt * home/options: update formatting * home/hyprland: move laptop montiors to hosts/hostname/home.nix * home/hyprland: move external non-desktop displays to user home configs * home/hyprland: move monitors to host + home configs * home/hyprland: add ar.home.desktop.hyprland.tabletMode.tabletSwitches for automatically setting up a list of tablet switches * nix fmt
37 lines
928 B
Nix
37 lines
928 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
self,
|
|
...
|
|
}: {
|
|
home-manager.sharedModules = [
|
|
{
|
|
wayland.windowManager.hyprland.extraConfig = ''
|
|
input {
|
|
tablet {
|
|
output = eDP-1
|
|
}
|
|
touchdevice {
|
|
output = eDP-1
|
|
}
|
|
}
|
|
|
|
# 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"
|
|
'';
|
|
|
|
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"];
|
|
};
|
|
};
|
|
}
|
|
];
|
|
}
|