Skip to content

Instantly share code, notes, and snippets.

@bibstha
Last active September 5, 2020 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bibstha/ff3bd3d845d796d48bef2d04b0328d74 to your computer and use it in GitHub Desktop.
Save bibstha/ff3bd3d845d796d48bef2d04b0328d74 to your computer and use it in GitHub Desktop.
Manjaro I3 Installation Notes

Install notes for Manjaro

  1. Install broadcom-wl-dkms to get 5G. Default installed kernel linux56 didn't have kernel headers to install the dkms module. So had to upgrade to new kernel.
sudo mhwd -i linux58
sudo pacman -S linux58-headers
sudo pacman -S broadcom-wl-dkms
  1. Disable conky on ~/.i3/config
  2. Disable CAPS lock by creating ~/.Xmodmap
clear Lock
keysym Caps_Lock = Escape
  1. Install neovim install of vim
sudo pacman -R vim vim-runtime
sudo pacman -S neovim
sudo ln -sv /usr/bin/nvim /usr/bin/vim
  1. Grub - disable quiet and show grub menu Modify /etc/default/grub and change hidden => menu, remove quiet from command line options sudo update-grub

  2. Reverse Scroll Modify /etc/X11/xorg.conf.d/30-touchpad.conf

Option "Natural Scrolling" "true"

Also natural scroll for mouse scroll like in OS X, create a new file /etc/X11/xorg.conf.d/31-mouse.conf

Section "InputClass"
    Identifier "Mouse"
    Driver "libinput"
    MatchIsPointer "on"
    Option "Natural Scrolling" "true"
EndSection
  1. Install spotify with flatpak
sudo pacman -S flatpak pulseaudio pulseaudio-alsa
flatpak install spotify
flatpak run com.spotify.Client
  1. Disable clipit In my old Macbook Pro, copy paste works without it and disabling it saves some battery.

  2. Xclip for copy pasing from terminal

sudo pacman -S xclip
echo Something | xclip
sudo ln -sv /usr/bin/xclip /usr/bin/pbcopy

Now middleclick will paste it. echo Something | xclip -selection clipboard will put in the main clipboard for Ctrl-V. The pbcopy part is purely to simulate what is available in mac.

  1. arandr to configure external monitor and resolution
sudo pacman -S arandr

Starting arandr will allow generating a script to save. It can also be configured with the following script, which is generated by arandr.

#!/bin/sh
xrandr --output LVDS1 --mode 1280x800 --pos 0x0 --rotate normal --output DP1 --off --output DP2 --off --output DP3 --off --output HDMI1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal --output HDMI2 --off --output HDMI3 --off --output VGA1 --off --output VIRTUAL1 --off
  1. Of the many different fonts available, noto-fonts seems like the best
sudo pacman -S noto-fonts

And create this file in your home folder ~/.config/fontconfig/fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <!-- base sans, serif, mono fonts -->
  <alias>
    <family>sans-serif</family>
    <prefer><family>Noto Sans</family></prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer><family>Noto Serif</family></prefer>
  </alias>
  <alias>
    <family>sans</family>
    <prefer><family>Noto Sans</family></prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer><family>Noto Sans Mono</family></prefer>
  </alias>
  <!-- Aliases for commonly used MS fonts. -->
  <match>
    <test name="family"><string>Arial</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Sans</string>
    </edit>
  </match>
  <match>
    <test name="family"><string>Helvetica</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Sans</string>
    </edit>
  </match>
  <match>
    <test name="family"><string>Verdana</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Sans</string>
    </edit>
  </match>
  <match>
    <test name="family"><string>Tahoma</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Sans</string>
    </edit>
  </match>
  <match>
    <!-- Insert joke here -->
    <test name="family"><string>Comic Sans MS</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Sans</string>
    </edit>
  </match>
  <match>
    <test name="family"><string>Times New Roman</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Serif</string>
    </edit>
  </match>
  <match>
    <test name="family"><string>Times</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Serif</string>
    </edit>
  </match>
  <match>
    <test name="family"><string>Courier New</string></test>
    <edit name="family" mode="assign" binding="strong">
      <string>Noto Sans Mono</string>
    </edit>
  </match>
</fontconfig>

Configure kitty to use font-size 11 by changing ~/.config/kitty/kitty.conf

  1. Make keyboard repeat keys faster. Add this to the beginning of ~/.xinitrc
xset r rate 200 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment