]> git.pld-linux.org Git - packages/XcursorTheme.git/blame - XcursorTheme-cursorconfig
- updated gettext BR
[packages/XcursorTheme.git] / XcursorTheme-cursorconfig
CommitLineData
a066aa1d
JB
1#!/bin/sh
2
3alias nls='gettext -d cursorconfig'
085c8b10 4file=~/.icons/default/index.theme
b016bd31 5themes="core theme `ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,' -e 's/$/ theme/'`"
085c8b10 6default=`grep -s Inherits $file | cut -f2 -d=`
b016bd31 7[ -z "$default" ] || default="(core)"
556f46c6
TP
8
9theme=`dialog --title 'Cursorconfig' \
10 --backtitle "$(nls 'PLD Linux X Cursor Configuration Utility')" \
b016bd31
TP
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
556f46c6
TP
15
16mkdir -p ~/.icons/default || exit 1
085c8b10
TP
17[ -f $file ] && mv -f $file{,.old}
18echo "[Icon Theme]" > $file
19echo "Inherits=$theme" >> $file
This page took 0.053707 seconds and 4 git commands to generate.