aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-07-06 18:38:47 -0300
committerEuAndreh <eu@euandre.org>2018-07-06 18:39:39 -0300
commitb3fcc602a9093aa49b71be4ef5f69d81bcfe79d4 (patch)
tree913f03be03e7376c7e53878da431b02b6d18149b
parentAdd NEXTCLOUD env var (diff)
downloaddotfiles-b3fcc602a9093aa49b71be4ef5f69d81bcfe79d4.tar.gz
dotfiles-b3fcc602a9093aa49b71be4ef5f69d81bcfe79d4.tar.xz
Add xdg.sh bash file to start routine
-rw-r--r--bash/bashrc.sh1
-rw-r--r--bash/xdg.sh15
2 files changed, 16 insertions, 0 deletions
diff --git a/bash/bashrc.sh b/bash/bashrc.sh
index 319220d..177311f 100644
--- a/bash/bashrc.sh
+++ b/bash/bashrc.sh
@@ -16,6 +16,7 @@ source $DOTFILES/bash/facepalm/rotten-apple.sh
source $DOTFILES/bash/npm.sh
source $DOTFILES/bash/x.sh
source $DOTFILES/encrypted/env.sh
+source $DOTFILES/bash/xdg.sh
set -h
source ~/dev/nu/nucli/nu.bashcompletion
diff --git a/bash/xdg.sh b/bash/xdg.sh
new file mode 100644
index 0000000..ca8ee57
--- /dev/null
+++ b/bash/xdg.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+mkdir -p ~/.local/share/applications/
+
+cat << EOF > ~/.local/share/applications/evince-andreh.desktop
+[Desktop Entry]
+Type=Application
+Name=evince
+Comment=Evince PDF viewer
+Terminal=false
+Exec=evince
+Categories=Network;WebBrowserEOF
+EOF
+
+xdg-mime default evince-andreh.desktop application/pdf