Browse Source

misc changes

pull/1/head
10sr 12 years ago
parent
commit
07b12a4a6f
4 changed files with 16 additions and 17 deletions
  1. +4
    -2
      bashrc
  2. +9
    -12
      conkyrc
  3. +2
    -2
      conkyrc.2
  4. +1
    -1
      xprograms

+ 4
- 2
bashrc View File

@@ -102,6 +102,7 @@ alias _reloadrc="test -f ~/.bashrc && source ~/.bashrc"
alias mytime="date +%Y%m%d-%H%M%S" alias mytime="date +%Y%m%d-%H%M%S"
alias sh="ENV=$HOME/.shrc PS1=\$\ sh" alias sh="ENV=$HOME/.shrc PS1=\$\ sh"
# type trash >/dev/null 2>&1 && alias rm=trash # type trash >/dev/null 2>&1 && alias rm=trash
alias wicdc=wicd-curses


alias aptin="apt-get install" alias aptin="apt-get install"
alias aptsearch="apt-cache search" alias aptsearch="apt-cache search"
@@ -142,7 +143,7 @@ showinfo(){
__try_exec diskinfo __try_exec diskinfo


! isdarwin && test -n "${DISPLAY}" && { ! isdarwin && test -n "${DISPLAY}" && {
__try_exec xrandr | grep --color=never ^Screen
__try_exec xrandr | \grep --color=never ^Screen
} }


iswindows || __try_exec finger $USER iswindows || __try_exec finger $USER
@@ -250,6 +251,7 @@ _my_git_config(){
git config --global user.name '10sr' git config --global user.name '10sr'
git config --global user.email '8slashes+git@gmail.com' git config --global user.email '8slashes+git@gmail.com'
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.excludesfile '~/.gitignore'
git config --global color.ui auto git config --global color.ui auto
git config --global status.relativePaths false git config --global status.relativePaths false
git config --global status.showUntrackedFiles normal git config --global status.showUntrackedFiles normal
@@ -373,7 +375,7 @@ __my_battery_status(){
alias bat='__my_battery_status %s\\n' alias bat='__my_battery_status %s\\n'


ip-address(){ ip-address(){
local ip=$(LANG=C ifconfig | grep --color=never "inet " | grep --color=never -v "127.0.0.1" | awk '{print $2}')
local ip=$(LANG=C ifconfig | \grep --color=never "inet " | \grep --color=never -v "127.0.0.1" | awk '{print $2}')
test -n "$ip" && printf $1 $ip test -n "$ip" && printf $1 $ip
} }




+ 9
- 12
conkyrc View File

@@ -30,9 +30,11 @@ gap_y 40
default_color green # slategrey default_color green # slategrey
default_shade_color lightgrey default_shade_color lightgrey
default_outline_color black default_outline_color black
color0 white
color1 white
color2 green
color0 white # value
color1 white # vertical border
color2 green # name
color3 yellow # displays
color4 888888 # border of netspeed graph


no_buffers yes no_buffers yes
uppercase no uppercase no
@@ -42,16 +44,12 @@ TEXT
${color0}${alignr}${sysname} ${kernel} (${machine}) ${color0}${alignr}${sysname} ${kernel} (${machine})
${color0}${alignr}${execi 30000 whoami}@${nodename} ${color0}${alignr}${execi 30000 whoami}@${nodename}
${color0}${hr} ${color0}${hr}
#${color2}host ${color1}|${color0} ${nodename}
${color2}uptm ${color1}|${color0} ${uptime} ${color2}uptm ${color1}|${color0} ${uptime}
${color2}lgin ${color1}|${color0} ${uptime} ${color2}lgin ${color1}|${color0} ${uptime}
#${color2}os ${color1}|${color0} ${sysname} ${kernel}
${color0}${stippled_hr} ${color0}${stippled_hr}
${color2}cpu ${color1}|${color0} ${cpu}% ${cpubar} ${color2}cpu ${color1}|${color0} ${cpu}% ${cpubar}
${color2}freq ${color1}|${color0} ${freq 1}Mhz | ${freq 2}Mhz ${color2}freq ${color1}|${color0} ${freq 1}Mhz | ${freq 2}Mhz
${color2}temp ${color1}|${color0} ${acpitemp} °C ${color2}temp ${color1}|${color0} ${acpitemp} °C
#${color2}btry ${color1}|${color0} ${battery}
#${color2}btime${color1}|${color0} ${battery_time}
${color0}${hr} ${color0}${hr}
${color2}ram ${color1}|${color0} ${mem} ${membar} ${color2}ram ${color1}|${color0} ${mem} ${membar}
${color2}swap ${color1}|${color0} ${if_match "${swapperc}" == "No swap"}None${else}${swap} ${swapbar}${endif} ${color2}swap ${color1}|${color0} ${if_match "${swapperc}" == "No swap"}None${else}${swap} ${swapbar}${endif}
@@ -66,10 +64,9 @@ ${color2}if ${color1}|${color0} ${gw_iface}:${addr}
${color2}ssid ${color1}|${color0} ${wireless_essid} ${color2}ssid ${color1}|${color0} ${wireless_essid}
${color0}${stippled_hr} ${color0}${stippled_hr}
${color2}down ${color1}|${color0} ${downspeed}/s ${color2}down ${color1}|${color0} ${downspeed}/s
${color #888888}${downspeedgraph ff0000 0000ff}
${color4}${downspeedgraph ff0000 0000ff}
${color2}up ${color1}|${color0} ${upspeed}/s ${color2}up ${color1}|${color0} ${upspeed}/s
${color #888888}${upspeedgraph 0000ff ff0000}
${color4}${upspeedgraph 0000ff ff0000}
${color0}${alignr}conky ${conky_version}
${color0}${hr} ${color0}${hr}
${alignr}conky ${conky_version}
# on Page${desktop}
#${color0}${alignr}${execi 900 cal -1}
${color3}${alignr}${texeci 10 bash -c 'xrandr|\grep " connected "|cut -f 1,3 -d " "'}

+ 2
- 2
conkyrc.2 View File

@@ -35,6 +35,6 @@ uppercase no
format_human_readable yes format_human_readable yes


TEXT TEXT
${color yellow}$$ tail -f -n 12 /var/log/everything.log
${color white}${tail /var/log/everything.log 12}
${color yellow}$$ tail -f -n 10 /var/log/everything.log
${color white}${tail /var/log/everything.log 10}
${time %b %d %T} ${time %b %d %T}

+ 1
- 1
xprograms View File

@@ -9,7 +9,7 @@ sh "$HOME/.fehbg"


tint2 & tint2 &


#dropboxd & # done by ~/.config/autostart/dropbox.desktop
dropboxd & # done by ~/.config/autostart/dropbox.desktop


volumeicon & volumeicon &




Loading…
Cancel
Save