]> git.pld-linux.org Git - packages/XcursorTheme.git/blame - XcursorTheme-cursorconfig
- what was that!? - fixed cursor selection method, use dialog
[packages/XcursorTheme.git] / XcursorTheme-cursorconfig
CommitLineData
a066aa1d
JB
1#!/bin/sh
2
3alias nls='gettext -d cursorconfig'
556f46c6
TP
4themes="core `ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,'`"
5default=`grep -s Inherits ~/.icons/default/index.theme | cut -f2 -d=`
6[ -z $default ] || default="($default)"
7
8theme=`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
15mkdir -p ~/.icons/default || exit 1
16echo "[Icon Theme]" > ~/.icons/default/index.theme
17echo "Inherits=$theme" >> ~/.icons/default/index.theme
This page took 0.02863 seconds and 4 git commands to generate.