Bruce Wang avatar Bruce Wang committed 8b2102d


Comments (0)

Files changed (2)

+#echo "<img>/usr/share/icons/Tango/16x16/apps/gnome-monitor.png</img>"
+declare -i cpuFreq
+cpuFreq=$(cat /proc/cpuinfo | grep "cpu MHz" | sed 's/\ \ */ /g' | cut -f3 -d" " | cut -f1 -d".")
+if [ $cpuFreq -ge 1000 ]
+  cpu=$(echo $cpuFreq | cut -c1).$(echo $cpuFreq | cut -c2)GHz
+  cpu=${cpuFreq}MHz
+fan_speed=$(cat /proc/acpi/ibm/fan | grep "speed:" |cut -f3)
+echo "<txt>"$(cat /proc/acpi/thermal_zone/THM0/temperature | sed 's/\ \ */ /g' | cut -f2 -d" ")" ℃</txt>"
+echo "<txt>Freq: "$cpu"</txt>"
+echo "<tool>Freq: "$cpu" Fan: $fan_speed</tool>"
-# .zshrc
-if [ -f /etc/profile ]; then
-    source /etc/profile
-# source vars for both shells
-source ~/.shellrc
 # next lets set some enviromental/shell pref stuff up
 # setopt NOHUP
 setopt   autopushd pushdminus extendedglob rcquotes mailwarning
 unsetopt bgnice autoparamslash
 # Autoload zsh modules when they are referenced
 zmodload -a zsh/stat stat
 PS1="[ $PR_RED%2c$PR_NO_COLOR ]%(!.#.$) "
 # Shell options
 TIMEFMT=$'real\t%*Es\nuser\t%*Us\nsys \t%*Ss\ncpu \t%P'
 autoload -U compinit
+bindkey -v
 bindkey '\e[3~' delete-char
 bindkey "^?" backward-delete-char
 bindkey '^[OH' beginning-of-line
 zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
 zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
 zstyle ':completion:*' menu select=1 _complete _ignored _approximate
-zstyle -e ':completion:*:approximate:*' max-errors \
-    'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
 zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
 # Completion Styles
 # list of completers to use
+# n:*' list-prompt '%SAt %p: Hit TAB for more, or the charac    ter to insert%s'
 zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
 # allow one error for every three characters typed in approximate completer
     unset td
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.