Skip to content

Commit

Permalink
Add example status_command to default config
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDwyer committed Oct 8, 2018
1 parent 41bfd8c commit 26bebb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26bebb9

Please sign in to comment.