dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.37k stars 326 forks source link

Question/possible feature request: How to get the name of the current theme? #458

Open indeedwatson opened 5 years ago

indeedwatson commented 5 years ago

I have a shortcut in i3 to refresh i3 and reload wal with a random theme. Sometimes I'll land on a theme I really like and might just want to stick to that one for a while, but I have no idea how to find out what's the name of a theme.

To have a command like wal --current output the name of the current theme would be nice.

rockerBOO commented 4 years ago

The current theme is saved to ~/.cache/wal/last_used_theme

Maybe someone can add something to try to read that file or use the wal config.

indeedwatson commented 2 years ago

I'm back here cause I have the same issue 2 years later. There is no such thing as ~/.cache/wal/last_used_theme

hastiin-manuelito commented 2 years ago

You can do this, for now, having found a theme you particularly like. cp ~/.cache/wal/colors.json ~/.config/wal/colorscheme/dark/favorite.json I am assuming, of course, that it is a dark theme.

Afterwards, your "favorite" theme will be listed when you call wal --theme.