]> git.pld-linux.org Git - packages/XcursorTheme.git/blob - XcursorTheme-cursorconfig
- updated gettext BR
[packages/XcursorTheme.git] / XcursorTheme-cursorconfig
1 #!/bin/sh
2
3 alias nls='gettext -d cursorconfig'
4 file=~/.icons/default/index.theme
5 themes="core theme `ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,' -e 's/$/ theme/'`"
6 default=`grep -s Inherits $file | cut -f2 -d=`
7 [ -z "$default" ] || default="(core)"
8
9 theme=`dialog --title 'Cursorconfig' \
10         --backtitle "$(nls 'PLD Linux X Cursor Configuration Utility')" \
11         --output-fd 3 \
12         --menu "$(nls 'Available themes:') $default" $((($(echo $themes | wc -w)+7)/2)) 60 0 \
13         $themes 3>&1 >&2`
14 [ -z "$theme" ] && exit 0
15
16 mkdir -p ~/.icons/default || exit 1
17 [ -f $file ] && mv -f $file{,.old}
18 echo "[Icon Theme]" > $file
19 echo "Inherits=$theme" >> $file
This page took 0.035936 seconds and 3 git commands to generate.