This commit is contained in:
jonathan.wyss
2025-09-11 21:52:22 +02:00
commit 698534723d
6 changed files with 64 additions and 0 deletions

6
Makefile Normal file
View File

@@ -0,0 +1,6 @@
build:
tar cf ./dwm-utils.tar \
./dwm-time.service \
./dwm-time.sh \
./dwm.desktop \
./startdwm.sh

22
PKGBUILD Normal file
View File

@@ -0,0 +1,22 @@
pkgname=dwm-utils
pkgver=1.0.0
pkgrel=1
pkgdesc="adds status bar startdwm script and .desktop file for lightdm"
arch=('x86_64')
depends=('pacman-contrib')
url=''
license=()
source=(${pkgname}.tar)
package() {
install -D "${srcdir}/dwm-time.sh" "$pkgdir/usr/bin/dwm-time"
install -D "${srcdir}/startdwm.sh" "$pkgdir/usr/bin/startdwm"
install -D "${srcdir}/dwm.desktop" "${pkgdir}/usr/share/xsessions/dwm.desktop"
for f in ${srcdir}/*.service; do
fname=$(basename $f)
install -D $f "${pkgdir}/usr/lib/systemd/user/$fname"
done
}
sha256sums=('ad48b8d6429571273601ea3d92cb87ae648b33b046edaf2d2b2fdc5fe08954a7')

12
dwm-time.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=Show time in dwm dmenu bar
[Service]
#WorkingDirectory=<directory_of_script e.g. /root>
ExecStart=/home/ccppi/.scripts/dwm-time
Restart=always
[Install]
WantedBy=multi-user.target

6
dwm-time.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
while true; do
xsetroot -name "$(date)"
sleep 2
done

10
dwm.desktop Normal file
View File

@@ -0,0 +1,10 @@
#/usr/share/xsessions/dwm.desktop
[Desktop Entry]
Name=dwm
Comment=improved dynamic tiling window manager
Exec=startdwm
TryExec=startdwm
Type=Application
X-LightDM-DesktopName=dwm
DesktopNames=dwm
Keywords=tiling;wm;windowmanager;window;manager;

8
startdwm.sh Executable file
View File

@@ -0,0 +1,8 @@
#! /bin/bash
#/usr/bin/startdwm
xrandr --auto
nm-applet &
cbatticon &
blueman-applet &
dwm