desktop/dwm: Fix rofi theme. Add optional CK/dbus support.
This commit is contained in:
parent
c1003e4785
commit
7b4d5973fa
|
@ -19,6 +19,10 @@ See README.CONFIG for more information.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
|
|
||||||
|
Use the full xinitrc with ConsoleKit and dbus support:
|
||||||
|
|
||||||
|
CK=yes sh dwm.SlackBuild
|
||||||
|
|
||||||
Use the system tray patch:
|
Use the system tray patch:
|
||||||
|
|
||||||
SYSTRAY=yes sh dwm.SlackBuild
|
SYSTRAY=yes sh dwm.SlackBuild
|
||||||
|
@ -46,7 +50,7 @@ OPTIIONAL
|
||||||
st
|
st
|
||||||
|
|
||||||
A good minimal terminal with fontconfig support. Think
|
A good minimal terminal with fontconfig support. Think
|
||||||
"urxvt", but without perl support and the need to specify
|
"urxvt", but without perl support or the need to specify
|
||||||
fallback fonts manually.
|
fallback fonts manually.
|
||||||
|
|
||||||
rofi
|
rofi
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
PRGNAM=dwm
|
PRGNAM=dwm
|
||||||
VERSION=${VERSION:-6.2}
|
VERSION=${VERSION:-6.2}
|
||||||
BUILD=${BUILD:-5}
|
BUILD=${BUILD:-6}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
@ -137,10 +137,13 @@ make install \
|
||||||
DESTDIR=$PKG
|
DESTDIR=$PKG
|
||||||
|
|
||||||
mkdir -p $PKG/etc/X11/xinit
|
mkdir -p $PKG/etc/X11/xinit
|
||||||
install -m 0755 $CWD/xinitrc.dwm $PKG/etc/X11/xinit/xinitrc.dwm
|
|
||||||
|
|
||||||
if [ "$ROFI" = "yes" ]; then
|
CK=${CK:-no}
|
||||||
install -m 0644 -D $CWD/dwm.rasi.new $PKG/usr/share/rofi/themes/dwm.rasi.new
|
|
||||||
|
if [ "$CK" = "yes" ]; then
|
||||||
|
install -v -m 0755 $CWD/xinitrc.dwm.ck $PKG/etc/X11/xinit/xinitrc.dwm
|
||||||
|
else
|
||||||
|
install -v -m 0755 $CWD/xinitrc.dwm $PKG/etc/X11/xinit/xinitrc.dwm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
@ -155,7 +158,11 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
|
||||||
|
if [ "$ROFI" = "yes" ]; then
|
||||||
|
install -v -m 0644 -D $CWD/dwm.rasi.new $PKG/usr/share/rofi/themes/dwm.rasi.new
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
fi
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -12,10 +12,6 @@
|
||||||
font: "monospace 13";
|
font: "monospace 13";
|
||||||
}
|
}
|
||||||
|
|
||||||
configuration {
|
|
||||||
display-run: "";
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
#window {
|
||||||
anchor: north;
|
anchor: north;
|
||||||
location: north;
|
location: north;
|
||||||
|
|
|
@ -24,9 +24,4 @@ if [ -f $usermodmap ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start the window manager:
|
# Start the window manager:
|
||||||
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
|
exec /usr/bin/dwm
|
||||||
exec ck-launch-session /usr/bin/dwm
|
|
||||||
else
|
|
||||||
exec /usr/bin/dwm
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
## Merge in defaults and keymaps ##
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
userresources=$HOME/.Xresources
|
||||||
|
usermodmap=$HOME/.Xmodmap
|
||||||
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
|
if [ -f $sysresources ]; then
|
||||||
|
/usr/bin/xrdb -merge $sysresources
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $sysmodmap ]; then
|
||||||
|
/usr/bin/xmodmap $sysmodmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $userresources ]; then
|
||||||
|
/usr/bin/xrdb -merge $userresources
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $usermodmap ]; then
|
||||||
|
/usr/bin/xmodmap $usermodmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start the window manager:
|
||||||
|
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
|
||||||
|
exec ck-launch-session dbus-launch --exit-with-session /usr/bin/dwm
|
||||||
|
else
|
||||||
|
exec dbus-launch --exit-with-session /usr/bin/dwm
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue