@@ -133,12 +133,13 @@ showinfo(){ | |||||
__try_exec diskinfo | __try_exec diskinfo | ||||
! isdarwin && test -n "${DESKTOP_SESSION}" && type xrandr >/dev/null 2>&1 && { | |||||
xrandr | grep --color=never ^Screen | |||||
! isdarwin && test -n "${DISPLAY}" && { | |||||
__try_exec xrandr | grep --color=never ^Screen | |||||
} | } | ||||
iswindows || __try_exec finger $USER | iswindows || __try_exec finger $USER | ||||
LANG=C __try_exec id | LANG=C __try_exec id | ||||
__try_exec xset q | |||||
} | } | ||||
export __MYGITBAREREP="${HOME}/dbx/.git-bare" | export __MYGITBAREREP="${HOME}/dbx/.git-bare" | ||||
@@ -400,5 +401,5 @@ battery-status2(){ | |||||
ip-address(){ | ip-address(){ | ||||
local ip=$(LANG=C ifconfig | grep "inet " | grep -v "127.0.0.1" | awk '{print $2}') | local ip=$(LANG=C ifconfig | grep "inet " | grep -v "127.0.0.1" | awk '{print $2}') | ||||
test -n $ip && printf $1 $ip | |||||
test -n "$ip" && printf $1 $ip | |||||
} | } |
@@ -12,6 +12,8 @@ type synclient >/dev/null 2>&1 && { | |||||
synclient MinSpeed=0.2 | synclient MinSpeed=0.2 | ||||
} | } | ||||
xset s 1800 # go blank after 30 min | |||||
unset LC_MESSAGES | unset LC_MESSAGES | ||||
export LANG=ja_JP.utf8 | export LANG=ja_JP.utf8 | ||||
@@ -12,11 +12,12 @@ tint2 & | |||||
#dropboxd & # done by ~/.config/autostart/dropbox.desktop | #dropboxd & # done by ~/.config/autostart/dropbox.desktop | ||||
volumeicon & | volumeicon & | ||||
#wicd-client --tray & # done by /etc/xdg/autostart/wicd-client.desktop | #wicd-client --tray & # done by /etc/xdg/autostart/wicd-client.desktop | ||||
# Detection of insertion of an optical disk | # Detection of insertion of an optical disk | ||||
if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then | if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then | ||||
udisks --poll-for-media /dev/sr0 | udisks --poll-for-media /dev/sr0 | ||||
fi | fi | ||||
udisksvm >/dev/null & | udisksvm >/dev/null & | ||||