From 26bebb92664e62a2813194f9fa0a0f43408279d0 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 8 Oct 2018 21:54:46 +1000 Subject: Add example status_command to default config --- config.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.in') diff --git a/config.in b/config.in index 124f825d..72523816 100644 --- a/config.in +++ b/config.in @@ -202,6 +202,11 @@ bindsym $mod+r mode "resize" # Read `man 5 sway-bar` for more information about this section. bar { 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 + colors { statusline #ffffff background #323232 -- cgit v1.2.3-54-g00ecf