Changes gtk, icon and cursor theme when dark mode is enabled/disabled.
- Copy
immersive-dark-mode
to/usr/bin/
- Copy
immersive-dark-mode.desktop
to/etc/xdg/autostart/
- Copy
immersive-dark-mode
to$HOME/.local/usr/bin/
- Copy
immersive-dark-mode.desktop
to$HOME/.config/autostart/
After installation, the tool will run automotically on the next boot. To run it without
having to reboot, just open a terminal and run the command immersive-dark-mode & disown
.
The default behavior is to use 'Adwaita' and 'Adwaita-dark' for GTK3 and keep icon and
cursor themes untouched. To change this behavior, edit immersive-dark-mode
file to
your liking. It is very easy to do and specific instructions are given below.
Edit immersive-dark-mode
file and simply replace 'Adwaita' and 'Adwaita-dark' with
names of whatever themes you like.
Edit immersive-dark-mode
file, uncomment the relevant lines and simply replace
default values with names of whatever themes you like.
For example, to change cursor theme to 'Breeze' (dark) and 'Breeze_Snow' (light), edit
immersive-dark-mode
file as follows
def re_set_theme(*args):
if settings['color-scheme'] != 'prefer-dark':
- #settings['cursor-theme'] = 'Adwaita'
+ settings['cursor-theme'] = 'Breeze_Snow'
#settings['icon-theme'] = 'Adwaita'
settings['gtk-theme'] = 'Adwaita' # GTK3 Theme
#gtk_css.unlink(missing_ok=True) # GTK4 Theme Support
#gtk_css.symlink_to(light_css) # GTK4 Theme Support
else:
- #settings['cursor-theme'] = 'Adwaita'
+ settings['cursor-theme'] = 'Breeze'
#settings['icon-theme'] = 'Adwaita'
settings['gtk-theme'] = 'Adwaita-dark' # GTK3 Theme
#gtk_css.unlink(missing_ok=True) # GTK4 Theme Support
#gtk_css.symlink_to(dark_css) # GTK4 Theme Support