Skip to content

Instantly share code, notes, and snippets.

@itkrt2y

itkrt2y/manjaro-gnome.md

Last active Sep 23, 2020
Embed
What would you like to do?
Setup Manjaro Linux (Gnome)

Firewall

Open 'Firewall Configuration' app and enable firewall.

CPU undervolt

yay -S intel-undervolt
sudo vim /etc/intel-undevolt.conf
# CPU / CPU Cache => -90
# GPU => -30
sudo intel-undervolt apply
sudo systemctl enable intel-undervolt.service

Power management

https://wiki.archlinux.org/index.php/Dell_XPS_15_7590#Power_Management

# Check current variant
cat /sys/power/mem_sleep

# If s2idle is selected
sudo vim /etc/default/grub
## GRUB_CMDLINE_LINUX_DEFAULT="mem_sleep_default=deep"

sudo update-grub

prezto

https://github.com/sorin-ionescu/prezto

# .zpreztorc

# Append modules
zstyle ':prezto:load' pmodule \
  ... \
  'pacman' \
  'syntax-highlighting' \
  'git' \
  'docker'
  
# Modify theme
zstyle ':prezto:module:prompt' theme 'pure'

Update https://github.com/sorin-ionescu/prezto#updating

cd .zprezto/
git pull
git submodule update --init --recursive

Wayland

vim /etc/gdm/custom.conf
# Change WaylandEnable to true

Input method

# .pam_environment
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx

Default audio output

# Get output name
pacmd list-sinks | grep -e 'name:' -e 'index:'

vim /etc/pulse/default.pa
# Modify `set-default-sink output <name>`

Touchpad

Gestures

https://github.com/bulletmark/libinput-gestures

sudo pacman -Syu libinput-gestures
sudo gpasswd -a $USER input

Do logout / login

# ~/.config/libinput-gestures.conf
gesture swipe left 3   xdotool key alt+Right
gesture swipe right 3  xdotool key alt+Left
libinput-gestures-setup restart

Disable tap and drag

gsettings set org.gnome.desktop.peripherals.touchpad tap-and-drag false                         

Keyboard Shortcut

  • Bring gnome-shell to the top of favorite
  • cmd+l : lock screen => systemctl suspend

Font

Show emoji

https://github.com/googlefonts/noto-emoji/issues/36#issuecomment-343655365

sudo pacman -S noto-fonts-emoji

Create a file /etc/fonts/conf.d/50-noto-color-emoji.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <match target="scan">
    <test name="family">
      <string>Noto Color Emoji</string>
    </test>
    <edit name="scalable" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="pixelsize" mode="assign">
      <double>18</double>
    </edit>
  </match>

  <match>
    <test name="family"><string>sans-serif</string></test>
    <edit name="family" mode="prepend" binding="weak">
      <string>Noto Color Emoji</string>
    </edit>
  </match>

  <match>
    <test name="family"><string>serif</string></test>
    <edit name="family" mode="prepend" binding="weak">
      <string>Noto Color Emoji</string>
    </edit>
  </match>

  <match>
    <test name="family"><string>Apple Color Emoji</string></test>
    <edit name="family" mode="prepend" binding="strong">
      <string>Noto Color Emoji</string>
    </edit>
  </match>

</fontconfig>
fc-cache -f -v # no need to run this command...?

Node.js

Global installation

https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

install

sudo pacman -Syu npm

# Setting up the global installation

npm i -g n
sudo n latest
sudo pacman -Rsc npm

docker

Post installation step

https://docs.docker.com/install/linux/linux-postinstall/

zsh completion

curl -fLo ~/.zprezto/modules/completion/external/src/_docker https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker
curl -fLo ~/.zprezto/modules/completion/external/src/_docker-compose https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose
compinit
sudo pacman -Syyu
sudo pacman -S \
base-devel \
docker \
docker-compose \
fcitx-configtool \
fcitx-im \
fcitx-mozc \
git \
hub \
libinput-gestures \
noto-fonts \
noto-fonts-cjk \
noto-fonts-emoji \
pulseaudio \
tldr \
tig \
vim \
yay \
zsh
yay -S \
google-chrome \
ghq \
peco \
slack-desktop \
visual-studio-code-bin
sudo systemctl enable docker
@itkrt2y

This comment has been minimized.

Copy link
Owner Author

@itkrt2y itkrt2y commented Jun 21, 2020

preztoの代わりにstarshipもよさそう
https://starship.rs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.