commit 698534723d66608863b7b5ab1b626aff90396488 Author: jonathan.wyss Date: Thu Sep 11 21:52:22 2025 +0200 init diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9b9fb92 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +build: + tar cf ./dwm-utils.tar \ + ./dwm-time.service \ + ./dwm-time.sh \ + ./dwm.desktop \ + ./startdwm.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..18d703a --- /dev/null +++ b/PKGBUILD @@ -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') diff --git a/dwm-time.service b/dwm-time.service new file mode 100644 index 0000000..f0c503a --- /dev/null +++ b/dwm-time.service @@ -0,0 +1,12 @@ +[Unit] +Description=Show time in dwm dmenu bar + +[Service] + +#WorkingDirectory= +ExecStart=/home/ccppi/.scripts/dwm-time +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/dwm-time.sh b/dwm-time.sh new file mode 100755 index 0000000..df1cc88 --- /dev/null +++ b/dwm-time.sh @@ -0,0 +1,6 @@ +#!/bin/bash +while true; do + xsetroot -name "$(date)" + sleep 2 + done + diff --git a/dwm.desktop b/dwm.desktop new file mode 100644 index 0000000..9ee9ae4 --- /dev/null +++ b/dwm.desktop @@ -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; diff --git a/startdwm.sh b/startdwm.sh new file mode 100755 index 0000000..abc0cdb --- /dev/null +++ b/startdwm.sh @@ -0,0 +1,8 @@ +#! /bin/bash +#/usr/bin/startdwm + +xrandr --auto +nm-applet & +cbatticon & +blueman-applet & +dwm