Skip to content

Commit

Permalink
add utc time to sway bar
Browse files Browse the repository at this point in the history
  • Loading branch information
abysssol committed Jul 27, 2024
1 parent aba145f commit f6e3200
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ mode "layout" bindsym {
# Status Bar:
#

set $date $(date +'%a %b %F %T')
set $utc $(date -u +'%F %T')
set $date $(date +'%a %b %F %T')

bar {
position top
Expand All @@ -255,7 +256,7 @@ bar {
icon_theme "paper"

status_command while sleep 1; do \
echo "\"$date \""; \
echo "\"$utc UTC | $date \""; \
done

colors {
Expand Down

0 comments on commit f6e3200

Please sign in to comment.