Skip to content

Commit

Permalink
Add screenshot-region-satty
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpox committed Jun 11, 2024
1 parent 5b1bb92 commit fcca627
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions home-manager/modules/river/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ let
${pkgs.slurp}/bin/slurp | ${pkgs.grim}/bin/grim -g - - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png
'';

screenshot-region-satty =
pkgs.writeShellScriptBin "screenshot-region-satty" # sh
''
${pkgs.slurp}/bin/slurp | ${pkgs.grim}/bin/grim -g - - | ${pkgs.satty}/bin/satty --filename - --early-exit --initial-tool brush --font-family ${config.pinpox.font.normal.family}
'';

screenshot-region-file =
pkgs.writeShellScriptBin "screenshot-region-file" # sh
''
Expand All @@ -45,6 +51,7 @@ in
wofi
start-river
screenshot-region
screenshot-region-satty
screenshot-region-file
];

Expand Down
2 changes: 1 addition & 1 deletion home-manager/modules/sway/swaync/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
},
{
"label": "",
"command": "screenshot-region"
"command": "screenshot-region-satty"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion home-manager/modules/sway/swaync/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ with lib;
}
{
"label" = "";
"command" = "screenshot-region";
"command" = "screenshot-region-satty";
}
];
};
Expand Down

0 comments on commit fcca627

Please sign in to comment.