pywal icon indicating copy to clipboard operation
pywal copied to clipboard

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

Open indeedwatson opened this issue 6 years ago • 3 comments

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.

indeedwatson avatar Oct 15 '19 15:10 indeedwatson

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.

rockerBOO avatar Aug 25 '20 16:08 rockerBOO

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

indeedwatson avatar Oct 26 '21 03:10 indeedwatson

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.

hastiin-manuelito avatar Jun 22 '22 20:06 hastiin-manuelito