dots/home/private_dot_local/private_share/dark-mode.d/executable_kde-gtk-theme.sh
2025-01-01 11:23:15 +08:00

12 lines
620 B
Bash

#!/usr/bin/env bash
# add a detection to prevent exec scripts on every login
#if [[ "$(darkman get)" =~ "light" ]] ; then
# GTK apps are not affected by the Plasma Global Theme, which only applies to Qt based programs.
# GTK themes can be installed here: Global Theme > Application Style > Configure GNOME/GTK Application Style.
# Reference: https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Nordic-bluish-dark"
#else
# echo "The GTK theme has been already switched, skipping"
#fi