pinwheel: Use hyprland enable option

This commit is contained in:
Alexander Heldt
2023-10-16 23:24:07 +02:00
parent a5ec186a59
commit 6af142e20b
8 changed files with 38 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
{ inputs, pkgs, system, ...}:
{ inputs, pkgs, lib, system, config, ...}:
let
hyprlandEnabled = config.mod.hyprland.enable;
grimblast = inputs.hyprland-contrib.packages.${system}.grimblast;
area = "${pkgs.libnotify}/bin/notify-send 'ps: selected area' && ${grimblast}/bin/grimblast copy area";
screen = "${pkgs.libnotify}/bin/notify-send 'ps: selected screen' &&${grimblast}/bin/grimblast copy output";
@@ -8,7 +10,7 @@ in
home-manager.users.alex = {
home.packages = [ grimblast ];
wayland.windowManager.hyprland = {
wayland.windowManager.hyprland = lib.mkIf hyprlandEnabled {
settings = {
bind = [
"$mod, Print, exec, ${area}"