Bruce Wang avatar Bruce Wang committed 8b2102d

updated

Comments (0)

Files changed (2)

+#!/bin/bash
+#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 ]
+then
+  cpu=$(echo $cpuFreq | cut -c1).$(echo $cpuFreq | cut -c2)GHz
+else
+  cpu=${cpuFreq}MHz
+fi
+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
-fi
 
-# 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
 
+setopt MULTIBYTE
 
 # Autoload zsh modules when they are referenced
 zmodload -a zsh/stat stat
     PR_NO_COLOR="%{$terminfo[sgr0]%}"
 PS1="[ $PR_RED%2c$PR_NO_COLOR ]%(!.#.$) "
 RPS1="$PR_LIGHT_YELLOW(%D{%m-%d %H:%M})$PR_NO_COLOR"
-#LANGUAGE=
-LC_ALL='zh_CN.UTF-8'
-LANG='zh_CN.UTF-8'
+LANGUAGE=en_US
+LC_ALL='en_US.UTF-8'
+LANG='en_US.UTF-8'
 LC_CTYPE=C
 
+LESSCHARSET=UTF-8
+
 # Shell options
 TIMEFMT=$'real\t%*Es\nuser\t%*Us\nsys \t%*Ss\ncpu \t%P'
 
 
 autoload -U compinit
 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
     }
 
+#setopt PRINT_EIGHT_BIT
+
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 ProjectModifiedEvent.java.
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.