Extremely basic theme swapping utility for Hyprland.
list
lists saved themesget
gets the currently set themeset
sets the themecreate <themeName>
save a new theme from the current configs
Note that when creating a theme with a name that is already used, hyprtheme will ask you if you would like to overwrite the existing theme. However, doing so will NOT delete any files that your current config does not include. E.g. if you previous theme had a README.md file, and you current configuration does not include this file, it will not be deleted. Only the files that you have stored in your config directory and added to the .themefiles will get overwritten.
Install it with yay
yay -S hyprtheme
or paru
paru -S hyprtheme
Before installing, make sure you have gcc installed.
Execute the following to automatically clone, compile and move the file to your bin directory:
git clone https://github.com/Javatrix/hyprtheme && cd hyprtheme && g++ -o hyprtheme src/* && sudo mv hyprtheme /usr/bin
List the files you want to save in ~/.config/hypr/themes/.themefiles
(the paths are relative to ~/.config/ and any directories are added recursively.
Example:
hypr/hyprland.conf
hypr/windowrules.conf
waybar/
wofi/
gtk-2.0/
gtk-3.0/
gtk-4.0/