X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.xinitrc;h=b1e4f7ed9eca3a02e2237478a6d55406e776bc22;hb=a3ebe5ef2d716f8eba1e2e3663e0235a9dcc6413;hp=4a1b23f6b801260d7d164e6f96c4b592be142258;hpb=a34bfb1919bca15f01c6d52ccee09119edc3b7d4;p=dotfiles.git diff --git a/.xinitrc b/.xinitrc index 4a1b23f..b1e4f7e 100644 --- a/.xinitrc +++ b/.xinitrc @@ -76,10 +76,16 @@ synclient AccelFactor=0.1 MaxDoubleTapTime=80 MaxSpeed=1 RightEdge=5000 \ # 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 & @@ -92,6 +98,6 @@ fi 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 &