cleanup reamde, bugfix in storage module padding

This commit is contained in:
koksnuss 2018-05-15 11:46:29 +02:00
parent a529bdff01
commit 8a9de5630a
2 changed files with 8 additions and 19 deletions

23
config
View File

@ -5,13 +5,11 @@ separator=false
command=$HOME/.config/i3blocks/modules/$BLOCK_NAME command=$HOME/.config/i3blocks/modules/$BLOCK_NAME
interval=5 interval=5
[backlight] # [backlight]
# label=backlight # label=☼
label=☼
# label=☀,☼,✱,✲,✳,✴,✵,✺ # label=☀,☼,✱,✲,✳,✴,✵,✺
[storage] [storage]
# label=storage
label=⛁ label=⛁
# label=⛀,⛁,⛂,⛃ # label=⛀,⛁,⛂,⛃
@ -19,21 +17,17 @@ label=⛁
# with instance=ram or instance=swap # with instance=ram or instance=swap
[ram] [ram]
label=⚟ label=⚟
# label=ram
# instance=ram # instance=ram
# [ram] # [ram]
# label=swap
# instance=swap # instance=swap
# separator_block_width=0
[cpu] [cpu]
label=☷ label=☷
# label=cpu
[ip] # [ip]
# label=ip # label=ip
label=⎋ # label=⎋
interval=once # interval=once
# if you have more than one batteries attached to your device and ou like # if you have more than one batteries attached to your device and ou like
# to see the single state of BATx where x is the number of your battery in # to see the single state of BATx where x is the number of your battery in
@ -52,19 +46,14 @@ interval=once
# ▏⟠, ⟰, ⟱, ⟲, ⟳, ⤋, ⤊, # ▏⟠, ⟰, ⟱, ⟲, ⟳, ⤋, ⤊,
# [battery] # [battery]
# instance=1 # instance=1
# separator_block_width=0
[audio] [audio]
# label=audio
label=◍ label=◍
# label=♩,♪,♫,♬ # label=♩,♪,♫,♬
separator_block_width=0 separator_block_width=0
[audio] [audio]
# label=mic
label=◎ label=◎
#label=⋓ℹ⋒ⅈ # label=⋓ℹ⋒ⅈ
instance=mic instance=mic
[datetime] [datetime]
label=
# instance=short

View File

@ -10,10 +10,10 @@ df | gawk '
printf("full\n") printf("full\n")
exit 33 exit 33
} else if (sfg > 5) { } else if (sfg > 5) {
printf("%.1f G \n", sfg) printf("%.1f G\n", sfg)
printf("%dG\n", sfg) printf("%dG\n", sfg)
} else { } else {
printf("%.0f M \n", sfm) printf("%.0f M\n", sfm)
printf("%dG\n", sfm) printf("%dG\n", sfm)
} }
if (sfg > 20) { if (sfg > 20) {