diff options
-rw-r--r-- | bash/bashrc.sh | 1 | ||||
-rw-r--r-- | bash/xdg.sh | 15 |
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 |