dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1acd5c621883143c6ae8d47bfb95937f4850844b
parent b74f98ede6fa6aa4bb03fd7775be5e35f790d7e9
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 12 Mar 2019 21:20:17 -0400

mimeapps cleanup; rss added

Diffstat:
D.local/share/applications/feh.desktop | 4----
D.local/share/applications/gif.desktop | 4----
A.local/share/applications/img.desktop | 4++++
A.local/share/applications/mail.desktop | 4++++
D.local/share/applications/mutt.desktop | 4----
A.local/share/applications/pdf.desktop | 4++++
A.local/share/applications/rss.desktop | 4++++
D.local/share/applications/sxiv.desktop | 4----
A.local/share/applications/text.desktop | 4++++
A.local/share/applications/torrent.desktop | 4++++
D.local/share/applications/transmission-remote.desktop | 4----
D.local/share/applications/vim.desktop | 4----
D.local/share/applications/zathura.desktop | 4----
A.scripts/tools/rssadd | 9+++++++++
14 files changed, 33 insertions(+), 28 deletions(-)

diff --git a/.local/share/applications/feh.desktop b/.local/share/applications/feh.desktop @@ -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 @@ -1,4 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Animated gif handler -Exec=/usr/bin/mpv --loop %u diff --git a/.local/share/applications/img.desktop b/.local/share/applications/img.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Image viewer +Exec=/usr/bin/sxiv -a %u diff --git a/.local/share/applications/mail.desktop b/.local/share/applications/mail.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Mail +Exec=/usr/local/bin/st -e neomutt %u diff --git a/.local/share/applications/mutt.desktop b/.local/share/applications/mutt.desktop @@ -1,4 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Neomutt Mail -Exec=/usr/local/bin/st -e neomutt %u diff --git a/.local/share/applications/pdf.desktop b/.local/share/applications/pdf.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=PDF reader +Exec=/usr/bin/zathura %u diff --git a/.local/share/applications/rss.desktop 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/sxiv.desktop b/.local/share/applications/sxiv.desktop @@ -1,4 +0,0 @@ -[Desktop Entry] -Type=Application -Name=sxiv image viewer -Exec=/usr/bin/sxiv -a %u diff --git a/.local/share/applications/text.desktop b/.local/share/applications/text.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Text editor +Exec=/usr/local/bin/st -e nvim %u diff --git a/.local/share/applications/torrent.desktop b/.local/share/applications/torrent.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Torrent +Exec=/usr/bin/env transadd %U diff --git a/.local/share/applications/transmission-remote.desktop b/.local/share/applications/transmission-remote.desktop @@ -1,4 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Transmission Addition -Exec=/usr/bin/env transadd %U diff --git a/.local/share/applications/vim.desktop b/.local/share/applications/vim.desktop @@ -1,4 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Neovim -Exec=/usr/local/bin/st -e nvim %u diff --git a/.local/share/applications/zathura.desktop b/.local/share/applications/zathura.desktop @@ -1,4 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Zathura PDF reader -Exec=/usr/bin/zathura %u diff --git a/.scripts/tools/rssadd 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