sketchybar: change the clock format to more resemble macOS's
This commit is contained in:
parent
198e8ec594
commit
e8028e3a26
2 changed files with 2 additions and 10 deletions
|
|
@ -4,12 +4,4 @@
|
||||||
# the item invoking this script:
|
# the item invoking this script:
|
||||||
# https://felixkratz.github.io/SketchyBar/config/events#events-and-scripting
|
# https://felixkratz.github.io/SketchyBar/config/events#events-and-scripting
|
||||||
|
|
||||||
HOUR=$(date +%l)
|
sketchybar --set "$NAME" label="$(date +'%a %d %b%l:%M %p')"
|
||||||
|
|
||||||
if (( $HOUR >= 10 )); then
|
|
||||||
sketchybar --set "$NAME" label.padding_right=10
|
|
||||||
else
|
|
||||||
sketchybar --set "$NAME" label.padding_right=20
|
|
||||||
fi
|
|
||||||
|
|
||||||
sketchybar --set "$NAME" label="$(date +'%l:%M %p')"
|
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ sketchybar --add item clock right \
|
||||||
update_freq=10 \
|
update_freq=10 \
|
||||||
background.padding_right=0 \
|
background.padding_right=0 \
|
||||||
background.padding_left=0 \
|
background.padding_left=0 \
|
||||||
label.padding_right=20 \
|
label.padding_right=10 \
|
||||||
script="$PLUGIN_DIR/clock.sh"
|
script="$PLUGIN_DIR/clock.sh"
|
||||||
|
|
||||||
# Input Method
|
# Input Method
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue