Skip to content

Shell script for setting dark mode in Chrome using Linux Ubuntu 22

Notifications You must be signed in to change notification settings

mayraamaral/ubuntu-chrome-dark-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Automating Setting Dark Mode in Chrome using Ubuntu

I faced a problem with dark mode in Linux Ubuntu 22, specially when using Chrome. I had to manually set dark mode in Chrome using this tutorial, but every time I updated Ubuntu, Chrome was set to light mode again and I had to manually make the process all over again.

Then, I had an idea 💡

What if I use Shell Script to make it for me?

I developed a simple shell script code to set Chrome to dark mode. It is available in this repository, the file is named "chromedarkmode.sh".

To make the process even more simple, I created an alias in .zshrc named "chromedarkmode" pointing to the path of the "chromedarkmode.sh" file and, now, every time I update my system, I just had to type the command "chromedarkmode" in terminal and that's it.

In the command, I used sed, but you can use perl as well. Go ahead :)

About

Shell script for setting dark mode in Chrome using Linux Ubuntu 22

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages