]> git.pld-linux.org Git - packages/XcursorTheme.git/blob - XcursorTheme-cursorconfig
- what was that!? - fixed cursor selection method, use dialog
[packages/XcursorTheme.git] / XcursorTheme-cursorconfig
1 #!/bin/sh
2
3 alias nls='gettext -d cursorconfig'
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
This page took 0.047965 seconds and 3 git commands to generate.