repos/scripts

Simple scripts that I made for my personal computer to map keys, make bluetooth work, brightness keys, etc.
Commits Files Refs README LICENSE
emojisupport (49 lines)
   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 powerline-fonts)"
   9 # 2 - add font config to /etc/fonts/conf.d/01-notosans.conf
  10 echo "<?xml version="1.0"?>
  11 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  12 <fontconfig>
  13  <alias>
  14    <family>sans-serif</family>
  15    <prefer>
  16      <family>Noto Sans</family>
  17      <family>Noto Color Emoji</family>
  18      <family>Noto Emoji</family>
  19      <family>DejaVu Sans</family>
  20    </prefer> 
  21  </alias>
  22 
  23  <alias>
  24    <family>serif</family>
  25    <prefer>
  26      <family>Noto Serif</family>
  27      <family>Noto Color Emoji</family>
  28      <family>Noto Emoji</family>
  29      <family>DejaVu Serif</family>
  30    </prefer>
  31  </alias>
  32 
  33  <alias>
  34   <family>monospace</family>
  35   <prefer>
  36     <family>Noto Mono</family>
  37     <family>Noto Color Emoji</family>
  38     <family>Noto Emoji</family>
  39     <family>DejaVu Sans Mono</family>
  40    </prefer>
  41  </alias>
  42 </fontconfig>
  43 
  44 " > /etc/fonts/local.conf
  45 # 3 - update font cache via fc-cache
  46 fc-cache
  47 echo "Noto Emoji Font installed! You may need to restart applications like chrome. If chrome displays no symbols or no letters, your default font contains emojis."
  48 echo "consider inconsolata regular"
  49