]>
Commit | Line | Data |
---|---|---|
a066aa1d JB |
1 | #!/bin/sh |
2 | ||
3 | alias nls='gettext -d cursorconfig' | |
556f46c6 TP |
4 | themes="core `ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,'`" |
5 | default=`grep -s Inherits ~/.icons/default/index.theme | cut -f2 -d=` | |
6 | [ -z $default ] || default="($default)" | |
7 | ||
8 | theme=`dialog --title 'Cursorconfig' \ | |
9 | --backtitle "$(nls 'PLD Linux X Cursor Configuration Utility')" \ | |
10 | --one-column \ | |
11 | --menu "$(nls 'Available themes:') $default" $(($(echo $themes | wc -w)+7)) 60 0 \ | |
12 | $themes` | |
13 | [ -z $theme ] && exit 0 | |
14 | ||
15 | mkdir -p ~/.icons/default || exit 1 | |
16 | echo "[Icon Theme]" > ~/.icons/default/index.theme | |
17 | echo "Inherits=$theme" >> ~/.icons/default/index.theme |