profile & darkman: attempt to find a working configuration

This commit is contained in:
Aminda Suomalainen 2024-07-22 15:06:04 +03:00
parent 23ee3d5e02
commit fcb90ac932
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 25 additions and 21 deletions

View File

@ -1,6 +1,7 @@
# Visit qt6ct and set theme to kvantum for darkman! unset QT_QPA_PLATFORMTHEME
export QT_QPA_PLATFORMTHEME=qt6ct unset QT_STYLE_OVERRIDE
export QT_STYLE_OVERRIDE=kvantum export XDG_CURRENT_DESKTOP=KDE
export XDG_SESSION_DESKTOP=KDE
# Strongly imply these that wayland is preferred # Strongly imply these that wayland is preferred
export GDK_BACKEND=wayland export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland export QT_QPA_PLATFORM=wayland

View File

@ -9,12 +9,12 @@ if ! hash lsb_release 2> /dev/null; then
exit 0 exit 0
fi fi
if ! hash kvantummanager 2> /dev/null; then #if ! hash kvantummanager 2> /dev/null; then
ERRORMESSAGE="kvantummanager wasn't found, Qt theme switching won't work!" # ERRORMESSAGE="kvantummanager wasn't found, Qt theme switching won't work!"
echo "$ERRORMESSAGE" # echo "$ERRORMESSAGE"
notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE" # notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE"
exit 0 # exit 0
fi #fi
export DISTROID="$(lsb_release -si)" export DISTROID="$(lsb_release -si)"
export DISTROREL="$(lsb_release -sr)" export DISTROREL="$(lsb_release -sr)"
@ -33,9 +33,9 @@ else
notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE" notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE"
fi fi
if [[ "$QT_STYLE_OVERRIDE" != "kvantum" ]]; then #if [[ "$QT_STYLE_OVERRIDE" != "kvantum" ]]; then
ERRORMESSAGE="\$QT_STYLE_OVERRIDE is not 'kvantum', Qt theme switching has no effect!" # ERRORMESSAGE="\$QT_STYLE_OVERRIDE is not 'kvantum', Qt theme switching has no effect!"
echo $ERRORMESSAGE # echo $ERRORMESSAGE
notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE" # notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE"
exit 0 # exit 0
fi #fi

View File

@ -5,15 +5,18 @@
# This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/ # This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/
# GTK Theme # GTK Theme
(gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &) (sleep 3 && gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &)
(gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark &) (sleep 1 && gsettings set org.gnome.desktop.interface gtk-theme Breeze &)
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Adwaita-dark" &) (sleep 2 && gsettings set org.gnome.desktop.interface gtk-theme Breeze-dark &)
(sleep 1 && dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &)
(sleep 2 && dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze-dark" &)
# Xfce theme? # Xfce theme?
(xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Adwaita-dark &) (sleep 1 && xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze &)
(sleep 2 && xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze-dark &)
# Plasma # Plasma
(lookandfeeltool --apply "org.kde.breezedark.desktop" &) (lookandfeeltool --apply "org.kde.breezedark.desktop" &)
# Kvantum Qt # Kvantum Qt
(sleep 3 && kvantummanager --set KvGnomeDark --noAssign-All &) #(sleep 3 && kvantummanager --set KvGnomeDark --noAssign-All &)

View File

@ -16,4 +16,4 @@
(lookandfeeltool --apply "org.kde.breeze.desktop" &) (lookandfeeltool --apply "org.kde.breeze.desktop" &)
# Kvantum Qt # Kvantum Qt
(sleep 3 && kvantummanager --set KvGnome --noAssign-All &) #(sleep 3 && kvantummanager --set KvGnome --noAssign-All &)