X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/9850239276b1911fe285ac625ce8d8d5d9630190..90390240487da0045dac91f05098c59d0cc45981:/dot/xinitrc diff --git a/dot/xinitrc b/dot/xinitrc index cf54467..3141367 100755 --- a/dot/xinitrc +++ b/dot/xinitrc @@ -87,15 +87,12 @@ initialize () { run init xrdb -override $HOME/.Xdefaults ## Random xsettery. - run init xset b 10 2000 50 + run init xset b 5 2000 50 run init xset r rate 500 50 run init xset m 2 1 ## Key mappings. xmodmap -e 'keysym BackSpace = BackSpace BackSpace' - - ## Gnome settings. - case $vnc in no) run bginit gnome-settings-daemon ;; esac } ###-------------------------------------------------------------------------- @@ -147,31 +144,19 @@ start-window-manager () { start-clients-local () { :; } start-clients () { - ## Mail notification. - run bginit mail-notification - - ## Gnome session. With great reluctance. At least it doesn't actually do - ## anything. - run bginit gnome-session - - ## Policykit authentication agent. - agent=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 - if [ -x $agent ]; then run bginit $agent; fi - ## System monitor. - case $vnc in no) run bginit gkrellm ;; esac - - ## Screensaver. - case $vnc in - no) - run init xscreensaver-command -exit - run bginit xscreensaver -no-splash + ## Gnome session. + case "$vnc,$(gnome-session --version 2>&1)" in + no,gnome-session\ 2.3[2-9].* | \ + no,gnome-session\ 2.4[0-9].* | \ + no,gnome-session\ 2.[1-9][0-9][0-9]*) + run bginit gnome-session --session mdw + ;; + no,*) + run bginit gnome-session ;; esac - ## Panel. - case $vnc in no) run bginit gnome-panel ;; esac - ## Local clients. start-clients-local } @@ -337,7 +322,7 @@ EOF eval "${line#!}" ;; *) - set -- $line + set -- $line run bgclients "$@" ;; esac