Updates
This commit is contained in:
@@ -4,6 +4,7 @@ _getHeader "$name" "$author"
|
||||
echo "Define the date format for the clock module. Default: {:%Y-%m-%d}"
|
||||
# Define File
|
||||
targetFile="$HOME/dotfiles/waybar/modules.json"
|
||||
settingsFile="$HOME/dotfiles/.settings/waybar_date"
|
||||
|
||||
# Define Markers
|
||||
startMarker="\/\/ START CLOCK FORMAT"
|
||||
@@ -20,9 +21,11 @@ if [ ! -z $customvalue ]; then
|
||||
customtext="${customtemplate/VALUE/"$customvalue"}"
|
||||
|
||||
_replaceInFile $startMarker $endMarker $customtext $targetFile
|
||||
_writeSettings $settingsFile $customtext
|
||||
|
||||
# Reload Waybar
|
||||
setsid $HOME/dotfiles/waybar/launch.sh 1>/dev/null 2>&1 &
|
||||
_goBack
|
||||
else
|
||||
echo "ERROR: Define a value."
|
||||
sleep 2
|
||||
|
||||
Reference in New Issue
Block a user