Coder Social home page Coder Social logo

ktoso / g73-keyboard-backlight-sh Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 221 KB

A super simple script to enable the G73 notebook series keyboard backlight on GNU/Linux systems

Home Page: http://www.blog.project13.pl

License: Other

Shell 100.00%

g73-keyboard-backlight-sh's Introduction

Asus G73 Keyboard Backlight GNU/Linux Scripts

To enable the Fn + F3 and Fn + F4 shortcuts to work under linux and really manipulate the backlight brighntess on your Asus G73 series notebook, follow theese simple steps:

  1. Clone this repository to your home directory (or wherever you want to, I'll do this example for ~/ for simplicity)

     cd
     git clone git://github.com/ktoso/g73-keyboard-backlight-sh.git g73
    
  2. Make sure all scripts are marked executable:

     cd g73
     chmod +x *.sh
    
  3. Take a look at these scripts to make sure you trust them, why? Because they'll need root access, without asking for the password . Now we'll add these scripts to allow sudoto run them without asking for any password:

     su -c 'visudo' # or 'sudo visudo' if you're a sudoer (on ubuntu etc)
    

There just add the following lines at the end of this file (or similar, with the script names etc). Of course, replace ktoso and /home/ktoso/ with your username and your home directory.

    ## allow running keyboard backlight scripts
    ktoso ALL=(ALL) NOPASSWD:/home/ktoso/g73/*
  1. Now all that's left is to setup the key bindings for the scripts. If you're on KDE4, just go to System Settings -> Shortcuts and Gestures -> Custom Shortcuts and edit -> import... the file ~/g73/g73_keyboard.khotkeys which contains ready keybindings for these scripts. Now you may use Fn + F3 to make the keyboard backlight shine less, and the Fn + F4 combination to make it shine more.

    If you're on a GNOME or other windowing system, please follow the usual steps for them to add some own keybinding. What you want to bind is simply calling the ~/g73/g73_light_up.sh and ~/g73/g73_light_down.sh scrips - easy :-)

License

I hereby release this script as Beerware. Just for fun I guess ;-) The text bellow is the full text of the license:

  "THE BEER-WARE LICENSE" (Revision 42):
  <[email protected]> wrote this file. As long as you retain this notice you
  can do whatever you want with this stuff. If we meet some day, and you think
  this stuff is worth it, you can buy me a beer in return.
  -- 
  Konrad Malawski

Comments

I'll be more than happy if you'd drop a comment here if you used this script by the way: http://www.blog.project13.pl/index.php/fun/1163/g73-keyboard-backlight-scripts-source-github/ :-)

g73-keyboard-backlight-sh's People

Contributors

ktoso avatar laogao avatar necrose99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

g73-keyboard-backlight-sh's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.