Skip to content

Instantly share code, notes, and snippets.

@itkrt2y
Last active December 11, 2023 07:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itkrt2y/53639efa431b89c31af329c4dc5f9ef9 to your computer and use it in GitHub Desktop.
Save itkrt2y/53639efa431b89c31af329c4dc5f9ef9 to your computer and use it in GitHub Desktop.
Setup Manjaro Linux (Gnome)
sudo pacman -Syu \
base-devel \
dconf-editor \
docker \
github-cli \
hub \
noto-fonts \
noto-fonts-cjk \
noto-fonts-emoji \
neovim \
yay \
manjaro-pipewire \
aws-cli-v2 \
fcitx5-im \
fcitx5-mozc \
intellij-idea-community-edition \
iwd
yay -Syu \
google-chrome \
ghq \
peco \
slack-desktop \
visual-studio-code-bin \
tldr \
tig \
etcher-bin \
rbenv ruby-build
sudo systemctl enable docker

Firewall

Open 'Firewall Configuration' app and enable firewall.

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

Use iwd for wireless daemon

# /etc/NetworkManager/conf.d/wifi_backend.conf

[device]
wifi.backend=iwd

Font

Fix Chinese fonts to Japanese fonts

https://qiita.com/keith_campbell/items/3c3e2752dc44a58709b0

Show emoji

googlefonts/noto-emoji#36 (comment)

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

Fix chrome

# ~/.config/chrome-flags.conf
--gtk-version=4
  • chrome://flags/#enable-webrtc-pipewire-capturer
  • chrome://flags/#ozone-platform-hint

Fix default application for directory

Apply below to open nautilus if you open vscode with xdg-open .

# /usr/share/applications/mimeinfo.cache
- inode/directory=code.desktop;org.gnome.Nautilus.desktop;ranger.desktop;
+ inode/directory=org.gnome.Nautilus.desktop;code.desktop;ranger.desktop;

Open dock app with Super+number

https://askubuntu.com/a/1295037

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
@itkrt2y
Copy link
Author

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