Browse Source

Add v-refresh-sys-theme

Kristan Kenney 6 years ago
parent
commit
a78b93ef92
1 changed files with 21 additions and 0 deletions
  1. 21 0
      bin/v-refresh-sys-theme

+ 21 - 0
bin/v-refresh-sys-theme

@@ -0,0 +1,21 @@
+#!/bin/bash
+# The function for changing the currently active system theme.
+
+#----------------------------------------------------------#
+#                    Variable&Function                     #
+#----------------------------------------------------------#
+
+# Includes
+source $HESTIA/func/main.sh
+source $HESTIA/conf/hestia.conf
+
+#----------------------------------------------------------#
+#                       Action                             #
+#----------------------------------------------------------#
+
+# Store current theme name
+CURRENT_THEME=$THEME
+
+# Cycle theme to regenerate (helps if cache is stuck)
+$BIN/v-change-sys-theme default
+$BIN/v-change-sys-theme $CURRENT_THEME