add:waybar

This commit is contained in:
dichgrem
2025-07-09 10:07:01 +08:00
parent 51b825a1d2
commit f343eb0913
8 changed files with 346 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
grim -g "$(slurp)" - | swappy -f -

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
grim - | wl-copy -t image/png;notify-send "Screenshot copied to clipboard"

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
grim -g "$(hyprctl clients -j | jq '.[] | select(.hidden | not) | "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' -r | slurp)" - | swappy -f -

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
## only support EN
grim -g "$(slurp)" - | tesseract -l "eng" stdin stdout | wl-copy;notify-send "OCR content copied to clipboard"

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)" - | swappy -f -