commit 3f345eebb0eac36cce61153b071009ae95ddc50b
parent 3226e64151431fc232975dbd6b8e44c34cd40ee3
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Wed, 12 May 2021 21:16:58 +0200

Add session files

Make sure the last line of your xinitrc is "exec dwm"!

Diffstat:
MMakefile | 10++++++++--
Adwm-session | 4++++
Adwm.desktop | 8++++++++
3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -38,14 +38,20 @@ dist: clean install: all mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f dwm ${DESTDIR}${PREFIX}/bin + cp -f dwm dwm-session ${DESTDIR}${PREFIX}/bin chmod 755 ${DESTDIR}${PREFIX}/bin/dwm + chmod 755 ${DESTDIR}${PREFIX}/bin/dwm-session mkdir -p ${DESTDIR}${MANPREFIX}/man1 sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 + mkdir -p ${DESTDIR}${PREFIX}/usr/share/xsessions + cp -f dwm.desktop ${DESTDIR}/usr/share/xsessions + chmod 644 ${DESTDIR}/usr/share/xsessions/dwm.desktop uninstall: rm -f ${DESTDIR}${PREFIX}/bin/dwm\ - ${DESTDIR}${MANPREFIX}/man1/dwm.1 + ${DESTDIR}${MANPREFIX}/man1/dwm.1\ + ${DESTDIR}/usr/share/xsessions/dwm.desktop\ + ${DESTDIR}/usr/local/bin/dwm-session .PHONY: all options clean dist install uninstall diff --git a/dwm-session b/dwm-session @@ -0,0 +1,4 @@ +#!/bin/sh + +source $HOME/.zshenv +source "${XINITRC:=$HOME/.xinitrc}" diff --git a/dwm.desktop b/dwm.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=dwm +Comment=Dynamic window manager +Exec=/usr/local/bin/dwm-session +TryExec=/usr/local/bin/dwm-session +Type=Application +X-LightDM-DesktopName=dwm +DesktopNames=dwm