aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-12-06 22:04:04 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-12-06 22:04:04 +0100
commitc2f54cbb339434ac292d6422c94c8697c62cfcd2 (patch)
treeb172f0900b7af0a7cca453ca55344eaf22c5b629
parent6443f57583e2eafaafeb934479c650036acc85b0 (diff)
downloaddotfiles-c2f54cbb339434ac292d6422c94c8697c62cfcd2.tar.gz
dotfiles-c2f54cbb339434ac292d6422c94c8697c62cfcd2.tar.bz2
dotfiles-c2f54cbb339434ac292d6422c94c8697c62cfcd2.zip
Added xdg applications
-rw-r--r--.newsboat/config6
-rw-r--r--applications/mutt.desktop4
-rw-r--r--applications/newsboat.desktop4
-rw-r--r--applications/sxiv.desktop4
-rw-r--r--applications/zathura.desktop4
l---------bin/bin1
-rwxr-xr-xinstall6
-rw-r--r--mimeapps.list25
8 files changed, 53 insertions, 1 deletions
diff --git a/.newsboat/config b/.newsboat/config
index 5361216..2818ca4 100644
--- a/.newsboat/config
+++ b/.newsboat/config
@@ -17,4 +17,8 @@ color listfocus_unread black cyan
color info default black
color article default default
-macro v set browser "youtube-dl -o - %u | mpv -"; open-in-browser; set browser chromium
+highlight article "^(Title):.*$" blue default
+highlight article "https?://[^ ]+" red default
+highlight article "\\[image\\ [0-9]+\\]" green default
+
+macro v set browser "youtube-dl --cookies /home/charles/youtube.com_cookies.txt -o - %u | mpv -"; open-in-browser; set browser chromium
diff --git a/applications/mutt.desktop b/applications/mutt.desktop
new file mode 100644
index 0000000..24d0a48
--- /dev/null
+++ b/applications/mutt.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Application
+Name=Mail client
+Exec=/usr/bin/mutt %u
diff --git a/applications/newsboat.desktop b/applications/newsboat.desktop
new file mode 100644
index 0000000..609bb5a
--- /dev/null
+++ b/applications/newsboat.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Application
+Name=RSS client
+Exec=/usr/bin/newsboat %u
diff --git a/applications/sxiv.desktop b/applications/sxiv.desktop
new file mode 100644
index 0000000..0db2053
--- /dev/null
+++ b/applications/sxiv.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Application
+Name=Image viewer
+Exec=/usr/local/bin/sxiv %u
diff --git a/applications/zathura.desktop b/applications/zathura.desktop
new file mode 100644
index 0000000..8c38677
--- /dev/null
+++ b/applications/zathura.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Application
+Name=PDF reader
+Exec=/usr/bin/zathura %u
diff --git a/bin/bin b/bin/bin
new file mode 120000
index 0000000..4f8476b
--- /dev/null
+++ b/bin/bin
@@ -0,0 +1 @@
+/home/charles/git/dotfiles/bin \ No newline at end of file
diff --git a/install b/install
index 013b9bb..ed98aed 100755
--- a/install
+++ b/install
@@ -38,6 +38,12 @@ create_dotfile_link_same .zprofile
mkdir -p "$HOME/.config"
create_dotfile_link redshift.conf .config/redshift.conf
+create_dotfile_link mimeapps.list .config/mimeapps.list
+mkdir -p "$HOME/.local/share/applications"
+create_dotfile_link applications/sxiv.desktop .data/applications/sxiv.desktop
+create_dotfile_link applications/mutt.desktop .data/applications/mutt.desktop
+create_dotfile_link applications/zathura.desktop .data/applications/zathura.desktop
+create_dotfile_link applications/newsboat.desktop .data/applications/newsboat.desktop
mkdir -p "$HOME/.config/dunst"
create_dotfile_link dunst/dunstrc .config/dunst/dunstrc
diff --git a/mimeapps.list b/mimeapps.list
new file mode 100644
index 0000000..49a184b
--- /dev/null
+++ b/mimeapps.list
@@ -0,0 +1,25 @@
+[Default Applications]
+
+# from: https://git.lukesmith.xyz/dotfiles/file/.config/mimeapps.list
+
+# xdg-open will use these settings to determine how to open filetypes.
+# These .desktop entries can also be seen and changed in ~/.local/share/applications/
+
+# 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=zathura.desktop;
+application/pdf=zathura.desktop;
+
+image/png=sxiv.desktop;
+image/jpeg=sxiv.desktop;
+image/gif=sxiv.desktop;
+image/svg+xml=sxiv.desktop;
+
+application/rss+xml=newsboat.desktop
+
+video/x-matroska=mpv.desktop
+# x-scheme-handler/lbry=lbry.desktop
+# inode/directory=file.desktop