update_0.8
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
|
||||
eval $(xdotool getmouselocation --shell)
|
||||
data=$(i3-msg -t get_outputs | jq -r ".[] | select(.active == true and $X >= .rect.x and $X < (.rect.x + .rect.width) and $Y >= .rect.y and $Y < (.rect.y + .rect.height)) | \"\(.name)\t\(.rect.width)x\(.rect.height)+\(.rect.x)+\(.rect.y)\"")
|
||||
echo $data
|
||||
name=$(echo "$data" | cut -f1)
|
||||
echo $name
|
||||
geometry=$(echo "$data" | cut -f2)
|
||||
echo $geometry
|
||||
temp_file="/tmp/i3-sc-full.png"
|
||||
maim -g "$geometry" "$temp_file"
|
||||
echo "file://$temp_file" | xclip -selection clipboard -t text/uri-list
|
||||
notify-send "Screenshot" "Captured display: $name" -i camera-photo
|
||||
rm "$temp_file"
|
||||
Reference in New Issue
Block a user