diff options
author | Yuchen Pei <id@ypei.org> | 2024-12-25 18:44:55 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2024-12-25 18:44:55 +1100 |
commit | e79129bb75b2a63f82a99678d777872f124156df (patch) | |
tree | 3ce1650a83902d749bf41a5c6a2d856d91338942 /misc | |
parent | 72a1687ff5ccf32c62dc765d8ba0f872acc61027 (diff) |
- emacs as web browser
- libfic download
- fix pdf-merge
Diffstat (limited to 'misc')
-rw-r--r-- | misc/.bashrc | 2 | ||||
-rw-r--r-- | misc/.config/mimeapps.list | 4 | ||||
-rw-r--r-- | misc/.local/share/applications/emacsclient-web.desktop | 20 |
3 files changed, 23 insertions, 3 deletions
diff --git a/misc/.bashrc b/misc/.bashrc index b425d61..814098d 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -280,7 +280,7 @@ gs-extract() { # ghostscript, merge files: gs-merge merged.pdf 1.pdf 2.pdf gs-merge() { - gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$* + gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$@" } # dptrp1 diff --git a/misc/.config/mimeapps.list b/misc/.config/mimeapps.list index e0b551f..413a9f5 100644 --- a/misc/.config/mimeapps.list +++ b/misc/.config/mimeapps.list @@ -36,8 +36,8 @@ video/quicktime=vlc.desktop video/x-msvideo=mpv.desktop x-scheme-handler/chrome=firefox.desktop x-scheme-handler/ftp=filezilla.desktop -x-scheme-handler/http=firefox.desktop -x-scheme-handler/https=firefox.desktop +x-scheme-handler/http=emacsclient-web.desktop +x-scheme-handler/https=emacsclient-web.desktop x-scheme-handler/mailto=emacsclient-mail.desktop x-scheme-handler/sgnl=signal-desktop.desktop x-scheme-handler/org-protocol=emacsclient-org-protocol.desktop diff --git a/misc/.local/share/applications/emacsclient-web.desktop b/misc/.local/share/applications/emacsclient-web.desktop new file mode 100644 index 0000000..5beb0f3 --- /dev/null +++ b/misc/.local/share/applications/emacsclient-web.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Categories=Network;Web; +Comment=GNU Emacs is an extensible, customizable text editor - and more +Exec=/usr/bin/emacsclient -n %u +Icon=emacs +Name=Emacs (Web Browser, Client) +MimeType=x-scheme-handler/http;x-scheme-handler/https; +NoDisplay=true +Terminal=false +Type=Application +Keywords=emacsclient; +Actions=new-window;new-instance; + +[Desktop Action new-window] +Name=New Window +Exec=/usr/bin/emacsclient --create-frame -n %u + +[Desktop Action new-instance] +Name=New Instance +Exec=emacs -f browse-url %u |