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/xinitrc.dwm.ck | |
parent | c1003e47857974d98daafc7c54573d3aaab6c187 (diff) |
desktop/dwm: Fix rofi theme. Add optional CK/dbus support.
Diffstat (limited to 'desktop/dwm/xinitrc.dwm.ck')
-rw-r--r-- | desktop/dwm/xinitrc.dwm.ck | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/desktop/dwm/xinitrc.dwm.ck b/desktop/dwm/xinitrc.dwm.ck new file mode 100644 index 000000000000..f4cbd3bd2483 --- /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 + |