Skip to content

Instantly share code, notes, and snippets.

@s0u7a
Created December 29, 2024 08:54
Show Gist options
  • Save s0u7a/f5db01ee966bb9b150c7891d1abfe511 to your computer and use it in GitHub Desktop.
Save s0u7a/f5db01ee966bb9b150c7891d1abfe511 to your computer and use it in GitHub Desktop.
私のArchLinux設定

OS

CachyOS

use font

paru -S ttf-hackgen Change fonts.cfg

Package manager

Use paru or bauh

Desktop Environment

i3

Polybar

https://github.com/adi1090x/polybar-themes?tab=readme-ov-file use this

Japanese Input

paru -S fcitx5-im fcitx5-mozc-ut

Add to /etc/environment

GTK_IM_MODULE="fcitx"
QT_IM_MODULE="fcitx"
XMODIFIERS='@im=fcitx'

sudo reboot

Icon

paru -S tela-icon-theme

Apps

Web browser

Cachy Browser

Do not use Chromium

File Manager

Nautiles Full-featured,Fast,Rich

Discord

Use Vesktop

paru -S vesktop

Game

  • osu: paru -S osu-lazer
  • steam: Don't need,It depends on cachyos-gaming-meta

And Install CachyOS Gaming packages

Text editor

VSCode or zed or AstroNvim

paru -S vscode
paru -S zed

Media player

paru -S vlc

OBS

paru -S obs-studio

Wine

Need install CachyOS Gaming Packages

paru -S bottles

Proton Mail

paru -S proton-mail

How to play Minecraft

  1. paru -S prismlauncher

  2. paru -S jdk23-graalvm-ee-bin

  3. archlinux-java set java23-graalvm-ee

  4. echo '{"accounts": [{"entitlement": {"canPlayMinecraft": true,"ownsMinecraft": true},"type": "MSA"}],"formatVersion": 3}' > ~/.local/share/PrismLauncher/accounts.json

Terminal settings

zinit

Use Ghostty Catppucin Terminal Font: HackGen NF Zsh+Zinit+Starship

alias

  • un: Remove package using paru
  • in: Install package using paru
  • fucking&nigger: sudo

Add to .zshrc

# alias
alias un 'paru -R'
alias in 'paru -S'
alias fucking 'sudo'
alias nigger 'sudo'
alias maintenance 'echo "sudo権限を取得しています...";sudo -v;echo "更新します...";paru;flatpak update;echo "不要なパッケージを削除しています...";paru -Rns $(yay -Qdtq);echo "キャッシュをクリーンアップしています...";paru -Sc --noconfirm'

Security

Use Firewall

  1. sudo ufw enable

  2. paru -S gufw

Performance

Use Tuned paru -S tuned-bin sudo systemctl enable tuned sudo systemctl start tuned sudo tuned-adm throughput-performance sudo tuned-adm active Xanmod Kernel sudo pacman -S linux-cachyos-bore-lto systemdのconfを変えてxanmodで起動設定。 Install Gaming Packages CachyOS helloでbpftune,ananicy-cppを有効化 systemdサービスを極限まで減らす(stacer) IWDを使う(Networkmanagerの代わり、intel) firewalldを削除(UFWを入れている場合)

paru -S irqbalance memavaild earlyoom preload prelockd uresourced sudo systemctl disable systemd-oomd sudo systemctl enable irqbalance sudo systemctl enable memavaild sudo systemctl enable earlyoom sudo systemctl enable preload sudo systemctl enable prelockd sudo systemctl enable uresourced

chaotic-aur

pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com pacman-key --lsign-key 3056513887B78AEB pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' /etc/pacman.confに [chaotic-aur] Include = /etc/pacman.d/chaotic-mirrorlist を追加

起動時間の最適化

https://docs.redhat.com/ja/documentation/red_hat_enterprise_linux/9/html/using_systemd_unit_files_to_customize_and_optimize_your_system/optimizing-systemd-to-shorten-the-boot-time_working-with-systemd#proc_examining-system-boot-performance_optimizing-systemd-to-shorten-the-boot-time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment