mimeapps cleanup; rss added
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=feh image viewer
|
||||
Exec=/usr/bin/feh %u
|
||||
@@ -1,4 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Animated gif handler
|
||||
Exec=/usr/bin/mpv --loop %u
|
||||
@@ -1,4 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=sxiv image viewer
|
||||
Name=Image viewer
|
||||
Exec=/usr/bin/sxiv -a %u
|
||||
@@ -1,4 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Neomutt Mail
|
||||
Name=Mail
|
||||
Exec=/usr/local/bin/st -e neomutt %u
|
||||
@@ -1,4 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Zathura PDF reader
|
||||
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
|
||||
@@ -1,4 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Neovim
|
||||
Name=Text editor
|
||||
Exec=/usr/local/bin/st -e nvim %u
|
||||
@@ -1,4 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Transmission Addition
|
||||
Name=Torrent
|
||||
Exec=/usr/bin/env transadd %U
|
||||
9
.scripts/tools/rssadd
Executable file
9
.scripts/tools/rssadd
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user