Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow termusic to apply tui theme colors externally (pywal support) #342

Open
uwidev opened this issue Jun 21, 2024 · 0 comments
Open

Allow termusic to apply tui theme colors externally (pywal support) #342

uwidev opened this issue Jun 21, 2024 · 0 comments

Comments

@uwidev
Copy link

uwidev commented Jun 21, 2024

Describe what you want

Allow termusic to apply (update) tui theme colors externally.

The specific thing I want to do is to integrate pywal into the tui themes, so that colors can sync with a different wallpaper. Pywal is only able to change the background color, and is unable to change anything else (border, foreground, highlight, etc).

Do you have already an idea for the implementation?

  • Reapply the current theme when a client receives SIGUSR1.
  • Automatically apply current theme on modifications to the currently watched file theme.yml.
  • Perhaps do some similar shenanigans with the termusic-server.

Of course, users would have to write their own scripts, something like...

wal -i "new-img.png"
cp ~/.cache/wal/colors-termusic.yml ~/.config/termusic/themes/pywal.yml
killall -SIGUSR1 -e termusic # exactly termusic, not termusic-server

Update: I also learned that termusic does not load the current them on start. I'm assuming it uses the tui.yml file instead... which while isn't impossible to hook into and modify, is quite inconvenient considering the functionality already exists to just load a theme, and it still doesn't update the terminal during operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant