v-refresh-sys-theme 899 B

1234567891011121314151617181920212223242526272829
  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. # shellcheck source=/usr/local/hestia/func/main.sh
  14. source $HESTIA/func/main.sh
  15. # shellcheck source=/usr/local/hestia/conf/hestia.conf
  16. source $HESTIA/conf/hestia.conf
  17. #----------------------------------------------------------#
  18. # Action #
  19. #----------------------------------------------------------#
  20. # Store current theme name
  21. CURRENT_THEME=$THEME
  22. # Cycle theme to regenerate (helps if cache is stuck)
  23. $BIN/v-change-sys-theme default
  24. $BIN/v-change-sys-theme $CURRENT_THEME