Chromium
Dark interface
Force web UI dark mode
--enable-features=WebUIDarkMode --force-dark-mode
Hardware acceleration
Accelerated video decoding and GPU support
--enable-accelerated-video-decode --enable-gpu
Reader mode
--enable-reader-mode
Runtime cache
Use the cache directory /run/user/1000/chrome/cache
--disk-cache-dir=${XDG_RUNTIME_DIR}/chrome/cache
Window size
Sawn a window of size 1200x900
--window-size=1200,900
Full config
The file /etc/chromium/default
is sourced by the Chromium launcher, that's why we can sue bash syntax here.
#!/usr/bin/env bash
# Dark interface
# Force web UI dark mode
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --enable-features=WebUIDarkMode --force-dark-mode"
# Hardware acceleration
# Accelerated video decoding and GPU support
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --enable-accelerated-video-decode --enable-gpu"
# Reader mode
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --enable-reader-mode"
# Runtime cache
# Use the cache directory /run/user/1000/chrome/cache
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --disk-cache-dir=${XDG_RUNTIME_DIR}/chrome/cache"
# Window size
# Sawn a window of size 1200x900
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --window-size=1200,900"
Binary
If you use www-client/chromium-bin
, then the config is located at /etc/chromium/default
and CHROMIUM_FLAGS
is CHROMIUM_BIN_FLAGS
.