Sfoglia il codice sorgente

screen go blank after 30 min

pull/1/head
10sr 12 anni fa
parent
commit
0579015031
3 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. +4
    -3
      bashrc
  2. +2
    -0
      xinitrc
  3. +2
    -1
      xprograms

+ 4
- 3
bashrc Vedi File

@@ -133,12 +133,13 @@ showinfo(){

__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
LANG=C __try_exec id
__try_exec xset q
}

export __MYGITBAREREP="${HOME}/dbx/.git-bare"
@@ -400,5 +401,5 @@ battery-status2(){

ip-address(){
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
}

+ 2
- 0
xinitrc Vedi File

@@ -12,6 +12,8 @@ type synclient >/dev/null 2>&1 && {
synclient MinSpeed=0.2
}

xset s 1800 # go blank after 30 min

unset LC_MESSAGES
export LANG=ja_JP.utf8


+ 2
- 1
xprograms Vedi File

@@ -12,11 +12,12 @@ tint2 &
#dropboxd & # done by ~/.config/autostart/dropbox.desktop

volumeicon &

#wicd-client --tray & # done by /etc/xdg/autostart/wicd-client.desktop

# Detection of insertion of an optical disk
if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then
udisks --poll-for-media /dev/sr0
fi

udisksvm >/dev/null &


Caricamento…
Annulla
Salva