Add darkman config

This commit is contained in:
2023-12-25 14:07:42 +03:00
parent 2973c82f36
commit 2990b556e2
7 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Change the global Plasma Theme. On Manjaro you can use "org.manjaro.breath-dark.desktop"
# or you can create your own global Plasma Theme with the "Plasma Look And Feel Explorer".
# Reference: https://userbase.kde.org/Plasma/Create_a_Global_Theme_Package
#
# Since Plasma 5.26 the lookandfeeltool does not work anymore without "faking" the screen.
# Reference: https://bugs.kde.org/show_bug.cgi?id=460643
lookandfeeltool -platform offscreen --apply "org.kde.breeze.desktop"
# lookandfeeltool -platform offscreen --apply "org.kde.breezetwilight.desktop"
# lookandfeeltool -platform offscreen --apply "org.kde.breezedark.desktop"

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# 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
source "$HOME/scripts/common-vars.sh"
if [ $theme == "dark" ]; then
theme_string="Breeze-dark-gtk"
else
theme_string="Default"
fi
echo "string:$theme_string"
dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:$theme_string"

View File

@ -0,0 +1,3 @@
#!/bin/sh
makoctl set-mode dark