dot/xinitrc: Invoke `unclutter' in a not-broken way.
[profile] / dot / xinitrc
index 5d8bb25..e5bc1b3 100755 (executable)
@@ -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