Compare commits
3 Commits
f7f89274cb
...
69322462cd
Author | SHA1 | Date |
---|---|---|
lee2sman | 69322462cd | |
lee2sman | 2cc77090e8 | |
lee2sman | 1c6ce42ad3 |
|
@ -74,6 +74,14 @@ Options:
|
|||
|
||||
The themes subdirectory contains several custom simple themes for rendering a nice reader view. You can edit or add themes here and they will display in the usage help.
|
||||
|
||||
### GUI
|
||||
|
||||
A simple yad-based GUI application is included as well.
|
||||
|
||||
To install on Debian/*buntu-based systems: ```apt install yad```.
|
||||
|
||||
It can be launched from the command line with ```./bookmobile-gui``` or you can create an [executable](https://askubuntu.com/questions/64222/how-can-i-create-launchers-on-my-desktop/66918#66918).
|
||||
|
||||
### Alternatives
|
||||
|
||||
Currently there are a number of CLI programs that are ports of the Readability project. These may serve your needs better.
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env fish
|
||||
#gui wrapper around bookmobile, using yad
|
||||
|
||||
if not command -sq yad
|
||||
echo "Bookmobile-GUI requires yad but it's not installed. Exiting."
|
||||
exit 1
|
||||
end
|
||||
|
||||
set gui (yad --width=400 --title="" --text="Bookmobile: Download articles for offline reading as simple html, themed html, epub or markdown." \
|
||||
--title="Bookmobile" \
|
||||
--form --separator='\t' \
|
||||
--field="URL" \
|
||||
--field="Save as Filename" \
|
||||
--field="Export to format":CB \
|
||||
"" "" 'html!reader!epub!markdown' \
|
||||
--field="Theme (reader mode only)":CB \
|
||||
'medium!github!gmi!now!pandoc' \
|
||||
--field="Output location":DIR \
|
||||
--separator="|" )
|
||||
|
||||
set gui (string split "|" $gui)
|
||||
set url $gui[1]
|
||||
set name $gui[2]
|
||||
set format $gui[3]
|
||||
set theme $gui[4]
|
||||
set output $gui[5]
|
||||
|
||||
if test -n "$name"
|
||||
./bookmobile $url -f $format -t $theme -n $name -o $output
|
||||
else
|
||||
./bookmobile $url -f $format -t $theme -o $output
|
||||
end
|
Loading…
Reference in New Issue