X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/330b33e258be1cc2ff5cb966c5654c3e1b1edbf4..159aaffc22a56b9c4a0a402367338281b3b98aaa:/dot/xinitrc diff --git a/dot/xinitrc b/dot/xinitrc index 5d8bb25..e5bc1b3 100755 --- a/dot/xinitrc +++ b/dot/xinitrc @@ -139,6 +139,9 @@ initialize () { run init xset r rate 500 50 run init xset m 2 1 + ## Unclutter. + if type -t >/dev/null unclutter; then run bgclients unclutter -root -idle 7; fi + ## Key mappings. xmodmap $HOME/.xmodmap if [ -r $HOME/.xmodmap-local ]; then @@ -278,10 +281,10 @@ case "$term" in ## The pterm width differs according to whether it's linked against Gtk 2 ## or 3. Let's find out... case $(ldd $(command -v pterm) | grep libgtk) in - libgtk-2*) t_wd=504 ;; - *) t_wd=502 ;; + *libgtk-2* | *libgtk-x11-2*) t_wd=504 ;; + *) t_wd=503 ;; esac - t_lineht=13 t_vextra=23 geom=-geometry;; + t_lineht=13 t_vextra=23 geom=-geometry;; Eterm) t_wd=504 t_lineht=13 t_vextra=23 geom=-g;; xterm) t_wd=507 t_lineht=13 t_vextra=27 geom=-geometry;; esac @@ -441,7 +444,7 @@ EOF eval "${line#!}" ;; *) - set -- $line + eval "set -- $line" run bgclients "$@" ;; esac