We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With below simple script it's easier to choose your favorite theme.
Note:
allow_remote_control yes
kitty.conf
sudo chmod +x random_kitty". Then you can execute it with
#!/usr/bin/python import os import random import subprocess home = os.getenv("HOME") kitty = f"{home}/.config/kitty" choices_dir = f"{kitty}/kitty-themes/themes" choices = os.listdir(choices_dir) dest = f"{kitty}/theme.conf" if os.path.islink(dest): os.remove(dest) new_theme = random.choice(choices) new_theme_path = f"{choices_dir}/{new_theme}" os.symlink(new_theme_path, dest) command = f"kitty @ set-colors -a -c {kitty}/kitty.conf" subprocess.run(command, shell=True) print(f"Kitty theme set to {new_theme}")
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
With below simple script it's easier to choose your favorite theme.
Note:
allow_remote_control yes
in yourkitty.conf
sudo chmod +x random_kitty". Then you can execute it with
./random_kitty` or add it to your path.The text was updated successfully, but these errors were encountered: