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