Skip to content

Commit

Permalink
Omit timestamp in window title
Browse files Browse the repository at this point in the history
When option -w is used the one-liner status is shown in the window
title. Prior to this change it was shown with the timestamp prefix
which could use all the viewable title text in a window thumbnail.

Suggested-by: Bryan Kirk

Closes #5
  • Loading branch information
jay committed Apr 27, 2022
1 parent f13d573 commit b6e41d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battstatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ int main(int argc, char *argv[])
/* The status has changed enough to show the one-liner output. */

stringstream line;
line << TIMESTAMPED_PREFIX;
cout << TIMESTAMPED_PREFIX;
// Show the status in the same formats that the battery systray uses
if(NO_BATTERY(status)) {
// eg: No battery is detected
Expand Down

0 comments on commit b6e41d5

Please sign in to comment.