diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-10-23 23:19:42 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-10-23 23:19:42 +0200 |
| commit | 1ec940dbdb2eaf26ceda1ab53fdb8e4f26540a83 (patch) | |
| tree | ea5afe370dfbd5fa99cc40f0a64e1c879cfe5c0f | |
| parent | 84c26706d306f2b2b5f5534a91147df893be7854 (diff) | |
| download | scripts-1ec940dbdb2eaf26ceda1ab53fdb8e4f26540a83.tar.gz scripts-1ec940dbdb2eaf26ceda1ab53fdb8e4f26540a83.zip | |
added netsurf wrapper for opening html file
| -rw-r--r-- | Makefile | 1 | ||||
| -rwxr-xr-x | netsurf-wrapper-file | 9 |
2 files changed, 10 insertions, 0 deletions
| @@ -16,6 +16,7 @@ SCRIPTS = addressgrep \ | |||
| 16 | dunst-toggle \ | 16 | dunst-toggle \ |
| 17 | mail-checknow \ | 17 | mail-checknow \ |
| 18 | mail-compose \ | 18 | mail-compose \ |
| 19 | netsurf-wrapper-file \ | ||
| 19 | notify-battery \ | 20 | notify-battery \ |
| 20 | notify-time \ | 21 | notify-time \ |
| 21 | open-file \ | 22 | open-file \ |
diff --git a/netsurf-wrapper-file b/netsurf-wrapper-file new file mode 100755 index 0000000..1fc9ea0 --- /dev/null +++ b/netsurf-wrapper-file | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # When using netsurf to open a local file, if the file does not have a proper | ||
| 4 | # extension it is not interpreted as html. This wrapper script fixes this. | ||
| 5 | # Requires: netsurf | ||
| 6 | |||
| 7 | cp "$1" "$1.html" | ||
| 8 | netsurf "$1.html" | ||
| 9 | rm "$1.html" | ||
