Now with plasmoid - KDE Material You color schemes generator from wallpaper

Ty. Is there anything to do/set to see these few colors change?

Kate > Settings > Configure Kate > Color Themes > Select Theme: Material You Dark/Light.

Also can wallpaper colors possibly extend to a btop/bpytop color theme?

It can be added to whatever supports loading colors configuration, for some cli tools you get it for “free” if they provide a color theme that follows the default colors from the terminal, usually referred to as the TTY/ANSI/16-color theme.

Then you only have to make your terminal follow these colors, most will have a pywal template already available for you to import it.

Yep. I had already done that (for Kate, and Kwrite and also in their > Theme Editor), however I do not see colors change with the wallpaper, neither after a Kate/Kwrite relaunch.
So do I need to install KSyntaxHighlighting (on Plasma 5?)

Or maybe just logout of Plasma

I’m only asking for those monitors running in Konsole, since this is the only Terminal I use.
It’s working fine with Konsole / htop too.

Hot reloading is not implemented for KSyntaxHighlighting, back when I added the color scheme support for it there wasn’t a way to force its reload so you will have to restart the application for it to show the new colors, see Expand support for KSyntaxHighlighting (Kate, KWrite, KDevelop...) themes · Issue #103 · luisbocanegra/kde-material-you-colors · GitHub

So do I need to install KSyntaxHighlighting (on Plasma 5?)

It should be installed already I believe, at least on Arch is a dependency of Kate.

1 Like

Do I have to select something in Kate/Kwrite bottom right? There is no syntax highlighting at all if I select Normal, unsure if few parts change in many others.
But not so important.

Is there a way to run a command post color scheme creation of your script, or better after the changes are applied to Plasma?
In particular I want to send a keystroke to Jdownloader2
Window Class: install4j-org-jdownloader-update-launcher-jdlauncher
and send keystroke CTRL+Super+U to make the window invert colors.

Because this gets reset with the color modifications each time.

Can the created colors also extend to Conkies? (like extracting one color code, maybe with sed and inserting into their .config and restarting conky)

Nope, AFAIK the color scheme is independent from that. But I don’t use Kate that much do I may be wrong.

yes with a script in the configuration file e.g on_change_hook = /path/to/some/script.sh or passing it to the --on-change-hook option

Can the created colors also extend to Conkies? (like extracting one color code, maybe with sed and inserting into their .config and restarting conky)

Yes you can, I actually used to do that in my conky days

#!/bin/bash
CONKY_FILE='/home/luis/.config/conky/conky.conf'
CONKY_LUA_FILE='/home/luis/.config/conky/conky-draw_bg.lua'
GLAVA_BARS_FILE='/home/luis/.config/glava/bars.glsl'
THEME_MODE=$(
  state=$(grep '^pywal_light =' /home/luis/.config/kde-material-you-colors/config.conf | awk '{print $NF}')
  if [[ $state == "True" ]] || [[ $state == "1" ]]; then
    echo light
  else
    echo dark
  fi
)
#THEME_MODE=light
ALLCOLORS=$(cat /tmp/kde-material-you-colors-luis.json)
COLOR0=$(echo "${ALLCOLORS}" | jq ".pywal.${THEME_MODE}.colors.color0" | sed 's/"//g')
sed -i "s/bg_alpha=.*/bg_alpha=.7/" $CONKY_LUA_FILE

lua_bg="${COLOR0//#/}" # $(echo $COLOR0 | sed 's/#//')
sed -i "s/bg_colour=0x.*/bg_colour=0x${lua_bg}/" $CONKY_LUA_FILE

sed -i "s/#define COLOR (.*)/#define COLOR (${COLOR4}10)/" $GLAVA_BARS_FILE
1 Like

I’ve been using KDE Material You Colors for a while now, and I LOVE it!

2 Likes

Thanks again for your fast support, prbb. will look into Materializing Conky & Jd2 on the coming weekends.

Yeah I meant syntax highlighting colors, not color scheme (which is very fine with MYC)

Well 1 more question till then…
How can I keep these settings, I want to tick them but the ticks keep disappearing right after color change (as the tinting over time…)

Can your script be paused when the screen is locked?

No, if you have a wallpaper that changes when the screen is locked kde-material-you will still react to the change.

But it should be easy to implement

1 Like

Please do implement :slight_smile:

The Konsole auto-theming stopped working after an update about 2,3 weeks ago for me on Plasma 6.3.5.
The Youcolor schemes seem static now. Meaning, it won’t change when I change my wallpaper. When I restart Konsole, it does change as expected however.
I followed the AUR instructions again and reinstalled, however to no avail. Anyone having the same issue?

It’s working fine for me. Perhaps you unintentionally disabled it?

What’s the output of running kde-material-you-colors from terminal?

 kde-material-you-colors
[D] utils: kill_existing: Found previous process in PID file: '132443' killing...
[D] utils: kill_existing: Process not found, probably ended by someone else
[I] main: main: ###### STARTED NEW SESSION v1.10.0 ######
[D] main: main: Installed in /usr/lib/python3.13/site-packages/kde_material_you_colors
[D] config: eval_conf: Config "on_change_hook": empty, using fallback: None
[D] config: eval_conf: Config "color": empty, using fallback: None
[D] config: eval_conf: Config "custom_colors_list": empty, using fallback: None
[D] config: eval_conf: Config "darker_window_list": empty, using fallback: None
[D] main: main: {'light': False, 'file': None, 'monitor': 0, 'ncolor': 0, 'iconslight': 'klassy', 'iconsdark': 'klassy-dark', 'pywal': False, 'pywal_light': False, 'light_blend_multiplier': 1, 'dark_blend_multiplier': 1, 'on_change_hook': None, 'sierra_breeze_buttons_color': False, 'disable_konsole': False, 'titlebar_opacity': 30, 'titlebar_opacity_dark': 30, 'toolbar_opacity': 30, 'toolbar_opacity_dark': 30, 'konsole_opacity': 10, 'konsole_opacity_dark': 10, 'konsole_blur': True, 'color': None, 'klassy_windeco_outline': True, 'custom_colors_list': None, 'darker_window_list': None, 'use_startup_delay': True, 'startup_delay': 33, 'plasma_follows_scheme': False, 'pywal_follows_scheme': False, 'main_loop_delay': 1.0, 'screenshot_delay': 900.0, 'once_after_change': False, 'pause_mode': False, 'screenshot_only_mode': False, 'scheme_variant': 4, 'chroma_multiplier': 2.8, 'tone_multiplier': 0.5, 'qdbus_executable': None, 'manual_fetch': False, 'fetch_colors': False}

I had a look into autostart now and I saw there: Failed
So in details, I set it to/checked: “allow to be executed as a program”
That was before I ran the above. :smiley:
Maybe it will help, the checkmark

That output is not complete, did you wait for the delay you specified ('use_startup_delay': True, 'startup_delay': 33) to end?

Normal output looks like this

[D] utils: kill_existing: Found previous process in PID file: '114758' killing...
[D] utils: kill_existing: Process not found, probably ended by someone else
[I] main: main: ###### STARTED NEW SESSION v1.10.0 ######
[D] main: main: Installed in /home/luis/projects/kde-material-you-colors/src/kde_material_you_colors
[D] config: eval_conf: Config "on_change_hook": empty, using fallback: None
[D] config: eval_conf: Config "color": empty, using fallback: None
[D] config: eval_conf: Config "darker_window_list": empty, using fallback: None
[D] config: eval_conf: Config "qdbus_executable": empty, using fallback: None
[D] main: main: {'light': False, 'file': None, 'monitor': 1, 'ncolor': 0, 'iconslight': 'Papirus-Colors', 'iconsdark': 'Papirus-Colors-Dark', 'pywal': True, 'pywal_light': None, 'light_blend_multiplier': 1, 'dark_blend_multiplier': 1, 'on_change_hook': None, 'sierra_breeze_buttons_color': False, 'disable_konsole': False, 'titlebar_opacity': 100, 'titlebar_opacity_dark': 100, 'toolbar_opacity': 100, 'toolbar_opacity_dark': 100, 'konsole_opacity': 100, 'konsole_opacity_dark': 100, 'konsole_blur': False, 'color': None, 'klassy_windeco_outline': False, 'custom_colors_list': ['#d0265c', '#74e448', '#eece4f', '#66a3ef', '#532066', '#297d81', '#ccc1c1'], 'darker_window_list': None, 'use_startup_delay': False, 'startup_delay': 0, 'plasma_follows_scheme': False, 'pywal_follows_scheme': True, 'main_loop_delay': 1.0, 'screenshot_delay': 1.0, 'once_after_change': False, 'pause_mode': False, 'screenshot_only_mode': False, 'scheme_variant': 5, 'chroma_multiplier': 1.0, 'tone_multiplier': 1.0, 'qdbus_executable': None, 'manual_fetch': False, 'fetch_colors': False}
[I] main: main: Wallpaper: org.kde.image (image): /home/luis/Pictures/Wallpapers/wallhaven-x6x9q3.png
[I] m3_scheme_utils: get_color_schemes: Best colors: 0:#2958db 1:#4f99f2 2:#0b3b57 3:#5fbed8
[I] m3_scheme_utils: get_color_schemes: Using seed: 0:#2958db
[I] schemeconfigs: __init__: Using custom colors: #d0265c #74e448 #eece4f #66a3ef #532066 #297d81 #ccc1c1
[I] plasma_utils: apply_color_schemes: Successfully applied the color scheme MaterialYouDark to your current Plasma session
[I] plasma_utils: set_icons: Icon theme changed to Papirus-Colors-Dark: org.kde.plasma.changeicons: Icon theme is already used
[I] titlebar_utils: titlebar_opacity: Applying Klassy titlebar opacity
[I] kwin_utils: klassy_update_decoration_color_cache: Updating Klassy decoration color cache
[I] konsole_utils: get_default_profile: Found default profile 'Profile 1.profile'
[D] konsole_utils: reload_profile: Konsole services (windows) running: 2
[D] konsole_utils: reload_profile: window: org.kde.konsole-1430467 sessions: 1
[D] konsole_utils: reload_profile: window: org.kde.konsole-2765766 sessions: 3
[I] pywal_utils: apply_schemes: Setting pywal colors...
[I] sequences: send: Set terminal colors.
[I] export: every: Reading system templates from: /usr/lib/python3.13/site-packages/pywal/templates
[I] export: every: Reading user templates from: /home/luis/.config/wal/templates
[I] export: every: Exported all files.
[I] export: every: Exported all user files to /home/luis/.cache/wal
[I] reload: env: Reloaded environment.
[I] kwin_utils: reload: Reloading KWin
 #101116  #ea798f  #a4eb8e  #f1dc91  #97bef4  #d88cf9  #8edbe0  #dad2d2 
 #afb1c5  #ef8b9d  #b1ee9e  #f2e0a1  #a5c7f6  #de9cfa  #9fdfe4  #dfd8d8 
 #989aac  #a05363  #70a164  #a49766  #6682a9  #9460ac  #61969b  #959092 

1 Like

Thank you.

kde-material-you-colors
[D] utils: kill_existing: Found previous process in PID file: '81853' killing...
[D] utils: kill_existing: Process not found, probably ended by someone else
[I] main: main: ###### STARTED NEW SESSION v1.10.0 ######
[D] main: main: Installed in /usr/lib/python3.13/site-packages/kde_material_you_colors
[D] config: eval_conf: Config "on_change_hook": empty, using fallback: None
[D] config: eval_conf: Config "color": empty, using fallback: None
[D] config: eval_conf: Config "custom_colors_list": empty, using fallback: None
[D] config: eval_conf: Config "darker_window_list": empty, using fallback: None
[D] main: main: {'light': False, 'file': None, 'monitor': 0, 'ncolor': 0, 'iconslight': 'klassy', 'iconsdark': 'klassy-dark', 'pywal': False, 'pywal_light': False, 'light_blend_multiplier': 1, 'dark_blend_multiplier': 1, 'on_change_hook': None, 'sierra_breeze_buttons_color': False, 'disable_konsole': False, 'titlebar_opacity': 30, 'titlebar_opacity_dark': 30, 'toolbar_opacity': 30, 'toolbar_opacity_dark': 30, 'konsole_opacity': 10, 'konsole_opacity_dark': 10, 'konsole_blur': True, 'color': None, 'klassy_windeco_outline': True, 'custom_colors_list': None, 'darker_window_list': None, 'use_startup_delay': True, 'startup_delay': 33, 'plasma_follows_scheme': False, 'pywal_follows_scheme': False, 'main_loop_delay': 1.0, 'screenshot_delay': 900.0, 'once_after_change': False, 'pause_mode': False, 'screenshot_only_mode': False, 'scheme_variant': 4, 'chroma_multiplier': 2.8, 'tone_multiplier': 0.5, 'qdbus_executable': None, 'manual_fetch': False, 'fetch_colors': False}
[I] main: main: Wallpaper: a2n.blur (image): /home/USER/Wallpapers/Yokohama Sakura, Japan_trevor_dobson_inefekt69_30684914567_Trevor Dobson_23409752@N08_Trevor Dobson_o_ .jpg
[I] m3_scheme_utils: get_color_schemes: Best colors: 0:#d4ecfd 1:#9d728b 2:#b4baba 3:#8f849f 4:#a9b1cd 5:#2e382a 6:#8c7f7e
[I] m3_scheme_utils: get_color_schemes: Using seed: 0:#d4ecfd
[I] plasma_utils: apply_color_schemes: Successfully applied the color scheme MaterialYouDark to your current Plasma session
[I] plasma_utils: set_icons: Icon theme changed to klassy-dark: org.kde.plasma.changeicons: Icon theme is already used
[I] titlebar_utils: klassy_windeco_outline_color: Applying Klassy outline color
[I] kwin_utils: klassy_update_decoration_color_cache: Updating Klassy decoration color cache
[E] titlebar_utils: titlebar_opacity: Error writing Klassy titlebar opacity:
'TitleBarOpacity'
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/kde_material_you_colors/utils/titlebar_utils.py", line 110, in titlebar_opacity
    conf_file["TitleBarOpacity"]["ActiveTitleBarOpacity"] = str(
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/configparser.py", line 998, in __getitem__
    raise KeyError(key)
KeyError: 'TitleBarOpacity'
[I] kwin_utils: klassy_update_decoration_color_cache: Updating Klassy decoration color cache
[I] konsole_utils: get_default_profile: Found default profile 'TempMyou.profile'
[D] konsole_utils: reload_profile: Konsole services (windows) running: 1
[D] konsole_utils: reload_profile: window: org.kde.konsole-3698 sessions: 1
[I] kwin_utils: reload: Reloading KWin
 #06070b  #bc9cad  #aea5a4  #b0a8bb  #c2c7db  #cacece  #e0effa  #d8f6cd 
 #abb0b6  #c5a9b8  #b9b0af  #bab3c3  #cacedf  #d1d4d4  #e4f1fa  #ddf6d3 
 #93979e  #7b6674  #726c6e  #746f7d  #808493  #85888a  #949fa9  #8fa48a 

I edited my username in it.