-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace grimblast/swappy with hyprshot/satty
- Loading branch information
1 parent
3f9de9f
commit 2898899
Showing
4 changed files
with
55 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
home-manager/_mixins/desktop/hyprland/grimblast/default.nix
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
home-manager/_mixins/desktop/hyprland/hyprshot/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
{ | ||
# hyprshot is a screenshot grabber and satty is a screenshot editor | ||
# This config provides comprehensive screenshot functionality for hyprland | ||
home = { | ||
file = { | ||
"${config.xdg.configHome}/satty/config.toml".text = '' | ||
[general] | ||
# Start Satty in fullscreen mode | ||
fullscreen = false | ||
# Exit directly after copy/save action | ||
early-exit = false | ||
# Select the tool on startup [possible values: pointer, crop, line, arrow, rectangle, text, marker, blur, brush] | ||
initial-tool = "pointer" | ||
# Configure the command to be called on copy, for example `wl-copy` | ||
copy-command = "wl-copy" | ||
# Increase or decrease the size of the annotations | ||
annotation-size-factor = 2 | ||
# Filename to use for saving action: https://docs.rs/chrono/latest/chrono/format/strftime/index.html | ||
output-filename = "${config.home.homeDirectory}/Pictures/Screenshots/screenshot-%Y%m%d-%H%M%S.png" | ||
save-after-copy = false | ||
default-hide-toolbars = false | ||
# The primary highlighter: block, freehand | ||
primary-highlighter = "block" | ||
disable-notifications = false | ||
# Font to use for text annotations | ||
[font] | ||
family = "Work Sans" | ||
style = "Bold" | ||
''; | ||
}; | ||
packages = with pkgs; [ | ||
hyprshot # screenshot grabber | ||
satty # screenshot editor | ||
]; | ||
}; | ||
wayland.windowManager.hyprland = { | ||
settings = { | ||
bind = [ | ||
", Print, exec, ${lib.getExe pkgs.hyprshot} --mode output --raw | ${lib.getExe pkgs.satty} --filename -" | ||
"ALT, Print, exec, ${lib.getExe pkgs.hyprshot} --mode window --raw | ${lib.getExe pkgs.satty} --filename -" | ||
"SHIFT, Print, exec, ${lib.getExe pkgs.hyprshot} --mode region --raw | ${lib.getExe pkgs.satty} --filename -" | ||
"CTRL ALT, Print, exec, ${lib.getExe pkgs.hyprshot} --mode active --raw | ${lib.getExe pkgs.satty} --filename -" | ||
]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters