diff options
author | Mike Crute <mike@crute.us> | 2022-10-08 10:39:14 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2022-10-08 10:39:14 -0700 |
commit | 9b234edeb6d57c911a0ac767fb82e5bf6fd92783 (patch) | |
tree | 1d13db093fdb28fd8e381f820c8876c107c374bd /bin | |
parent | 531201dd29c39581f6d9f31af7ad62a5b7c26539 (diff) | |
download | dotfiles-9b234edeb6d57c911a0ac767fb82e5bf6fd92783.tar.bz2 dotfiles-9b234edeb6d57c911a0ac767fb82e5bf6fd92783.tar.xz dotfiles-9b234edeb6d57c911a0ac767fb82e5bf6fd92783.zip |
Add clock widget
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vclock | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/vclock b/bin/vclock new file mode 100755 index 0000000..f53b090 --- /dev/null +++ b/bin/vclock | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | color="#AAA" | ||
4 | |||
5 | if [[ "$1" == "-s" ]]; then | ||
6 | xclock -digital -strftime "%H:%M:%S" -face ":size=100:antialias=true:autohint=true" -fg $color -bg black -update 1 | ||
7 | else | ||
8 | xclock -digital -strftime "%H:%M" -face ":size=100:antialias=true:autohint=true" -fg $color -bg black -update 1 | ||
9 | fi | ||