Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Dec 03 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Dec 03

Once you have the script made, go to system, preferences, keyboard
shortcuts, and click on add new. Hit the key combo you want, and type in the
name of your script under command. I think that would work. The script would
have to be a bit more advanced to have one shortcut to either turn it on or
off with the "modprobe" bit. Something where if it tries to turn it on and
returns a value of "false" (because its already on) it moves to an else to
turn it off, otherwise with a return of true the script ends? I'm not sure
how to approach that. If you have any luck writing it, please share! I
already do as Roy suggested and just have the two scripts, one for on and
another for off. I plan to try the shortcuts tonight when I get home as
well! Sadly, my bash skills have regressed quite a bit over the last few
years (they were never all that great to begin with).

Share: