TuxTower's Blog

Look at this beautfiul rice!


Over the past couple of days, I've slowly been transitioning my overall Hyprland colour scheme/aesthetic from the Dracula theme to a more dynamic theme that I can change on the fly. The program that has helped me achieve this is pywal. My old Dracula theme was nice but after a few months it was time to change it up. Approaching this change, I didn't want to have to adjust all my colour scheme manually across all my programs everytime I wanted something different. Hence pywal was the answer. You can check out my old Hyprland setup here:


This piece of software enables the user to change the colour scheme of their system based of the colours in a wallpaper. I'm sure plenty of r/unixporn farmers know about this software. It's a great tool that I have now incorporated into Hyprland system. Whenever my wallpaper changes, the colour scheme also changes along with it. From Discord, kitty, waybar, mako, brave and many more programs all change colour schemes whenever my wallpaper is changed.


I thought this might be a bit of a challenge as Hyprland runs on the Wayland compositor, and a lot of the system programs that I use are native Wayland apps. Luckily pywal supports templates which enables you to apply colour schemes to almost any application on the fly.


Plans in the future...

The only part of my setup that is unable to change colour schemes on the fly are programs that use GTK. I'm not sure if this is because I havn't set it up correctly or whether it's just not possible in Wayland at the moment. I saw a solution on this Pywal Cheatsheet but I was unable to get this working. This is probably to do with xresources on Wayland. If anyone knows a solution, let me know in this github issue. In the meantime, my solution has been to step away from GTK applications. I used to use Thunar as my file manager but now I've started using nnn.

EDIT (2023-11-12): As of writing this, I finally found a way to change my GTK with pywal. There is a project called phocus which enables you to create your own GTK theme with scss. So what I did was, I created a pywal template file that generated all the colours in scss and then used that file as the colour file for phocus. I then used their built in command to watch and reload the colour scheme everytime the colours file is changed. This results in a seamless colour scheme update everytime I run pywal! :)


Here you can find two of the scripts I use for the colour scheme changing:

  • walset: Script to set the wallpaper across my wayland applications
  • wofiwallpaper: Script to display my wallpapers in Wofi dmenu mode and then run walset