Skip to content

Instantly share code, notes, and snippets.

@rafaelrenanpacheco
Last active July 13, 2023 22:48
Show Gist options
  • Save rafaelrenanpacheco/2f8c6ee406a921630981d12364754101 to your computer and use it in GitHub Desktop.
Save rafaelrenanpacheco/2f8c6ee406a921630981d12364754101 to your computer and use it in GitHub Desktop.
manjaro

Manjaro Post Install

Open Pamac

pamac-manager

Then open Preferences and set the following options:

  • General
    • Disable check for updates
  • Cache
    • Number of versions: 0
    • Clear cache

Enable color for pacman output

sudo nano /etc/pacman.conf # uncomment Color settings

Configure global mirror

sudo pacman-mirrors -di # Global: https://mirrors.manjaro.org/repo/
sudo pacman -Syyu

Install common packages

sudo pacman -S yay base-devel --needed
yay --answerdiff=None --answerclean=None --save
yay -S google-chrome bash-completion mlocate htop p7zip
yay -Rns gnome-weather lollypop firefox-gnome-theme-maia firefox

Install wireless drivers (optional)

# PCIe Wireless Adapter
yay -S broadcom-wl # choose repository based on kernel version

Install docker

yay -S docker
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo usermod -aG docker $USER
yay -S docker-compose

Extra settings

echo vm.max_map_count=262144 | sudo tee -a /etc/sysctl.d/40-max-user-watches.conf
sudo sysctl --system

Then reboot

reboot

Install theme packages

yay -S arc-gtk-theme-git ttf-ubuntu-font-family powerline-fonts-git noto-fonts-emoji gnome-shell-extension-dash-to-dock

Enable extensions

  • Reload Gnome (Alt+F2 r)
  • Open Extensions
  • Enable global switch
  • Disable Pamac Updates Indicator
  • Enable Removable Drive Menu
  • Enable User Themes

Apply the theme and change some settings

  • Open gnome-tweaks
  • Appearance
    • Applications: Arc-Dark
    • Cursor: Xcursor-breeze
    • Icons: Papirus-Maia
    • Shell: Arc-Dark
  • Fonts
    • Interface: Ubuntu Regular 11
    • Document: Ubuntu Regular 11
    • Monospace: Ubuntu Mono derivative Powerline Regular 12
    • Window title: Ubuntu Bold 11
    • Scaling Factor: 1.30 (4k display)
  • Top Bar
    • Weekday: enabled
  • Windows
    • Center New Windows: enabled

Install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Then logout and login again to enable ZSH as default terminal.

Install Spaceship theme

git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Edit ~/.zshrc and change the default theme to spaceship:

ZSH_THEME="spaceship"

And add at the end:

SPACESHIP_PROMPT_ORDER=(
  dir
  git
)

SPACESHIP_PROMPT_ADD_NEWLINE="false"

alias ls='ls --color=auto --group-directories-first'

Activate the new configurations with the following command:

source .zshrc

Change git settings

git config --global core.editor "nano"
git config --global pull.rebase true
git config --global push.default current
git config --global pager.branch false

Open gnome settings

gnome-control-center

Then configure the following options

  • Search: disabled
  • Sound: slide system sounds to mute
  • Power
    • Blank Screen: 15 minutes
    • Automatic Suspend: 1 hour on power / 30 minutes on battery
  • Mouse & Touchpad
    • Touchpad
      • Natural Scrolling: enabled
  • Keyboard
    • Input Sources
      • Portuguese (Brazil)
      • English (US, alt. intl.)
    • Keyboard Shortcuts
      • Home folder: win + e
      • Hide all normal windows: win + d
      • Switch windows: alt + tab
      • Toggle maximization state: win + up
      • Add new:
        • Name: terminal
        • Command: gnome-terminal
        • Shortcut: win + t
  • Region & Language
    • Formats: Brasil
  • Date & Time
    • Automatic Date & Time: enabled

Open terminal and configure a new profile

  • Add new profile named default
  • Set it as default profile
  • Delete manjaro profile
  • Configure default profile
    • Text
      • Initial terminal size: 160x40
      • Custom font: disabled
      • Terminal bell: disabled
    • Colors
      • Use colors from system theme
      • Palette
        • Built-in schemes: Tango
        • Show bold text in bright colors
    • Scrolling
      • Show scrollbar: disabled

Color calibration

https://www.photofriday.com/info/calibrate

LG 4k 27UL500

sudo modprobe i2c-dev
sudo ddcutil capabilities | grep "Feature: 10"
sudo ddcutil getvcp 10
sudo ddcutil setvcp 10 30

US Keyboard

echo 'GTK_IM_MODULE=cedilla' | sudo tee -a /etc/environment

Bluetooth Headset automatic switch between A2DP and HSP

sudo nano /etc/pulse/default.pa

# Find this line and change to:
load-module module-bluetooth-policy auto_switch=2

Clock configuration for dual boot

timedatectl set-local-rtc 1 --adjust-system-clock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment