mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-06 17:38:45 +00:00
Add hyprstack config
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
(defwidget clock []
|
||||
(box :class "clock"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
date-time)
|
||||
)
|
||||
|
||||
(defpoll date-time :interval "1s"
|
||||
"sh widgets/clock/date-time.sh")
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
DaySuffix() {
|
||||
case `date +%-d` in
|
||||
1|21|31) echo "st";;
|
||||
2|22) echo "nd";;
|
||||
3|23) echo "rd";;
|
||||
*) echo "th";;
|
||||
esac
|
||||
}
|
||||
|
||||
date=$(date "+%a, %b %-d`DaySuffix` · %H:%M")
|
||||
printf "%s" "$date"
|
||||
Reference in New Issue
Block a user