From 6b947ffb453c44fec94183307361109cc86dfbdd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Jul 2025 16:49:39 -0500 Subject: [PATCH] Add satty to the default screenshot flow --- bin/omarchy-screenshot | 9 +++++++++ default/hypr/bindings/utilities.conf | 6 +++--- install/desktop.sh | 2 +- migrations/1752955912.sh | 2 ++ 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100755 bin/omarchy-screenshot create mode 100644 migrations/1752955912.sh diff --git a/bin/omarchy-screenshot b/bin/omarchy-screenshot new file mode 100755 index 0000000..e2878e4 --- /dev/null +++ b/bin/omarchy-screenshot @@ -0,0 +1,9 @@ +#!/bin/bash + +hyprshot -m ${1:-region} --raw | + satty --filename - \ + --output-filename ~/Pictures/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png \ + --early-exit \ + --actions-on-enter save-to-clipboard \ + --save-after-copy \ + --copy-command 'wl-copy' diff --git a/default/hypr/bindings/utilities.conf b/default/hypr/bindings/utilities.conf index 353cc63..103fdbe 100644 --- a/default/hypr/bindings/utilities.conf +++ b/default/hypr/bindings/utilities.conf @@ -24,9 +24,9 @@ bind = CTRL, F2, exec, ~/.local/share/omarchy/bin/omarchy-apple-display-brightne bind = SHIFT CTRL, F2, exec, ~/.local/share/omarchy/bin/omarchy-apple-display-brightness +60000 # Screenshots -bind = , PRINT, exec, hyprshot -m region -bind = SHIFT, PRINT, exec, hyprshot -m window -bind = CTRL, PRINT, exec, hyprshot -m output +bind = , PRINT, exec, omarchy-screenshot +bind = SHIFT, PRINT, exec, omarchy-screenshot window +bind = CTRL, PRINT, exec, omarchy-screenshot output # Screenshots bind = ALT, PRINT, exec, omarchy-screenrecord diff --git a/install/desktop.sh b/install/desktop.sh index a3b9bbc..e3f2780 100644 --- a/install/desktop.sh +++ b/install/desktop.sh @@ -4,6 +4,6 @@ yay -S --noconfirm --needed \ brightnessctl playerctl pamixer wiremix wireplumber \ fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \ nautilus sushi ffmpegthumbnailer \ - slurp wl-screenrec \ + slurp wl-screenrec satty \ mpv evince imv \ chromium diff --git a/migrations/1752955912.sh b/migrations/1752955912.sh new file mode 100644 index 0000000..6b9e039 --- /dev/null +++ b/migrations/1752955912.sh @@ -0,0 +1,2 @@ +echo "Install satty for the new screenshot flow" +yay -S --noconfirm --needed satty