refactor(hyprland): move nvidia option > wayland.nvidia/add hyprlands.extras
hyprland extras to serve as place to add hyprecosystem projects
This commit is contained in:
parent
ba410aa838
commit
82f539c989
9 changed files with 61 additions and 54 deletions
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hyprcapture
|
||||
./hyprshade
|
||||
];
|
||||
|
||||
options.homeModules.desktop.wayland.windowManager.hyprland.extras = {
|
||||
hyprcapture = {
|
||||
enable = lib.mkEnableOption "Enable hyprcapture screenshot/recording module";
|
||||
};
|
||||
hyprshade = {
|
||||
enable = lib.mkEnableOption "Enable hyprshade tool module";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland.extras.hyprcapture;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
home.packages = with inputs; [
|
||||
# Screenshot tool
|
||||
hyprwm-contrib.packages.${pkgs.system}.grimblast
|
||||
# Screen recording tool
|
||||
ooks-scripts.packages.${pkgs.system}.hyprrecord
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland.settings.bind = [
|
||||
# Screenshot binds
|
||||
", Print, exec, grimblast --notify --cursor copysave area"
|
||||
"SUPER, Print, exec, grimblast --notify --cursor copysave screen"
|
||||
# Recording binds
|
||||
"SUPER, r, exec, hyprrecord -a -w video screen copysave"
|
||||
"SUPER CTRL, r, exec, hyprrecord -a -w video area copysave"
|
||||
"SUPER ALT, r, exec, hyprrecord -w gif area copysave"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland.extras.hyprshade;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.hyprshade ];
|
||||
# TODO: implement hyprshade configuration
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue