q77190858 / dde-sys-monitor-plugin

dde-dock system monitor plugin
GNU General Public License v2.0
80 stars 20 forks source link

(Maybe) Found a way to change fonts color following system theme color #10

Closed zty199 closed 4 years ago

zty199 commented 4 years ago

I find that theme color is record in ~/.config/kwinrc , like this: [deepin-chameleon] theme=light/deepin So maybe running a script in background can read this line and change fonts color following system theme color?

cat ~/.config/kwinrc | grep theme | cut -d "=" -f 2 | cut -d "/" -f 1 Use this command can read whether it shows "light" or "dark".

Hope this can help you.