desktop/i3: Fixed (Don't clobber config files)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-28 20:24:39 -04:00 committed by Robby Workman
parent 4d26f60eed
commit a9df89a5db
2 changed files with 8 additions and 3 deletions

View File

@ -12,6 +12,9 @@ config() {
}
config etc/i3/config.new
config etc/i3/welcome.new
config etc/i3/config.keycodes.new
config etc/X11/xinit/xinitrc.i3.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1

View File

@ -8,7 +8,7 @@
PRGNAM=i3
VERSION="4.2"
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@ -69,6 +69,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
# Don't clobber the default config
mv $PKG/etc/i3/config $PKG/etc/i3/config.new
mv $PKG/etc/i3/config.keycodes $PKG/etc/i3/config.keycodes.new
mv $PKG/etc/i3/welcome $PKG/etc/i3/welcome.new
# Make xterm default terminal
sed -i 's/urxvt/xterm/' $PKG/etc/i3/config.new
@ -79,8 +81,8 @@ ln -s $PKG/usr/share/xsessions/i3.desktop $PKG/usr/share/apps/kdm/sessions/
# Install an xinitrc script
mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.i3 > $PKG/etc/X11/xinit/xinitrc.i3
chmod 0755 $PKG/etc/X11/xinit/xinitrc.i3
cat $CWD/xinitrc.i3 > $PKG/etc/X11/xinit/xinitrc.i3.new
chmod 0755 $PKG/etc/X11/xinit/xinitrc.i3.new
# Install man pages
mkdir -p $PKG/usr/man/man1