aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
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 9683e674..a6777a97 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 85cb09c5..4b435062 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
}