Browse Source

Added bin/cpu, bin/dict, bin/open_mailto.sh

master
James Wheaton 8 years ago
parent
commit
04c28bcbd5
3 changed files with 18 additions and 0 deletions
  1. 13
    0
      bin/cpu
  2. 3
    0
      bin/dict
  3. 2
    0
      bin/open_mailto.sh

+ 13
- 0
bin/cpu View File

@@ -0,0 +1,13 @@
#!/bin/sh

case "$1" in
save)
/usr/bin/sudo /usr/bin/cpufreq-set -g powersave;
/usr/bin/sudo /usr/bin/cpufreq-set -c 1 -g powersave;
;;
perf)
/usr/bin/sudo /usr/bin/cpufreq-set -g performance;
/usr/bin/sudo /usr/bin/cpufreq-set -c 1 -g performance;
;;
esac

+ 3
- 0
bin/dict View File

@@ -0,0 +1,3 @@
#!/bin/sh

curl -s dict://dict.org/d:$1 | grep -e '^[ \t]'

+ 2
- 0
bin/open_mailto.sh View File

@@ -0,0 +1,2 @@
notify-send -i mail 'GMailing' `echo $1 | sed 's/mailto://'`
/opt/google/chrome/google-chrome -app="https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`"

Loading…
Cancel
Save