Add mimeapps.list
Thanks Luke Smith!
This commit is contained in:
parent
5dcb6fd7b7
commit
7edfb0edda
17
.config/mimeapps.list
Normal file
17
.config/mimeapps.list
Normal file
@ -0,0 +1,17 @@
|
||||
[Default Applications]
|
||||
|
||||
# Author: Luke Smith
|
||||
|
||||
text/x-shellscript=text.desktop;
|
||||
x-scheme-handler/magnet=torrent.desktop;
|
||||
application/x-bittorrent=torrent.desktop;
|
||||
x-scheme-handler/mailto=mail.desktop;
|
||||
text/plain=text.desktop;
|
||||
application/postscript=pdf.desktop;
|
||||
application/pdf=pdf.desktop;
|
||||
image/png=img.desktop;
|
||||
image/jpeg=img.desktop;
|
||||
image/gif=img.desktop;
|
||||
application/rss+xml=rss.desktop
|
||||
video/x-matroska=video.desktop
|
||||
inode/directory=file.desktop
|
10
.local/bin/scripts/rssadd
Executable file
10
.local/bin/scripts/rssadd
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
|
||||
notify-send "That doesn't look like a full URL." && exit
|
||||
RSSFILE="${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls"
|
||||
if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
|
||||
notify-send "You already have this RSS feed."
|
||||
else
|
||||
echo "$1" >> "$RSSFILE" && notify-send "RSS feed added."
|
||||
fi
|
4
.local/share/applications/file.desktop
Normal file
4
.local/share/applications/file.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=File Manager
|
||||
Exec=/usr/local/bin/st -e vifm %u
|
4
.local/share/applications/img.desktop
Normal file
4
.local/share/applications/img.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Image viewer
|
||||
Exec=/usr/bin/sxiv -a %u
|
4
.local/share/applications/mail.desktop
Normal file
4
.local/share/applications/mail.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Mail
|
||||
Exec=/usr/local/bin/st -e neomutt %u
|
4
.local/share/applications/pdf.desktop
Normal file
4
.local/share/applications/pdf.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=PDF reader
|
||||
Exec=/usr/bin/zathura %u
|
4
.local/share/applications/rss.desktop
Normal file
4
.local/share/applications/rss.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=RSS feed addition
|
||||
Exec=/usr/bin/env rssadd %U
|
4
.local/share/applications/text.desktop
Normal file
4
.local/share/applications/text.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Text editor
|
||||
Exec=/usr/local/bin/st -e nvim %u
|
4
.local/share/applications/torrent.desktop
Normal file
4
.local/share/applications/torrent.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Torrent
|
||||
Exec=/usr/bin/env torradd %U
|
Loading…
x
Reference in New Issue
Block a user