pinwheel: Use hyprland enable option
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user