v-refresh-sys-theme 793 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # info: change active system theme
  3. # options: NONE
  4. # labels: hestia
  5. #
  6. # example: v-refresh-sys-theme
  7. #
  8. # The function for changing the currently active system theme.
  9. #----------------------------------------------------------#
  10. # Variable&Function #
  11. #----------------------------------------------------------#
  12. # Includes
  13. source $HESTIA/func/main.sh
  14. source $HESTIA/conf/hestia.conf
  15. #----------------------------------------------------------#
  16. # Action #
  17. #----------------------------------------------------------#
  18. # Store current theme name
  19. CURRENT_THEME=$THEME
  20. # Cycle theme to regenerate (helps if cache is stuck)
  21. $BIN/v-change-sys-theme default
  22. $BIN/v-change-sys-theme $CURRENT_THEME