aboutsummaryrefslogtreecommitdiffstats
path: root/config.in
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-08 21:54:46 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-08 22:23:55 +1000
commit26bebb92664e62a2813194f9fa0a0f43408279d0 (patch)
tree288e28490a5947af035fbf73396aa55f06208e20 /config.in
parentswaybar: allow null status_command (diff)
downloadsway-26bebb92664e62a2813194f9fa0a0f43408279d0.tar.gz
sway-26bebb92664e62a2813194f9fa0a0f43408279d0.tar.zst
sway-26bebb92664e62a2813194f9fa0a0f43408279d0.zip
Add example status_command to default config
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"
202# Read `man 5 sway-bar` for more information about this section. 202# Read `man 5 sway-bar` for more information about this section.
203bar { 203bar {
204 position top 204 position top
205
206 # When the status_command prints a new line to stdout, swaybar updates.
207 # The default just shows the current date and time.
208 status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
209
205 colors { 210 colors {
206 statusline #ffffff 211 statusline #ffffff
207 background #323232 212 background #323232