Arch Linux
Packages
GRUB
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet cryptdevice=/dev/nvme0n1p2:cryptroot root=/dev/mapper/cryptroot"
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
Theme
yay -S grub-theme-tela-color-1080p-git
sudo cp -r /usr/share/grub/themes/tela-color-1080p /boot/grub/themes
sudo vim /etc/default/grub #GRUB_THEME="/boot/grub/themes/tela-color-1080p/theme.txt"
sudo grub-mkconfig -o /boot/grub/grub.cfg
Btrfs
- Compress existing files https://wiki.archlinux.org/title/Btrfs#Compression
btrfs filesystem defragment -r -v -czstd /
- View compression types and ratios
compsize -x /
cryptsetup
- Open
cryptsetup open /dev/sda1 cryptroot
- Mount
mount -t btrfs /dev/mapper/cryptroot /mnt
Dual boot
timedatectl set-local-rtc 1 --adjust-system-clock
sudo vim /etc/default/grub #GRUB_DISABLE_OS_PROBER=false
sudo grub-mkconfig -o /boot/grub/grub.cfg
Wayland
Questions?
- What is Wayland?
- What is XWayland?
- What’s the relation between GNOME and Wayland?
- How is Wayland different from xorg?
- echo $XDG_SESSION_TYPE
- bash - Real GNOME Wayland session - Unix & Linux Stack Exchange
Issues
- No iBus in chrome when using wayland
- No iBus in chrome when using Electron Apps
- Notification jump in telegram
Chrome
--enable-features=UseOzonePlatform --ozone-platform=wayland
Telegram
QT_QPA_PLATFORM=wayland
Clipboard
yay -S wl-clipboard
GNOME
- Projects/GnomeShell/CheatSheet - GNOME Wiki!
- Alt + F2 => lg
- linux - How to know whether Wayland or X11 is being used - Unix & Linux Stack Exchange
Software Center Update: - Design/OS/SoftwareUpdates - GNOME Wiki! - systemd.offline-updates
Fractional Scaling
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
Reset:
gsettings reset org.gnome.mutter experimental-features
ref: https://wiki.archlinux.org/title/HiDPI#Fractional_scaling
RAW Thumbnails
yay -S raw-thumbnailer
~/.local/share/thumbnailers/raw.thumbnailer
[Thumbnailer Entry]
TryExec=/usr/bin/raw-thumbnailer
Exec=/usr/bin/raw-thumbnailer -s %s -o %o -i %i
MimeType=image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-pef;image/x-pentax-pef;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;
ref: https://jan.alphadev.net/blog/2018/gnome-raw-thumbnail-generation/
Image Viewer
Extensions
sudo pacman -S chrome-gnome-shell
- GNOME Shell integration - Chrome Web Store
- Projects/GnomeShellIntegrationForChrome/Installation - GNOME Wiki!
- NetSpeed - GNOME Shell 拡張機能
H.264
sudo pacman -S gst-libav
Input Method
yay -S fcitx5-im fcitx5-mozc fcitx5-chinese-addons
yay -S gnome-shell-extension-kimpanel-git