diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2019-10-24 19:55:10 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-10-27 00:36:12 +0700 |
commit | 7b4d5973faf26925970bd22f27121491c09d88a5 (patch) | |
tree | 2dfe26e7749989368d91de74570784421ce0eccb /desktop/dwm | |
parent | c1003e47857974d98daafc7c54573d3aaab6c187 (diff) |
desktop/dwm: Fix rofi theme. Add optional CK/dbus support.
Diffstat (limited to 'desktop/dwm')
-rw-r--r-- | desktop/dwm/README | 6 | ||||
-rw-r--r-- | desktop/dwm/dwm.SlackBuild | 17 | ||||
-rw-r--r-- | desktop/dwm/dwm.rasi.new | 4 | ||||
-rw-r--r-- | desktop/dwm/xinitrc.dwm | 7 | ||||
-rw-r--r-- | desktop/dwm/xinitrc.dwm.ck | 34 |
5 files changed, 52 insertions, 16 deletions
diff --git a/desktop/dwm/README b/desktop/dwm/README index f02b1fec012d2..7a42126d341d9 100644 --- a/desktop/dwm/README +++ b/desktop/dwm/README @@ -19,6 +19,10 @@ See README.CONFIG for more information. OPTIONS +Use the full xinitrc with ConsoleKit and dbus support: + + CK=yes sh dwm.SlackBuild + Use the system tray patch: SYSTRAY=yes sh dwm.SlackBuild @@ -46,7 +50,7 @@ OPTIIONAL st 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. rofi diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild index 06a0579171b61..4d74682d80490 100644 --- a/desktop/dwm/dwm.SlackBuild +++ b/desktop/dwm/dwm.SlackBuild @@ -37,7 +37,7 @@ PRGNAM=dwm VERSION=${VERSION:-6.2} -BUILD=${BUILD:-5} +BUILD=${BUILD:-6} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -137,10 +137,13 @@ make install \ DESTDIR=$PKG mkdir -p $PKG/etc/X11/xinit -install -m 0755 $CWD/xinitrc.dwm $PKG/etc/X11/xinit/xinitrc.dwm -if [ "$ROFI" = "yes" ]; then - install -m 0644 -D $CWD/dwm.rasi.new $PKG/usr/share/rofi/themes/dwm.rasi.new +CK=${CK:-no} + +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 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 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 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/desktop/dwm/dwm.rasi.new b/desktop/dwm/dwm.rasi.new index b5eeb75f87f41..ba59ad3c29014 100644 --- a/desktop/dwm/dwm.rasi.new +++ b/desktop/dwm/dwm.rasi.new @@ -12,10 +12,6 @@ font: "monospace 13"; } -configuration { - display-run: ""; -} - #window { anchor: north; location: north; diff --git a/desktop/dwm/xinitrc.dwm b/desktop/dwm/xinitrc.dwm index 4cfa744f796b2..d6c0390c42bad 100644 --- a/desktop/dwm/xinitrc.dwm +++ b/desktop/dwm/xinitrc.dwm @@ -24,9 +24,4 @@ if [ -f $usermodmap ]; then fi # Start the window manager: -if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then - exec ck-launch-session /usr/bin/dwm -else - exec /usr/bin/dwm -fi - +exec /usr/bin/dwm diff --git a/desktop/dwm/xinitrc.dwm.ck b/desktop/dwm/xinitrc.dwm.ck new file mode 100644 index 0000000000000..f4cbd3bd2483d --- /dev/null +++ b/desktop/dwm/xinitrc.dwm.ck @@ -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 + |