[screenshot] improved screenshot script
This commit is contained in:
parent
2196c2dd7c
commit
3416fccc5f
@ -8,9 +8,9 @@ satty="satty --filename - --fullscreen --output-filename ~/Pictures/Screenshots/
|
|||||||
|
|
||||||
# buttons
|
# buttons
|
||||||
area="🖥️ Capture area"
|
area="🖥️ Capture area"
|
||||||
infive="🖥️ Capture area in 5 seconds"
|
area_5="🖥️ Capture area in 5 seconds"
|
||||||
inten="🖥️ Capture area in 10 seconds"
|
|
||||||
screen="🖥️ Capture whole screen"
|
screen="🖥️ Capture whole screen"
|
||||||
|
screen_5="🖥️ Capture whole screen in 10 seconds"
|
||||||
window="🖥️ Capture active window"
|
window="🖥️ Capture active window"
|
||||||
|
|
||||||
|
|
||||||
@ -19,11 +19,12 @@ screenshot_area() {
|
|||||||
$grimblast save area - | $satty
|
$grimblast save area - | $satty
|
||||||
}
|
}
|
||||||
|
|
||||||
screenshot_window() {
|
screenshot_area_5() {
|
||||||
$grimblast save active - | $satty
|
sleep 5
|
||||||
|
$grimblast save area - | $satty
|
||||||
}
|
}
|
||||||
|
|
||||||
screenshot_full_now() {
|
screenshot_full() {
|
||||||
$grimblast save screen - | $satty
|
$grimblast save screen - | $satty
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,28 +33,27 @@ screenshot_full_5() {
|
|||||||
$grimblast save screen - | $satty
|
$grimblast save screen - | $satty
|
||||||
}
|
}
|
||||||
|
|
||||||
screenshot_full_10() {
|
screenshot_window() {
|
||||||
sleep 10
|
$grimblast save active - | $satty
|
||||||
$grimblast save screen - | $satty
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# start wofi
|
# start wofi
|
||||||
options="$area\n$infive\n$inten\n$screen\n$window"
|
options="$area\n$area_5\n$screen\n$screen_5\n$window"
|
||||||
chosen="$(echo -e "$options" | $wofi_command -p 'Say cheese ...' -dmenu --no-action --width=400 --height=302 -selected-row 0 --style=/home/simon/.dotfiles/apps/wofi/style.css)"
|
chosen="$(echo -e "$options" | $wofi_command -p 'Say cheese ...' -dmenu --no-action --width=400 --height=302 -selected-row 0 --style=/home/simon/.dotfiles/apps/wofi/style.css)"
|
||||||
sleep 1
|
sleep 1
|
||||||
case $chosen in
|
case $chosen in
|
||||||
$area)
|
$area)
|
||||||
screenshot_area
|
screenshot_area
|
||||||
;;
|
;;
|
||||||
$infive)
|
$area_5)
|
||||||
screenshot_full_5
|
screenshot_area_5
|
||||||
;;
|
|
||||||
$inten)
|
|
||||||
screenshot_full_10
|
|
||||||
;;
|
;;
|
||||||
$screen)
|
$screen)
|
||||||
screenshot_full_now
|
screenshot_full
|
||||||
|
;;
|
||||||
|
$screen_5)
|
||||||
|
screenshot_full_5
|
||||||
;;
|
;;
|
||||||
$window)
|
$window)
|
||||||
screenshot_window
|
screenshot_window
|
||||||
|
Reference in New Issue
Block a user