Update screenshot script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
2cf9d6b315
commit
14e80e6bf2
1 changed files with 10 additions and 2 deletions
|
@ -18,10 +18,12 @@ PROMPT="Screenshot"
|
|||
# Actions for the menu
|
||||
ACTIONS=(
|
||||
"1: Fullscreen"
|
||||
"2: Selection"
|
||||
"2: Fullscreen (Clipboard)"
|
||||
"3: Selection"
|
||||
"4: Selection (Clipboard)"
|
||||
)
|
||||
|
||||
FILENAME="${HOME}/Pictures/Screenshots/%Y-%m-%d-%H%I%S.png"
|
||||
FILENAME="${HOME}/Pictures/Screenshots/%Y-%m-%d-%H%M%S.png"
|
||||
|
||||
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
|
||||
case "${SELECTION}" in
|
||||
|
@ -29,6 +31,12 @@ case "${SELECTION}" in
|
|||
escrotum "${FILENAME}"
|
||||
;;
|
||||
"2")
|
||||
escrotum -C "${FILENAME}"
|
||||
;;
|
||||
"3")
|
||||
escrotum -s "${FILENAME}"
|
||||
;;
|
||||
"4")
|
||||
escrotum -C -s "${FILENAME}"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue