Skip to content

Commit

Permalink
Update memory
Browse files Browse the repository at this point in the history
Adding a new line should fix the i3-wm error

```log
Jan 31 15:50:40 grid i3-gnome-flashback.desktop[7208]: [libi3] ../../i3-gaps-wm-4.17.1/libi3/font.c Using Pango font Source Code Pro Medium 13,FontAwesome, size 13
```
  • Loading branch information
baldrailers authored Jan 31, 2020
1 parent d903496 commit bbbed90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/memory
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ awk -v type=$TYPE -v vc="$VALUE_COLOR" -v li="$LABEL_ICON" -v lc="$LABEL_COLOR"
END {
# full text
if (type == "swap")
printf("<span color=\"%s\">%s</span><span font_desc=\"%s\" color=\"%s\"> %.1fG</span>", lc, li, vf, vc, (swap_total-swap_free)/1024/1024)
printf("<span color=\"%s\">%s</span><span font_desc=\"%s\" color=\"%s\"> %.1fG</span>\n", lc, li, vf, vc, (swap_total-swap_free)/1024/1024)
else
printf("<span color=\"%s\">%s</span><span font_desc=\"%s\" color=\"%s\"> %.1fG</span>", lc, li, vf, vc, mem_free/1024/1024)
printf("<span color=\"%s\">%s</span><span font_desc=\"%s\" color=\"%s\"> %.1fG</span>\n", lc, li, vf, vc, mem_free/1024/1024)
}
' /proc/meminfo

0 comments on commit bbbed90

Please sign in to comment.