# DPMS on notebook: standby - 10 minutes, suspend - 15 minutes, off - 20 minutes
xset dpms 600 900 1200
+pulseaudio --start
xscreensaver &
xbindkeys
xxkb &
# start a small console shell
#xterm -C -geometry 80x8-0+0 -n Console -T Consle -ls +ut -fn 6x10 &
-#WIDTH=1024: 85x85+400+1
-#WIDTH=1600: 100x100+600+1
-#WIDTH=1920: 150x150+880+1
-xclock -geometry 100x100+600+1 -bg white -update 1 &
+screen_width=`xrandr --current | head -1 | awk '{print $8}'`
+if [ $screen_width = 1024 ]; then
+ xclcok_geom=85x85+400+1
+elif [ $screen_width = 1600 ]; then
+ xclcok_geom=100x100+600+1
+elif [ $screen_width = 1920 ]; then
+ xclcok_geom=150x150+880+1
+fi
+test -n "$xclcok_geom" && xclock -geometry $xclcok_geom -bg white -update 1 &
+unset screen_width xclcok_geom
# multi-biff
#xbuffy -fn '-*-helvetica-bold-r-*-*-*-100-*-*-*-*-koi8-r' -geometry +0+125 -boxfile mail/misc/.xbuffyrc &
dbus-launch --exit-with-session gpg-agent --daemon "$WINDOW_MANAGER"
# Stop pulseaudio, xscreensaver and xsetbg.py
-pulseaudio -k
+pulseaudio --kill
xscreensaver-command -exit &
"$HOME"/current/projects/xsetbg/xsetbg-http-stop &