mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
feat(desktop): add hyprland screenshot and screenrecord tools
This commit is contained in:
@@ -2,12 +2,6 @@
|
|||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
ags
|
|
||||||
awww
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = null;
|
package = null;
|
||||||
@@ -15,5 +9,22 @@
|
|||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
systemd.variables = [ "--all" ];
|
systemd.variables = [ "--all" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
ags
|
||||||
|
awww
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
hyprshot
|
||||||
|
wl-clipboard
|
||||||
|
wl-screenrec
|
||||||
|
(writeShellScriptBin "hypr-screenshot" ''
|
||||||
|
hyprshot -m region -r ppm - | satty --filename -
|
||||||
|
'')
|
||||||
|
|
||||||
|
(writeShellScriptBin "hypr-screenrecord" ''
|
||||||
|
wl-screenrec -g "$(slurp)"
|
||||||
|
'')
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
19
modules/hm/desktop/satty.nix
Normal file
19
modules/hm/desktop/satty.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.desktop = {
|
||||||
|
programs.satty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
corner-roundness = 12;
|
||||||
|
initial-tool = "arrow";
|
||||||
|
early-exit = true;
|
||||||
|
copy-command = "wl-copy";
|
||||||
|
};
|
||||||
|
|
||||||
|
font = {
|
||||||
|
family = "JetBrainsMono NerdFont";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user