Compare commits

...

3 Commits

Author SHA1 Message Date
lee2sman 69322462cd update README.md 2022-01-02 03:36:35 -05:00
lee2sman 2cc77090e8 removed bookmobile-gui.desktop 2022-01-02 03:36:30 -05:00
lee2sman 1c6ce42ad3 add bookmobile-gui 2022-01-02 03:13:46 -05:00
2 changed files with 40 additions and 0 deletions

View File

@ -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.

32
bookmobile-gui Executable file
View File

@ -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