aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-07-28 10:21:56 -0300
committerEuAndreh <eu@euandre.org>2018-07-28 10:21:56 -0300
commit2e6c4cb376fe159c574ca51bc9eec8967bf585a2 (patch)
tree11c73fd476d50896f7dd54e139e3bef7623be06a /bash
parentRemove pin-recover.sh (diff)
downloaddotfiles-2e6c4cb376fe159c574ca51bc9eec8967bf585a2.tar.gz
dotfiles-2e6c4cb376fe159c574ca51bc9eec8967bf585a2.tar.xz
Configure default applications for video and HTML files
Diffstat (limited to 'bash')
-rw-r--r--bash/symlinks.sh4
-rw-r--r--bash/x.sh8
2 files changed, 12 insertions, 0 deletions
diff --git a/bash/symlinks.sh b/bash/symlinks.sh
index 9683e67..a6777a9 100644
--- a/bash/symlinks.sh
+++ b/bash/symlinks.sh
@@ -31,6 +31,10 @@ ln -fs $DOTFILES/tmux/tmux.conf ~/.tmux.conf
ln -fs $DOTFILES/tmux/tmux-macos.conf ~/.tmux-macos.conf
ln -fs $DOTFILES/tmux/tmux-gnu-linux.conf ~/.tmux-gnu-linux.conf
+## NixOS
+ln -fs $DOTFILES/nixos/evince.destkop ~/.local/share/applications/evince.desktop
+ln -fs $DOTFILES/nixos/firefox.destkop ~/.local/share/applications/firefox.desktop
+
## Emacs
mkdir -p $HOME/.emacs.d/private/layers/
ln -fs $DOTFILES/spacemacs.el ~/.spacemacs
diff --git a/bash/x.sh b/bash/x.sh
index 85cb09c..4b43506 100644
--- a/bash/x.sh
+++ b/bash/x.sh
@@ -3,4 +3,12 @@
isLinux && {
xmodmap ~/.Xmodmap
xset r rate 250 50
+
+ xdg-mime default evince.desktop application/pdf
+ xdg-mime default vlc.desktop video/mp4
+ xdg-mime default vlc.desktop video/webm
+
+ xdg-settings set default-web-browser firefox.desktop
+ xdg-mime default firefox.desktop text/html
+ xdg-mime default firefox.desktop text/xml
}