Skip to content

Commit a78b93e

Browse files
author
Kristan Kenney
committed
Add v-refresh-sys-theme
1 parent cebf4bd commit a78b93e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

bin/v-refresh-sys-theme

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
# The function for changing the currently active system theme.
3+
4+
#----------------------------------------------------------#
5+
# Variable&Function #
6+
#----------------------------------------------------------#
7+
8+
# Includes
9+
source $HESTIA/func/main.sh
10+
source $HESTIA/conf/hestia.conf
11+
12+
#----------------------------------------------------------#
13+
# Action #
14+
#----------------------------------------------------------#
15+
16+
# Store current theme name
17+
CURRENT_THEME=$THEME
18+
19+
# Cycle theme to regenerate (helps if cache is stuck)
20+
$BIN/v-change-sys-theme default
21+
$BIN/v-change-sys-theme $CURRENT_THEME

0 commit comments

Comments
 (0)