remove custom screenshot config since omarchy does that now
This commit is contained in:
@@ -25,14 +25,6 @@ bindd = SUPER, D, Open/focus DataGrip, exec, ~/.local/bin/lazy-app class:jetbrai
|
|||||||
# unbind = SUPER, Space
|
# unbind = SUPER, Space
|
||||||
# bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu
|
# 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
|
# create a new workspace
|
||||||
bindd = SUPER, grave, Create a mew workspace, exec, ~/.local/bin/new-workspace
|
bindd = SUPER, grave, Create a mew workspace, exec, ~/.local/bin/new-workspace
|
||||||
|
|
||||||
|
@@ -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
|
|
Reference in New Issue
Block a user