0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LinuxでGoogle Chromeをダークモードにする。

Last updated at Posted at 2023-01-07
sudo apt update
sudo apt upgrade

yay -Syu

したらいちいちダークモードじゃなくなりますよね。どうにかならないんですかね....。

解決策

google-chrome-darkmode.sh
chmod 777 /opt/google/chrome/google-chrome

sudo sed -i '$ d' /opt/google/chrome/google-chrome

sudo echo 'exec -a "$0" "$HERE/chrome" "--enable-features=WebUIDarkMode" "--force-dark-mode" "$@"' >> /opt/google/chrome/google-chrome

これを実行すればOKです!

解説

一行目は権限がたりないのでchmodしてます。
二行目にファイルの一番最後の行を削除しています。
三行目にファイルの一番最後に追記しています。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?