|
Lines 27-48
Link Here
|
| 27 |
} |
27 |
} |
| 28 |
|
28 |
|
| 29 |
pkg_postinst() { |
29 |
pkg_postinst() { |
|
|
30 |
X11_IMPLEM_P="$(best_version virtual/x11)" |
| 31 |
X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}" |
| 32 |
X11_IMPLEM="${X11_IMPLEM##*\/}" |
| 33 |
|
| 30 |
einfo "To use this set of cursors, edit or create the file ~/.Xdefaults" |
34 |
einfo "To use this set of cursors, edit or create the file ~/.Xdefaults" |
| 31 |
einfo "and add the following line:" |
35 |
einfo "and add the following line:" |
| 32 |
einfo "Xcursor.theme: Silver" |
36 |
einfo "Xcursor.theme: Silver" |
| 33 |
einfo "" |
37 |
einfo "" |
| 34 |
einfo "Also, you can change the size by adding a line like:" |
38 |
einfo "You can change the size by adding a line like:" |
| 35 |
einfo "Xcursor.size: 48" |
39 |
einfo "Xcursor.size: 48" |
| 36 |
einfo "" |
40 |
einfo "" |
| 37 |
einfo "To globally use this set of mouse cursors edit the file:" |
41 |
einfo "Also, to globally use this set of mouse cursors edit the file:" |
| 38 |
einfo " /usr/share/cursors/${X11_IMPLEM}/default/index.theme" |
42 |
einfo " /usr/local/share/cursors/${X11_IMPLEM}/default/index.theme" |
| 39 |
einfo "and change the line:" |
43 |
einfo "and change the line:" |
| 40 |
einfo " Inherits=[current setting]" |
44 |
einfo " Inherits=[current setting]" |
| 41 |
einfo "to" |
45 |
einfo "to" |
| 42 |
einfo " Inherits=Silver" |
46 |
einfo " Inherits=Silver" |
|
|
47 |
einfo "" |
| 43 |
einfo "Note this will be overruled by a user's ~/.Xdefaults file." |
48 |
einfo "Note this will be overruled by a user's ~/.Xdefaults file." |
| 44 |
einfo "" |
49 |
einfo "" |
| 45 |
ewarn "If you experience flickering, try setting the following line in" |
50 |
ewarn "If you experience flickering, try setting the following line in" |
| 46 |
ewarn "the Device section of your XF86Config:" |
51 |
|
| 47 |
ewarn "Option \"HWCursor\" \"false\"" |
52 |
case ${X11_IMPLEM} in |
|
|
53 |
xfree) |
| 54 |
ewarn "the Device section of your XF86Config file:" |
| 55 |
;; |
| 56 |
xorg-x11) |
| 57 |
ewarn "the Device section of your xorg.conf file:" |
| 58 |
;; |
| 59 |
*) |
| 60 |
ewarn "the Device section of your X11 config file:" |
| 61 |
;; |
| 62 |
esac |
| 63 |
|
| 64 |
ewarn " Option \"HWCursor\" \"false\"" |
| 48 |
} |
65 |
} |