summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-03-12 21:20:17 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-03-12 21:20:17 -0400
commit1acd5c621883143c6ae8d47bfb95937f4850844b (patch)
tree6d6663370a731af95dcac955db42fbbd5ba76332
parentb74f98ede6fa6aa4bb03fd7775be5e35f790d7e9 (diff)
downloadeibhear-1acd5c621883143c6ae8d47bfb95937f4850844b.tar.gz
eibhear-1acd5c621883143c6ae8d47bfb95937f4850844b.tar.zst
eibhear-1acd5c621883143c6ae8d47bfb95937f4850844b.zip
mimeapps cleanup; rss added
-rw-r--r--.local/share/applications/feh.desktop4
-rw-r--r--.local/share/applications/gif.desktop4
-rw-r--r--.local/share/applications/img.desktop (renamed from .local/share/applications/sxiv.desktop)2
-rw-r--r--.local/share/applications/mail.desktop (renamed from .local/share/applications/mutt.desktop)2
-rw-r--r--.local/share/applications/pdf.desktop (renamed from .local/share/applications/zathura.desktop)2
-rw-r--r--.local/share/applications/rss.desktop4
-rw-r--r--.local/share/applications/text.desktop (renamed from .local/share/applications/vim.desktop)2
-rw-r--r--.local/share/applications/torrent.desktop (renamed from .local/share/applications/transmission-remote.desktop)2
-rwxr-xr-x.scripts/tools/rssadd9
9 files changed, 18 insertions, 13 deletions
diff --git a/.local/share/applications/feh.desktop b/.local/share/applications/feh.desktop
deleted file mode 100644
index be3de36..0000000
--- a/.local/share/applications/feh.desktop
+++ /dev/null
@@ -1,4 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=feh image viewer
-Exec=/usr/bin/feh %u
diff --git a/.local/share/applications/gif.desktop b/.local/share/applications/gif.desktop
deleted file mode 100644
index 366fd94..0000000
--- a/.local/share/applications/gif.desktop
+++ /dev/null
@@ -1,4 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Animated gif handler
-Exec=/usr/bin/mpv --loop %u
diff --git a/.local/share/applications/sxiv.desktop b/.local/share/applications/img.desktop
index a9ae0b6..d1582a5 100644
--- a/.local/share/applications/sxiv.desktop
+++ b/.local/share/applications/img.desktop
@@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
-Name=sxiv image viewer
+Name=Image viewer
Exec=/usr/bin/sxiv -a %u
diff --git a/.local/share/applications/mutt.desktop b/.local/share/applications/mail.desktop
index b30466e..d24aea2 100644
--- a/.local/share/applications/mutt.desktop
+++ b/.local/share/applications/mail.desktop
@@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
-Name=Neomutt Mail
+Name=Mail
Exec=/usr/local/bin/st -e neomutt %u
diff --git a/.local/share/applications/zathura.desktop b/.local/share/applications/pdf.desktop
index 21e8c2b..8c38677 100644
--- a/.local/share/applications/zathura.desktop
+++ b/.local/share/applications/pdf.desktop
@@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
-Name=Zathura PDF reader
+Name=PDF reader
Exec=/usr/bin/zathura %u
diff --git a/.local/share/applications/rss.desktop b/.local/share/applications/rss.desktop
new file mode 100644
index 0000000..6fafc4f
--- /dev/null
+++ b/.local/share/applications/rss.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Application
+Name=RSS feed addition
+Exec=/usr/bin/env rssadd %U
diff --git a/.local/share/applications/vim.desktop b/.local/share/applications/text.desktop
index aa2284e..41ee05f 100644
--- a/.local/share/applications/vim.desktop
+++ b/.local/share/applications/text.desktop
@@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
-Name=Neovim
+Name=Text editor
Exec=/usr/local/bin/st -e nvim %u
diff --git a/.local/share/applications/transmission-remote.desktop b/.local/share/applications/torrent.desktop
index b48e73b..f6d28d9 100644
--- a/.local/share/applications/transmission-remote.desktop
+++ b/.local/share/applications/torrent.desktop
@@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
-Name=Transmission Addition
+Name=Torrent
Exec=/usr/bin/env transadd %U
diff --git a/.scripts/tools/rssadd b/.scripts/tools/rssadd
new file mode 100755
index 0000000..e90dcf2
--- /dev/null
+++ b/.scripts/tools/rssadd
@@ -0,0 +1,9 @@
+#!/bin/sh
+! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
+ notify-send -i "$PIX/rss.svg" "That doesn't look like a full URL." && exit
+RSSFILE="$HOME/.config/newsboat/urls"
+if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
+ notify-send -i "$PIX/rss.svg" "You already have this RSS feed."
+else
+ echo "$1" >> "$RSSFILE" && notify-send -i "$PIX/rss.svg" "RSS feed added."
+fi