diff --git a/.config/sway/config b/.config/sway/config index 36921f0..82c6196 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -220,7 +220,7 @@ bar { # When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + status_command statusbar colors { statusline #ffffff diff --git a/bin/statusbar b/bin/statusbar new file mode 100755 index 0000000..dd64c78 --- /dev/null +++ b/bin/statusbar @@ -0,0 +1,9 @@ +#!/bin/sh + +while true +do + time=$(date +"%A %Y-%m-%d %I:%M %p") + time="$time $(date -u +"(%H:%M UTC)")" + printf "%s\n" "${time}" + sleep 10 +done