20 lines
441 B
Bash
Executable File
20 lines
441 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## put some image witch nsxiv into the windows ##
|
|
# windowsaver.sh by @root_informatica.
|
|
|
|
. $HOME/.config/wms/wms_var
|
|
|
|
# window id. (wmutils)
|
|
WID=$(pfw)
|
|
# window geometry. (wmutils)
|
|
GEO=$(wattr wh $(pfw) | sed 's/ /x/g')
|
|
|
|
# saver it.
|
|
nsxiv -ab -z 120 -g $GEO -e $WID $GIF
|
|
|
|
|
|
#### WID and GEO widh "xdotool" ####
|
|
# WID=$(xdotool getwindowfocus)
|
|
# GEO=$(xdotool getwindowfocus getwindowgeometry | awk -F " " '/Geometry/ {print $2}'
|