sketchybar: init
This commit is contained in:
parent
cc92b9c72c
commit
37f5757b2c
8 changed files with 257 additions and 0 deletions
15
stow/.config/sketchybar/plugins/clock.sh
Executable file
15
stow/.config/sketchybar/plugins/clock.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# The $NAME variable is passed from sketchybar and holds the name of
|
||||
# the item invoking this script:
|
||||
# https://felixkratz.github.io/SketchyBar/config/events#events-and-scripting
|
||||
|
||||
HOUR=$(date +%l)
|
||||
|
||||
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 +'%a %d %b') $(date +'%I:%M %p')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue