Add custom status bar;
j3s j3s@c3f.net
Fri, 16 Oct 2020 18:48:30 -0500
2 files changed,
10 insertions(+),
1 deletions(-)
M
.config/sway/config
→
.config/sway/config
@@ -220,7 +220,7 @@ position top
# 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
A
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