Chromium

:: customization

By: Maciej Barć

Dark interface

Force web UI dark mode

1
--enable-features=WebUIDarkMode --force-dark-mode

Hardware acceleration

Accelerated video decoding and GPU support

1
--enable-accelerated-video-decode --enable-gpu

Reader mode

1
--enable-reader-mode

Runtime cache

Use the cache directory /run/user/1000/chrome/cache

1
--disk-cache-dir=${XDG_RUNTIME_DIR}/chrome/cache

Window size

Sawn a window of size 1200x900

1
--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.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/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.