aboutsummaryrefslogtreecommitdiff
path: root/config.in
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-08 14:42:48 +0200
committerGitHub <noreply@github.com>2018-10-08 14:42:48 +0200
commit6cb0e58c6d26efa2bca9b3710df08ed1aea09aea (patch)
tree1036293744616474f190d30f7ae5428579e82900 /config.in
parentb3b17280de54021657eabf2df4c3dbfd0039bac8 (diff)
parent5e1983660dddc40d60026cbd0daf96d880f24fb9 (diff)
Merge pull request #2791 from RyanDwyer/status-command-optional
swaybar: allow null status_command
Diffstat (limited to 'config.in')
-rw-r--r--config.in5
1 files changed, 5 insertions, 0 deletions
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