small pixel drawing of a pufferfish dotfiles

Add custom status bar;
j3s j3s@c3f.net
Fri, 16 Oct 2020 18:48:30 -0500
commit

0f77266ebc0e1fdb94d57d92ee2832f5cec02140

parent

7f57f860f03208aa4fee752178991e8d1617e4c8

2 files changed, 10 insertions(+), 1 deletions(-)

jump to
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