Skip to content

Commit

Permalink
replace xbacklight with light
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebenramirez committed Feb 9, 2015
1 parent 641cd35 commit a18fd39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .xbindkeysrc
Expand Up @@ -23,14 +23,14 @@
#################################
# Screen Brightness -
#################################
"xbacklight -10%; sh ~/.xsetroot.sh"
"light -U 10; sh ~/.xsetroot.sh"

This comment has been minimized.

Copy link
@ruebenramirez

ruebenramirez Feb 9, 2015

Author Owner

decrease the brightness by 10%

m:0x0 + c:232
XF86MonBrightnessDown

#################################
# Screen Brightness +
#################################
"xbacklight +10%; sh ~/.xsetroot.sh"
"light -A 10; sh ~/.xsetroot.sh"
m:0x0 + c:233
XF86MonBrightnessUp

This comment has been minimized.

Copy link
@ruebenramirez

ruebenramirez Feb 9, 2015

Author Owner

increase the brightness by 10%


Expand Down
2 changes: 1 addition & 1 deletion .xsetroot.sh
Expand Up @@ -3,7 +3,7 @@ set +e

BAT="Bat. $(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')"
VOL="vol. $(amixer -D pulse get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')"
BRIGHT="bLight. $(xbacklight -get | cut -d . -f 1)"
BRIGHT="bLight. $(light -G | cut -d . -f 1)"

This comment has been minimized.

Copy link
@ruebenramirez

ruebenramirez Feb 9, 2015

Author Owner

displays the current brightness on my desktop

LOCALTIME=$(date +%m/%d\/%Y\ %r)

xsetroot -name "$BAT << $VOL << $BRIGHT << $LOCALTIME"
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -51,9 +51,14 @@ shutter:

xdotool:
- sudo apt-get install -y xdotool

light:
- sudo dpkg -i ~/.dotfiles/pkgs/light_20140713-1_i386.deb

This comment has been minimized.

Copy link
@ruebenramirez

ruebenramirez Feb 9, 2015

Author Owner

installs the package when I change directories to ~/.dotfiles/ and then run make light


desktopAppConfigs:
shutter
xdotool
light

customBins:
if [ ! -d ~/bin/ ]; \
Expand Down
Binary file added pkgs/light_20140713-1_i386.deb
Binary file not shown.

0 comments on commit a18fd39

Please sign in to comment.