nie wiem co zmieniałem, a dużo tego było
This commit is contained in:
24
.config/rofi/scripts/scrotmenu.sh
Executable file
24
.config/rofi/scripts/scrotmenu.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
rofi_command="rofi"
|
||||
|
||||
### Options ###
|
||||
screen=""
|
||||
area=""
|
||||
window=""
|
||||
# Variable passed to rofi
|
||||
options="$screen\n$area\n$window"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
|
||||
case $chosen in
|
||||
$screen)
|
||||
sleep 1; scrot
|
||||
;;
|
||||
$area)
|
||||
scrot -s
|
||||
;;
|
||||
$window)
|
||||
sleep 1; scrot -u
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user