diff --git a/dot_config/hypr/bindings.conf b/dot_config/hypr/bindings.conf index 3d5bd11..51bb7ca 100644 --- a/dot_config/hypr/bindings.conf +++ b/dot_config/hypr/bindings.conf @@ -25,14 +25,6 @@ bindd = SUPER, D, Open/focus DataGrip, exec, ~/.local/bin/lazy-app class:jetbrai # unbind = SUPER, Space # bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu -# I have my own screnshot script now -unbind = , PRINT -bindd = , PRINT, Screenshot of region, exec, ~/.local/bin/freezeshot -unbind = SHIFT, PRINT -bindd = SHIFT, PRINT, Screenshot of window, exec, ~/.local/bin/freezeshot window -unbind = CTRL, PRINT -bindd = CTRL, PRINT, Screenshot of display, exec, ~/.local/bin/freezeshot output - # create a new workspace bindd = SUPER, grave, Create a mew workspace, exec, ~/.local/bin/new-workspace diff --git a/dot_local/bin/executable_freezeshot b/dot_local/bin/executable_freezeshot deleted file mode 100644 index 67572dc..0000000 --- a/dot_local/bin/executable_freezeshot +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# adapted from ~/.local/share/omarchy/bin/omarchy-cmd-screenshot - -[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs -OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-${XDG_PICTURES_DIR:-$HOME/Pictures}}" - -if [[ ! -d "$OUTPUT_DIR" ]]; then - notify-send "Screenshot directory does not exist: $OUTPUT_DIR" -u critical -t 3000 - exit 1 -fi - -# if we are in the process of screenshotting, cancel that and exit -pkill slurp && exit 0 - -# freeze display(s) -wayfreeze & -sleep 0.1 - -# use process substitution to send to satty rather than piping so that we can kill wayfreeze as soon as hyprshot finishes -hyprshot -m ${1:-region} --raw > >( - satty --filename - \ - --output-filename "$output_dir/screenshot-$(date +'%y-%m-%d_%h-%m-%s').png" \ - --early-exit \ - --actions-on-enter save-to-clipboard \ - --save-after-copy \ - --copy-command 'wl-copy' -) & - -wait $(jobs -p %hyprshot) -kill $(jobs -p %wayfreeze) -# satty is still running at this point, but we don't particularly care