dgy
/
hexagons
Archived
1
0
Fork 0
This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
hexagons/.local/bin/pantallazo

14 lines
590 B
Bash
Executable File

#!/bin/sh
file=$HOME/img/scrot/"$(date +%H_%M)".png
vent=$(bspc query -N -n .focused)
case "$(printf "Seleccion\\nVentana\\nPantalla\\nCopiar seleccion\\nCopiar ventana\\nCopiar pantalla" | dmenu -w 200 -p " ")" in
"Seleccion") maim -us "$file" ;;
"Ventana") maim -ui "$(printf "%d\n" $vent)" "$file" ;;
"Pantalla") maim -u "$file" ;;
"Copiar seleccion") maim -us | xclip -selection clipboard -t image/png ;;
"Copiar ventana") maim -ui "$(printf "%d\n" "$vent")" | xclip -selection clipboard -t image/png ;;
"Copiar pantalla") maim -u | xclip -selection clipboard -t image/png ;;
esac