
#Captura toda la pantalla
Print :ExecCommand import -window root ~/screenshot_`date +%Y-%m-%d.%H%M%S`.png
#Captura la ventana activa
Mod1 Print :ExecCommand (xwd -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d'#' -f2) $JFRAME | convert - $HOME/captura_$(date +%Y%m%d-%H%M%S).png && feh $_)
#Capura la ventana que se selccione con el puntero de xwd
Shift Print :ExecCommand (xwd $JFRAME | convert - $HOME/captura_$(date +%Y%m%d-%H%M%S).png && feh $_)
#Captura la ventana activa despues de timeout ingresado por zenity
Mod1 Shift Print :ExecCommand ((sleep $(zenity --entry --text="Tiempo de espera para la captura:") 2>| /dev/null || echo "0") && xwd -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d'#' -f2) $JFRAME | convert - $HOME/captura_$(date +%Y%m%d-%H%M%S).png && feh $_)
#Imprime en pantalla el espacio en las particiones
Mod4 Shift D :ExecCommand (DISPLAY=":0.0" && df -h | osd_cat -p bottom -f '-xos4-*-medium-r-*-*-14-*-*-*-*-*-iso8859-1' -c 'blue' -l $(df -h | wc -l) -i '10' -s 1 -S 'black' -o 10)
#Imprime en pantalla la utilización de memoria
Mod4 Shift F :ExecCommand (DISPLAY=":0.0" && free -t | osd_cat -p bottom -f '-xos4-*-medium-r-*-*-14-*-*-*-*-*-iso8859-1' -c 'blue' -l 5 -i '10' -s 1 -S 'black' -o 10)
Fuente: jj.isggek
0 comentarios:
Publicar un comentario