qutebrowser: Make use of dotter for dir structure
Since we now use dotter we can simplify the dir structure for qutebrowser a lot. Everything dot-filed earlier can now reside in simple directories called config (for ~/.config/qutebrowser), data (for ~/.local/share/qutebrowser), and scripts (for ~/.local/bin) files.
This commit is contained in:
parent
dcde027a67
commit
8681d34946
49 changed files with 9 additions and 5 deletions
10
qutebrowser/data/userscripts/pagetopdf.sh
Executable file
10
qutebrowser/data/userscripts/pagetopdf.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#! /usr/bin/bash
|
||||
# Download current page as pdf file
|
||||
|
||||
# use title of current page / selected text as filename
|
||||
filename=${QUTE_SELECTED_TEXT:-$QUTE_TITLE}
|
||||
# revert to default name if nothing else is set; remove special chars
|
||||
filename=$(echo "${filename:-downloaded.pdf}" | sed 's/[<>,/]/_/g')
|
||||
|
||||
# print to pdf
|
||||
echo "print --pdf '$QUTE_DOWNLOAD_DIR/${1:-$filename}.pdf'" >>"$QUTE_FIFO"
|
||||
Loading…
Add table
Add a link
Reference in a new issue