I hereby claim:
- I am dbueno on github.
- I am denisbueno (https://keybase.io/denisbueno) on keybase.
- I have a public key ASCj3S6gBqDLp8_Lx2a6avmYmBjXDTreueGIPvv7LabJbwo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <netj@sparcs.org> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
a |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Designed to work with https://github.com/kfix/ddcctl | |
function get_primary_brightness() { | |
declare -A bparams | |
brightness_string=$(ioreg -c AppleBacklightDisplay | grep -o '"brightness"=[^}]*}') | |
# this should be something like `"brightness"={"min"=0,"max"=65535,"value"=4108}`, pull out the #'s | |
# order doesn't matter |