Added screenshot with hyprshot & satty
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
./nvf.nix
|
||||
./packages.nix
|
||||
# ./plasma.nix
|
||||
./screenshot.nix
|
||||
./ssh.nix
|
||||
./stylix.nix
|
||||
./vscode.nix
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
|
||||
env = [
|
||||
"NIXOS_OZONE_WL, 1"
|
||||
"HYPRSHOT_DIR, ${config.xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
", XF86MonBrightnessUp, 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
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
", XF86AudioPlay, exec, playerctl play-pause"
|
||||
|
||||
17
modules/home/screenshot.nix
Normal file
17
modules/home/screenshot.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user