- ArchPKGs
- The Simplest Tutorial on Installing adwaita-x-dark-and-light-theme on Arch-Based Linux (Manjaro/Garuda)
- Table of Contents
- Installation link
- Install with pacman (Default) link
- Install with yay (Beginner Friendly) link
- Updating link
- Update with pacman (Default) link
- Update with yay (Beginner Friendly) link
- Removal link
- Uninstall with pacman (Default) link
- Uninstall with yay (Beginner Friendly) link
- More Guides
- python-sphinx-argparse Install/Update/Uninstall Guide on Arch Linux/Manjaro/ArcoLinux
- How to Install/Update/Uninstall libsphero-git on Arch Linux/Manjaro/Anarchy
- fbpad-git Install/Update/Remove Tutorial on Arch-Based Linux (Manjaro, RebornOS)
- A Quick Guide on gromacs-2020-complete-charmm36 Installation on Arch Linux (Manjaro, Garuda)
- Quick Guide on olaris-git Installation on Arch Linux (Manjaro/Garuda)
- How to Install (Update/Uninstall) wesnoth-devel on Arch-Based Linux (Manjaro, ArcoLinux)
- Dark mode switching
- Tools
- Toolkits
- GTK
- xsettings daemon
- gsettings
- Qt
- Applications
- Firefox
- Thunderbird
- Visual Studio Code
- IntelliJ
- Alacritty
- Arch Linux User Repository
- Latest Comments
- Rio6 commented on 2019-12-29 20:37 (UTC)
- cyberpunkrocker commented on 2019-12-29 14:57 (UTC)
- Rio6 commented on 2018-11-07 02:53 (UTC)
- fuan_k commented on 2018-11-04 22:46 (UTC) (edited on 2018-11-04 22:47 (UTC) by fuan_k)
- Malvineous commented on 2018-08-08 11:31 (UTC)
ArchPKGs
The Simplest Tutorial on Installing adwaita-x-dark-and-light-theme on Arch-Based Linux (Manjaro/Garuda)
«Adwaita-X dark and light theme pack (GTK3, GTK2, Mutter, Metacity, Xfwm4)» is the developer’s description of adwaita-x-dark-and-light-theme . To install and update this package ( adwaita-x-dark-and-light-theme ) from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distros (e.g. Manjaro, EndeavourOS, BlackArch) is fairly uncomplicated. This tutorial will cover how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper (e.g. yay ).
Table of Contents
Installation link
There are commonly two approaches to install adwaita-x-dark-and-light-theme from AUR. pacman is the way to go if you are a seasoned Linux user and understand the concept of how packages are built. Otherwise, yay is an acceptable alternative to install packages without the hassle of reviewing PKGBUILD and build packages with makepkg by yourself.
Install with pacman (Default) link
sudo pacman -S --needed git && git clone https://aur.archlinux.org/adwaita-x-dark-and-light-theme.git && cd adwaita-x-dark-and-light-theme && makepkg -si
- Install git if required (not installed before).
- clone the package’s git repository from source.
- cd into the folder that we just cloned.
- Build the package with makepkg , then install it with pacman .
Install with yay (Beginner Friendly) link
yay -S adwaita-x-dark-and-light-theme
Updating link
Just like installing AUR packages, updating them is almost the same. All you have to do is pull it from AUR then re-build it. Nonetheless, it is still recommended to upgrade your whole system first with sudo pacman -Syu before updating any packages to avoid breaking your system, since Arch is a rolling-release Linux distribution.
Update with pacman (Default) link
git pull && makepkg -si
- pull from the package’s git repository.
- Use makepkg to build the package. Also, it will automatically be updated with pacman if built successfully.
Update with yay (Beginner Friendly) link
Removal link
Compared to installing and updating packages, uninstalling is the easiest of these three,all you need to do is choose whether to keep the dependencies that no longer required by other packages and the configuration files used by the package.
Uninstall with pacman (Default) link
sudo pacman -R adwaita-x-dark-and-light-theme
sudo pacman -Rs adwaita-x-dark-and-light-theme
sudo pacman -Rns adwaita-x-dark-and-light-theme
Uninstall with yay (Beginner Friendly) link
yay -R adwaita-x-dark-and-light-theme
yay -Rs adwaita-x-dark-and-light-theme
yay -Rns adwaita-x-dark-and-light-theme
For more details about how to install AUR packages or how to install yay , please refer to this guide published on NoCache.
More Guides
python-sphinx-argparse Install/Update/Uninstall Guide on Arch Linux/Manjaro/ArcoLinux
«Sphinx extension that automatically documents argparse commands and options» is the maintainer’s description of extra/python-sphinx-argparse. To install or uninstall this package (extra/python-sphinx-argparse) from Arch official repository (Extra) on Arch Linux and Arch-based Linux distributions (e.g. Manjaro, EndeavourOS, RebornOS, Parabola) is fairly uncomplicated. This tutorial will show you step-by-step how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper (e.g. yay).
How to Install/Update/Uninstall libsphero-git on Arch Linux/Manjaro/Anarchy
libsphero-git is «Simple API for sphero 1 and 2.0 written in C++» based on its description. To install and update this package (libsphero-git) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, ArcoLinux, Parabola, Anarchy and Garuda is pretty simple. This tutorial will cover how to install/update/remove the package with either the default package manager pacman or an AUR helper (e.g. yay).
fbpad-git Install/Update/Remove Tutorial on Arch-Based Linux (Manjaro, RebornOS)
«A small linux framebuffer virtual terminal.» is the maintainer’s gist of fbpad-git. To install fbpad-git from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Artix, BlackArch and Parabola is rather straightforward. This tutorial will cover how to install, update and uninstall the package with either the default package manager pacman or an AUR helper (e.g. yay).
A Quick Guide on gromacs-2020-complete-charmm36 Installation on Arch Linux (Manjaro, Garuda)
«CHARMM36 force field in GROMACS format.» is the developer’s gist of gromacs-2020-complete-charmm36. To install gromacs-2020-complete-charmm36 from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and Parabola is fairly uncomplicated. This guide will taught you how to install, update and remove the package with either the built-in package manager pacman or an AUR helper like yay.
Quick Guide on olaris-git Installation on Arch Linux (Manjaro/Garuda)
According to olaris-git’s gist, it is «open-source, community driven, media manager and transcoding server». To get olaris-git from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and Garuda is quite uncomplicated. This tutorial will be covering how to install/update/remove the package with either the default package manager pacman or an AUR helper like yay.
How to Install (Update/Uninstall) wesnoth-devel on Arch-Based Linux (Manjaro, ArcoLinux)
«development version of a turn-based strategy game on a fantasy world» is their gist of wesnoth-devel. To install this package (wesnoth-devel) from AUR (Arch User Repository) on Arch Linux and Arch-based distributions (e.g. Manjaro, EndeavourOS, Artix, Garuda) is relatively uncomplicated. This tutorial will taught you how to install, update and uninstall the package with either the default package manager pacman or an AUR helper like yay.
More guides… copyright 2023 ArchPKGs. All Rights Reserved.
Dark mode switching
Switching between light and dark modes/themes is nice to have. It allows you to switch to dark mode on sunset or toggle modes with a keyboard shortcut.
The switch between themes can apply to currently running programs, probably requiring a daemon, or only to newly launched ones. This article focuses on switching at runtime, so toggling during use affects currently running programs.
Switching between light and dark mode requires support from applications or application toolkits like GTK and Qt.
If you don’t need live theme switching, to quickly set a dark theme system-wide Install gnome-themes-extra , adwaita-qt5 and adwaita-qt6 and Export GTK_THEME=Adwaita:dark , GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc and QT_STYLE_OVERRIDE=adwaita-dark .
Tools
- darkman — darkman is a tool that allows automating transitioning to dark mode at sundown, and back to light mode at sunrise. It allows placing drop-in scripts to be run automatically at those times.
- Yin-Yang — Yin-Yang is a similar tool, which can be also run manually (not only on sunset/sunrise). Currently it supports Plasma, GNOME & Budgie DE, as well as few of the most used miscellaneous applications (Firefox, VSCode etc.). Running custom scripts is also supported.
Toolkits
GTK
To change the light/dark mode, you have to change the used theme.
Most themes do have a dark variant and those have by convention the suffix -dark . For example the default GTK theme Adwaita has the variant Adwaita-dark .
To permanently change to the dark variant, see GTK#Dark theme variant
To switch themes instantly for running programs, either a daemon providing the xsettings spec or gsettings is required. For desktops running with Xorg, an xsettings daemon is needed. For desktops running with Wayland, gsettings is queried.
xsettings daemon
xsettings is queried for Xorg sessions
The xsettings daemon from Xfce is xfsettingsd, which is provided by the xfce4-settings package.
To query current GTK theme:
$ xfconf-query -c xsettings -p /Net/ThemeName
$ xfconf-query -c xsettings -p /Net/ThemeName -s "new-theme"
Changes to this entry are instant and affect all GTK applications.
gsettings
gsettings is queried for Wayland sessions.
To query the current GTK theme:
$ gsettings get org.gnome.desktop.interface gtk-theme
$ gsettings set org.gnome.desktop.interface gtk-theme "new-theme"
Alternatively, if your theme does not apply the dark scheme to Gtk4 applications, you can request the dark variant of the default theme:
$ gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
$ gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
Changes to this entry are instant and affect all GTK applications.
Note that not all GTK themes support both light and dark variants. Notably, if you are using KDE, the Breeze GTK theme does not support it. You can switch to Adwaita theme by running the command below.
KDE
If you are using KDE and want to switch dark and light modes on the fly (even at the cost of different themes for Qt and GTK apps), you can switch the GTK theme to one that supports both dark and light variant — like the default Adwaita theme. You can switch to the Adwaita theme by running:
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
and if you want to revert to KDE default theme, run:
gsettings set org.gnome.desktop.interface gtk-theme 'Breeze'
Doing this will allow you to switch theme even on already running apps using the color-scheme command above. It will also respect the KDE dark/light setting, that can be switched on in KDE Settings.
Qt
Qt has theme support similar to GTK.
One method to theme Qt applications is using GTK for styling. Changes to the GTK theme then affect Qt applications as well.
Another method is using a native Qt theme, e.g. adwaita-qt5 . To switch between themes, you can follow Qt#Configuration of Qt 5 applications under environments other than KDE Plasma.
Applications
Firefox
Firefox automatically uses the current GTK theme mode and adapts the appearance of the browser accordingly. See Firefox#Dark themes for some more settings and caveats.
To change web content smartly, the Dark Reader Add-On is recommended.
By setting Automation to Use system color scheme , Dark Reader activates automatically with dark GTK themes.
Thunderbird
Thunderbird conforms with the current GTK Theme, but some changes are recommended.
Visual Studio Code
To change the theme in Visual Studio Code, this script may help.
IntelliJ
The Auto Dark Mode plugin will automatically switch themes based on the current GTK theme once installed.
Alacritty
Alacritty has support for multiple custom color schemes. The configuration syntax and published color schemes can be found here.
To quickly change theme, you should declare a pointer to each color scheme, for example &black . Then you can switch to a color scheme by simply setting colors: *black . This change to the configuration file is instant and affects all currently running instances. If not, you may have to set live_config_reload: true .
The borders and title bar are themed with GTK. To abide by the GTK theme, you should set the setting gtk_theme_variant to the default None .
Arch Linux User Repository
It appears that the other theme Adwaita-dark theme is already included in gnome-themes-extra package. People who just wants to have a gtk2 theme that matches Adwaita:Dark can use that one instead.
Thanks @cyberpunkrocker for letting me discover that.
Latest Comments
Rio6 commented on 2019-12-29 20:37 (UTC)
It appears that the other theme Adwaita-dark theme is already included in gnome-themes-extra package. People who just wants to have a gtk2 theme that matches Adwaita:Dark can use that one instead.
Thanks @cyberpunkrocker for letting me discover that.
cyberpunkrocker commented on 2019-12-29 14:57 (UTC)
There’s an updated fork in https://www.pling.com/s/Gnome/p/1247600/ , which is much closer in appearance to current gtk3 Adwaita.
Rio6 commented on 2018-11-07 02:53 (UTC)
gnome-look download url keeps changing. I’ll just include the tar.gz in the build
fuan_k commented on 2018-11-04 22:46 (UTC) (edited on 2018-11-04 22:47 (UTC) by fuan_k)
Here are some edits I had to make in order to install:
source=( https://dl.opendesktop.org/api/files/download/id/1462546831/s/86d59382134566ebcdb78d9fc99fee8b/t/1541373921/u//175933-AdwaitaDark.tar.gz ) md5sums=('SKIP')
The URL may or may not work depending on how dynamic their API callback is.
Malvineous commented on 2018-08-08 11:31 (UTC)
The upstream download link doesn’t seem to be working anymore, resulting in an md5sum validation failure. Downloading the .tar.gz manually works.
Copyright © 2004-2023 aurweb Development Team.
AUR packages are user produced content. Any use of the provided files is at your own risk.