From b3fcc602a9093aa49b71be4ef5f69d81bcfe79d4 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 6 Jul 2018 18:38:47 -0300 Subject: Add xdg.sh bash file to start routine --- bash/bashrc.sh | 1 + bash/xdg.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 bash/xdg.sh 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 -- cgit v1.2.3