chore: grab screenshot of the first screen
This commit is contained in:
parent
88fbf9e0cb
commit
abb7372b0c
@ -27,7 +27,7 @@ icon=/usr/share/pixmaps/fedora-logo-sprite.png # with style
|
|||||||
lwaucj=$wdir/nuvdsp.png
|
lwaucj=$wdir/nuvdsp.png
|
||||||
mkdir -p $wdir && chmod 1700 $wdir
|
mkdir -p $wdir && chmod 1700 $wdir
|
||||||
|
|
||||||
grim -o eDP-1 $screen1 # take a screenshot
|
grim -o $(swaymsg -p -t get_outputs | grep Output | head -n1 | sed -e 's/Output //g' -e 's/ ''.*$//g') $screen1 # take a screenshot
|
||||||
|
|
||||||
convert $screen1 -scale 10% -scale 1000% $screen1
|
convert $screen1 -scale 10% -scale 1000% $screen1
|
||||||
convert $screen1 $icon -gravity center -composite -matte $lwaucj && rm $screen1
|
convert $screen1 $icon -gravity center -composite -matte $lwaucj && rm $screen1
|
||||||
|
Loading…
Reference in New Issue
Block a user