-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with brightness, volume-pulseaudio and usb scripts. #434
Comments
If you have an issue with the scripts and you even link the repository to them, why do not you report your issue there?
According to README: # i3blocks/config
[volume]
LONG_FORMAT=${VOL}%
SHORT_FORMAT=${VOL}%
# ...
diff --git a/backlight/backlight b/backlight/backlight
index fe774ff..21415d2 100755
--- a/backlight/backlight
+++ b/backlight/backlight
@@ -38,4 +38,4 @@ esac
BRIGHTNESS=$(xbacklight -get)
-echo "${BRIGHTNESS}%"
+printf '%.f%%\n' "$BRIGHTNESS"
diff --git a/usb/usb b/usb/usb
index f74f0e4..9df3161 100755
--- a/usb/usb
+++ b/usb/usb
@@ -95,17 +95,17 @@ def pangoEscape(text):
return text.replace("&", "&").replace("<", "<").replace(">", ">")
def getLeafDevicePaths():
- lines = check_output(['lsblk', '-spndo', 'NAME'], universal_newlines=True)
+ lines = check_output(['lsblk', '-lspndo', 'NAME'], universal_newlines=True)
lines = lines.split("\n")
lines = filter(None, lines)
return lines
def getKernelName(path):
- return check_output(['lsblk', '-ndso', 'KNAME', path],
+ return check_output(['lsblk', '-lndso', 'KNAME', path],
universal_newlines=True).rstrip("\n")
def getDeviceType(path):
- return check_output(['lsblk', '-no', 'TYPE', path],
+ return check_output(['lsblk', '-lno', 'TYPE', path],
universal_newlines=True).strip()
def getFSType(path): (Updated.) |
We are at i3blocks. And the scripts reside under i3blocks-contib, no? I do not get it.
Try They must be passed as environment variables to the script that only the latest
(Just a silly sanity check but you have removed the “+” before that line, yup?) Try running |
Yes, Sorry did not notice that.
OK, using the
Yes I have removed the
Running Also I have noticed, the |
Aaarrggh! Needs trailing new-line.
That uses unmaintained |
Yes,
Fancy things like? |
Dunno… clicking or such maybe… It just displays the number of updates and that’s it. |
It's fine I don't need clicking functionality. And what about the |
What about deleting |
Yes, that did it, and for the memory module, can I just show the used ram, instead of And please do share you |
diff --git a/memory/memory b/memory/memory
index 90eb2c6..470366c 100755
--- a/memory/memory
+++ b/memory/memory
@@ -52,10 +52,7 @@ END {
}
# full text
- printf("%.1fG/%.1fG (%.f%%)\n", used, total, pct)
-
- # short text
- printf("%.f%%\n", pct)
+ printf("%.1fG\n", used)
# color
if (pct > 90) {
Link is already at the comment.
No. But depending on what you are using to manage such packages it is just a matter of a simple addition. |
Thanks! memory module is good now, And I managed to fix the Only the USB module is not working now. |
I'm using
i3block
with all the sample scripts that are provided here, thebrightness
script outputs as41.025641%
, is there a way to output it as anint
like41%
?,for thevolume-pulseaudio
script, is there a way to just show volume percentage rather than the volume percentage and the sink, while still having the mouse click features to change output and mute. like it showsicon 10% [0:analog-stereo]
and the usb script is not working when I try to run it in the shell by doing./usb
it gives me this errorI'm using this on a laptop, having so many blocks on the bar can fill up pretty fast on a small resolution like
1366x768
.The text was updated successfully, but these errors were encountered: