From 388569ae5bb80197ef16c7e0633fc58dafb12028 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 7 Dec 2016 19:16:46 +0100 Subject: [PATCH] Add i3 stuff --- etc/X11/xinit/xinitrc.i3 | 33 +++++++++++++++++++++++++++++++++ etc/astronaut.conf | 1 + rocket-config.SlackBuild | 4 ++-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 etc/X11/xinit/xinitrc.i3 diff --git a/etc/X11/xinit/xinitrc.i3 b/etc/X11/xinit/xinitrc.i3 new file mode 100644 index 0000000..407a989 --- /dev/null +++ b/etc/X11/xinit/xinitrc.i3 @@ -0,0 +1,33 @@ +#!/bin/sh +# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +# Start the window manager: +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + exec ck-launch-session /usr/bin/i3 +else + exec /usr/bin/i3 +fi + diff --git a/etc/astronaut.conf b/etc/astronaut.conf index d7efa7f..899ff9a 100644 --- a/etc/astronaut.conf +++ b/etc/astronaut.conf @@ -12,6 +12,7 @@ dir_infodir='info' package_options() { case "$1" in astronaut) echo 'pkgtools,helpers' ;; + i3) echo 'window-icons' ;; esac } diff --git a/rocket-config.SlackBuild b/rocket-config.SlackBuild index 0648388..491697a 100755 --- a/rocket-config.SlackBuild +++ b/rocket-config.SlackBuild @@ -2,7 +2,7 @@ PKGNAM=rocket-config VERSION=14.2 -BUILD=${BUILD:-5rocket} +BUILD=${BUILD:-6rocket} ARCH=noarch CWD=$(pwd) @@ -30,7 +30,7 @@ find $CWD/etc -type f ! -name '*.orig' -printf '%P\n' | while read config; do done # Set some special permissions -chmod 755 $PKG/etc/rc.d/rc.* +chmod 755 $PKG/etc/rc.d/rc.* $PKG/etc/X11/xinit/* cd $PKG /sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz