scripts

scripts to make my pc work
Index Commits Files Refs
emojisupport (1403B)
   1 #!/bin/sh
   2 set -e
   3 if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
   4 echo "Setting up Noto Emoji font..."
   5 # 1 - install  noto-fonts-emoji package
   6 pacman -S noto-fonts-emoji --needed
   7 # pacman -S powerline-fonts --needed
   8 echo "Recommended system font: inconsolata regular (ttf-inconsolata or \
   9     powerline-fonts)"
  10 # 2 - add font config to /etc/fonts/conf.d/01-notosans.conf
  11 echo "<?xml version="1.0"?>
  12 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  13 <fontconfig>
  14  <alias>
  15    <family>sans-serif</family>
  16    <prefer>
  17      <family>Noto Sans</family>
  18      <family>Noto Color Emoji</family>
  19      <family>Noto Emoji</family>
  20      <family>DejaVu Sans</family>
  21    </prefer> 
  22  </alias>
  23 
  24  <alias>
  25    <family>serif</family>
  26    <prefer>
  27      <family>Noto Serif</family>
  28      <family>Noto Color Emoji</family>
  29      <family>Noto Emoji</family>
  30      <family>DejaVu Serif</family>
  31    </prefer>
  32  </alias>
  33 
  34  <alias>
  35   <family>monospace</family>
  36   <prefer>
  37     <family>Noto Mono</family>
  38     <family>Noto Color Emoji</family>
  39     <family>Noto Emoji</family>
  40     <family>DejaVu Sans Mono</family>
  41    </prefer>
  42  </alias>
  43 </fontconfig>
  44 
  45 " > /etc/fonts/local.conf
  46 # 3 - update font cache via fc-cache
  47 fc-cache
  48 echo "Noto Emoji Font installed! You may need to restart applications like \
  49     chrome. If chrome displays no symbols or no letters, your default font \
  50     contains emojis."
  51 echo "consider inconsolata regular"
  52