Added screenshot with hyprshot & satty

This commit is contained in:
2025-11-12 14:23:51 -05:00
parent e35f7923ae
commit 6c79eff909
4 changed files with 24 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
./nvf.nix ./nvf.nix
./packages.nix ./packages.nix
# ./plasma.nix # ./plasma.nix
./screenshot.nix
./ssh.nix ./ssh.nix
./stylix.nix ./stylix.nix
./vscode.nix ./vscode.nix

View File

@@ -47,6 +47,7 @@
env = [ env = [
"NIXOS_OZONE_WL, 1" "NIXOS_OZONE_WL, 1"
"HYPRSHOT_DIR, ${config.xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR}"
]; ];
}; };
}; };

View File

@@ -33,6 +33,11 @@
", XF86MonBrightnessUp, exec, brightnessctl set 10%+" ", XF86MonBrightnessUp, exec, brightnessctl set 10%+"
", XF86MonBrightnessDown, exec, brightnessctl set 10%-" ", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
# Screenshoting
", PRINT, exec, hyprshot -m output --raw | satty --filename -"
"$mod, PRINT, exec, hyprshot -m window --raw | satty --filename -"
"SHIFT, PRINT, exec, hyprshot -m region --raw | satty --filename -"
# Media Control Keys # Media Control Keys
", XF86AudioPrev, exec, playerctl previous" ", XF86AudioPrev, exec, playerctl previous"
", XF86AudioPlay, exec, playerctl play-pause" ", XF86AudioPlay, exec, playerctl play-pause"

View File

@@ -0,0 +1,17 @@
{
pkgs,
config,
...
}:
{
home.packages = with pkgs; [
hyprshot
satty
];
xdg.configFile."satty/config.toml".text = ''
[general]
fullscreen = false
output-filename = "${config.xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR}/%Y-%m-%d_%H:%M:%S.png"
'';
}