diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-08 14:42:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 14:42:48 +0200 |
commit | 6cb0e58c6d26efa2bca9b3710df08ed1aea09aea (patch) | |
tree | 1036293744616474f190d30f7ae5428579e82900 /config.in | |
parent | Merge pull request #2789 from RyanDwyer/reload-idle (diff) | |
parent | Allow status_command to be disabled via IPC (diff) | |
download | sway-6cb0e58c6d26efa2bca9b3710df08ed1aea09aea.tar.gz sway-6cb0e58c6d26efa2bca9b3710df08ed1aea09aea.tar.zst sway-6cb0e58c6d26efa2bca9b3710df08ed1aea09aea.zip |
Merge pull request #2791 from RyanDwyer/status-command-optional
swaybar: allow null status_command
Diffstat (limited to 'config.in')
-rw-r--r-- | config.in | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |
203 | bar { | 203 | bar { |
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 |