Skip to content

Instantly share code, notes, and snippets.

@levihuayuzhang
Last active January 13, 2023 23:13
Show Gist options
  • Save levihuayuzhang/032b47d760504d0df8e23ff659138a9f to your computer and use it in GitHub Desktop.
Save levihuayuzhang/032b47d760504d0df8e23ff659138a9f to your computer and use it in GitHub Desktop.
Linux Google Chrome Dark Mode

Solution 1

  1. copy .desktop file to user directory
cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/google-chrome.desktop
  1. modify that file
sed -i 's;/usr/bin/google-chrome-stable;/usr/bin/google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode;g' ~/.local/share/applications/google-chrome.desktop

Solution 2

edit~/.config/chromium-flags.conf

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

Reference:

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