aboutsummaryrefslogtreecommitdiff
path: root/bash/x.sh
blob: 0759fc2d8454f49fa3fe37ea962eacd46bd317dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

isLinux && {
  xmodmap ~/.Xmodmap
  xset r rate 250 50

  # query with: xdg-mime query filetype <file>
  xdg-mime default evince.desktop application/pdf
  xdg-mime default vlc.desktop video/mp4
  xdg-mime default vlc.desktop video/webm
  xdg-mime default vlc.desktop video/x-matroska
  xdg-mime default vlc.desktop audio/mpeg
  xdg-mime default vlc.desktop audio/x-flac

  xdg-settings set default-web-browser firefox.desktop
  xdg-mime default firefox.desktop text/html
  xdg-mime default firefox.desktop text/xml
}