kitty-loop-themes.sh 454 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. # https://github.com/dexpota/kitty-themes
  4. path="${DOTFILES}/.config/kitty/kitty-themes/themes"
  5. # for theme in $(find . -type f -name "*.conf" | shuf); do
  6. random=$(find "${path}" -type f -name "*.conf" | shuf)
  7. # for theme in $random; do
  8. # ln -sf "$theme" "${HOME}/.config/kitty/theme.conf"
  9. # sleep 1h
  10. # done
  11. ln -sf "$(echo "$random" | head -n1)" "${HOME}/.config/kitty/theme.conf"
  12. kitty